\"".$sitename."-".$module_name."\"

"; echo ""; echo ""; if ($home == 1) { echo ""; } $postlink = "modules.php?name=".$module_name."&file=postads"; if ($id_catg != "") { $postlink .= "&id_catg=".$id_catg; } echo ""; echo ""; echo ""; echo ""; echo "
\n" ."\n" ."\""._NUKECHOME."\"\n" ."" ."\n" ."\""._NUKECPOSTNEWADS."\"\n" ."\n" ."\n" ."\""._NUKECYOURADSBOX."\"\n" ."\n" ."\n" ."\""._NUKECMOSTPOP."\"\n" ."
"; echo ""; echo ""; echo "\n" ."" ."
"; echo ""._NUKECVIEWADSFOR." "; echo "
\n" .""._NUKECSEARCHADS." " ." [ "._NUKECADVSEARCH." ]
"; $sqldisc = "select no from ".$nukecprefix."_ads_disclaimer"; if ($multilingual) { $sqldisc .= " where language='".$currentlang."'"; } else { $sqldisc .= " where language=''"; } $re = sql_query($sqldisc,$dbi); if (sql_num_rows($re) > 0) { list ($no) = sql_fetch_row($re); echo "
"._NUKECAGREE1.""._NUKECAGREE2."
"; } CloseTable(); } function printnotallowforanonymouse() { echo "
"._NUKECNOTUSER1."
" .""._NUKECNOTUSER2."

" .""._NUKECNOTUSER21."
" .""._NUKECNOTUSER22."
" .""._NUKECNOTUSER23."


" .""._NUKECNOTUSER3."
" .""._NUKECNOTUSER4."
" .""._NUKECNOTUSER5."
" .""._NUKECNOTUSER6."
" .""._NUKECNOTUSER7."

" .""._NUKECNOTUSER8."" ."
"; } function printnotallowlimitreached() { global $MaxAllowedAds,$module_name; echo "
" .""._NUKECADSBOXFULL."

" ._NUKECALLOWEDADS1." ".$MaxAllowedAds." "._NUKECALLOWEDADS2."
" ._NUKECALLOWEDADS3." ".$MaxAllowedAds." "._NUKECALLOWEDADS4 ."

" .""._NUKECGOTOADSBOX."" ."
"; } function getparent($parentid,$title) { global $nukecprefix, $dbi; $result = sql_query("select id_catg, catg, parentid from ".$nukecprefix."_ads_catg where id_catg='".$parentid."'", $dbi); list($cid, $ptitle, $pparentid) = sql_fetch_row($result, $dbi); if ($ptitle!="") $title=$ptitle." » ".$title; if ($pparentid!=0) { $title=getparent($pparentid,$title); } return $title; } function FormatDateAdsShort($strDate){ $arrayfulldate = explode(" ",$strDate); $Adob = explode ("-",$arrayfulldate[0]); $newdob = $Adob[2]; if ($Adob[1] == 1)$month = _JANUARYSHRT; if ($Adob[1] == 2)$month = _FEBRUARYSHRT; if ($Adob[1] == 3)$month = _MARCHSHRT; if ($Adob[1] == 4)$month = _APRILSHRT; if ($Adob[1] == 5)$month = _MAYSHRT; if ($Adob[1] == 6)$month = _JUNESHRT; if ($Adob[1] == 7)$month = _JULYSHRT; if ($Adob[1] == 8)$month = _AUGUSTSHRT; if ($Adob[1] == 9)$month = _SEPTEMBERSHRT; if ($Adob[1] == 10)$month = _OCTOBERSHRT; if ($Adob[1] == 11)$month = _NOVEMBERSHRT; if ($Adob[1] == 12)$month = _DECEMBERSHRT; $newdob = "$month"." ".$newdob.", ".$Adob[0]; return $newdob." ".$arrayfulldate[1]; } function getcategoryname($id_catgtemp){ global $nukecprefix,$dbi; $resultcatgname = sql_query("select catg from ".$nukecprefix."_ads_catg where id_catg='".$id_catgtemp."'",$dbi); list($title) = sql_fetch_row($resultcatgname,$dbi); return $title; } function getcategoryimage($id_catg){ global $module_name,$dbi,$nukecprefix,$currentlang; $resultpic = sql_query("select image from ".$nukecprefix."_ads_catg where id_catg='".$id_catg."'",$dbi); list ($catgpic) = sql_fetch_row($resultpic,$dbi); return $catgpic; } function getchildcategories($id_catg) { global $module_name,$dbi,$nukecprefix,$currentlang; $child_categories = sql_query("select id_catg from ".$nukecprefix."_ads_catg where parentid = '".$id_catg."'",$dbi); if (sql_num_rows($child_categories,$dbi) > 0) { while ($child_categories_values = sql_fetch_array($child_categories,$dbi)) { $childcatg = getchildcategories($child_categories_values['id_catg']).$child_categories_values['id_catg']."_".$childcatg; } } else { $childcatg = $child_categories_values['id_catg']; } return $childcatg; } function countads_incategory($listchildx){ global $module_name,$dbi,$nukecprefix,$currentlang,$multilingual; $NowUnixTime = GetUnixTimeNow(); $catg_array = explode("_",$listchildx); $parent = $catg_array[0]; $sql_ads = "select count(*) as total from ".$nukecprefix."_ads_ads where "; if ($multilingual) { $where .= " language='".$currentlang."' and "; } $jml = sizeof($catg_array) - 1; if ($jml > 1) { $where .= "("; } $where .= " id_catg='".$parent."' "; if ($jml > 1) { $where .= " or "; } if ($jml > 1) { $k = 0; for ($i = 1;$i<= $jml;$i++) { $where .= "id_catg='".$catg_array[$i]."' "; if ($i != $jml) { $where .= "or "; } if ($i == $jml) { $where .= ")"; } $k++; } } $where .= " and validuntil > '".$NowUnixTime."' and active = '1'"; $resultads = sql_query($sql_ads.$where,$dbi); if (!$resultads) { return "
".$sql_ads.$where."
".mysql_error(); } else { $totalads = sql_fetch_array($resultads,$dbi); //return $sql_ads.$where; return $totalads['total']; } } function themeads ($xid_ads,$xid_catg,$xtitle,$xads_desc,$ximageads,$curr,$xprice,$xsubmitter,$xemail,$xwebsite,$xcity,$xstate,$xcountry,$xdateposted,$xhits) { global $session_id,$module_name,$bgcolor1,$bgcolor2,$nukecprefix,$dbi,$UseImgCatg ,$UploadPathRev,$CatgPathRev; global $Price_Format_code,$Date_Format_code,$ListImgLocation; $memberinfo = MemberInfo($xsubmitter); if ($ximageads != "") { $ximageads_thumb = getThumbName($ximageads); $gbrsize = @getimagesize($UploadPathRev.$ximageads_thumb); $gbr_width = $gbrsize[0]; $gbr_height = $gbrsize[1]; $img = ""; } } elseif ($UseImgCatg) { $sql = "select catg,image from ".$nukecprefix."_ads_catg where id_catg='".$xid_catg."'"; $rescatgimg = sql_query($sql,$dbi); list($catg,$imagecatgsrc) = sql_fetch_row($rescatgimg,$dbi); if ($imagecatgsrc != "") { $imgdimension = @getimagesize($CatgPathRev.$imagecatgsrc); if ($imgdimension) { $imgcatgwidth = $imgdimension[0]; $imgcatgheight = $imgdimension[1]; } $img = ""; $img .= "\"".$catg."\""; $img .= "
".$catg.""; } else { $img = ""; } } echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n" ."\n" ."" ."
 ".$xtitle."
"._NUKECPOSTEDON." ".FormatDateAds($xdateposted,$Date_Format_code)." "._NUKECBY." ".$memberinfo[uname]."
"; $imagemenu = ""; $imagemenu .= ""; if ($xsubmitter != 1) { $imagemenu .= ""; } if ($xemail != "") { $imagemenu .= ""; } $imagemenu .= ""; $imagemenu .= ""; $imagemenu .= ""; $imagemenu .= ""; $imagemenu .= "
"; echo "
".$imagemenu."
\n"; echo "
"; echo "
\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "
"; if ($ListImgLocation == "UP"){ echo "$img "; } if (($ListImgLocation != "UP") and ($ListImgLocation != "DOWN")) { echo $img; } echo $xads_desc."\n"; if ($ListImgLocation == "DOWN") { echo "
$img"; } if (($xprice != "") and ($xprice != 0)) { echo "
"._NUKECADSPRICE." : ".formatPrice($curr,$xprice,$Price_Format_code); } echo "
\n"; $ads_detail = ""._NUKECVIEWDETAIL.""; echo "
[ "._NUKECADSCATG." : ".getcategoryname($xid_catg)." "; if ($xwebsite != "") { echo "| "._NUKECADSURL." : ".$xwebsite." "; } echo "| ".$xhits." \n"; echo ""._NUKECREAD." | ".$ads_detail." ]
\n"; echo "
\n"; echo "
\n"; } function themeadsdetail ($xid_ads,$xid_catg,$xtitle,$xads_desc,$ximageads,$xcurr,$xprice,$xsubmitter,$xemail,$xwebsite,$xcity,$xstate,$xcountry,$xdateposted,$xvaliduntil,$xhits) { global $SID,$usecatgimg,$module_name,$bgcolor1,$bgcolor2,$nukecprefix,$dbi,$admin; global $UseImgCatg ,$UploadPathRev,$CatgPathRev,$user; global $Price_Format_code,$Date_Format_code, $DetailsImglocation; $memberinfo = MemberInfo($xsubmitter); echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n" ."\n" ."" ."
 ".$xtitle.""; if (is_admin($admin)) { echo "
[ "._NUKECEDIT." | "._NUKECDELETECOMM." ]"; } echo "
"; $imagemenu = ""; $imagemenu .= ""; if ($xemail != "") { $imagemenu .= ""; } $imagemenu .= ""; $imagemenu .= ""; $imagemenu .= ""; $imagemenu .= "
"; if (($xsubmitter == 0) or ($xsubmitter == 1)) { $imagemenu .= _NUKECANONYMOUS; } if ($xsubmitter != 1) { $imagemenu .= "\""._NUKECALTSENDPV."\""; } $imagemenu .= "\""._NUKECCONTACTBYMAIL."\"\""._NUKECALTPUTINHOTADSBOX."\"\""._NUKECALTREFERTOFRIEND."\"
"; echo "
".$imagemenu."
\n"; echo "
"; echo "
\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo ""; echo "
"; echo ""; if ($ximageads != "") { $gbrsize = @getimagesize($UploadPathRev.$ximageads); $gbr_width = $gbrsize[0]; $gbr_height = $gbrsize[1]; $img = ""; $img .= "\"".$xtitle."\""; $img .= ""; } elseif ($UseImgCatg) { $sql = "select catg,image from ".$nukecprefix."_ads_catg where id_catg='".$xid_catg."'"; $rescatgimg = sql_query($sql,$dbi); list($catg,$imagecatgsrc) = sql_fetch_row($rescatgimg,$dbi); if ($imagecatgsrc != "") { $imgdimension = @getimagesize($CatgPathRev.$imagecatgsrc); if ($imgdimension) { $imgcatgwidth = $imgdimension[0]; $imgcatgheight = $imgdimension[1]; } $img = ""; $img .= "\"".$catg."\""; $img .= "
".$catg.""; } else { $img = ""; } } if ($DetailsImglocation == "UP") echo "\n"; echo ""; if ($DetailsImglocation == "DOWN") echo "\n"; echo ""; echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; if (($xprice != "") and ($xprice != 0)) { echo ""; } $daysremain = countremaindays($xvaliduntil); echo ""; echo ""; echo ""; echo "
".$img."
".$xads_desc."
".$img."
"._NUKECBY." : ".$memberinfo[uname]."
"._NUKEC_CITY." : ".$xcity."
"._NUKEC_STATE." : ".$xstate."
"._NUKEC_COUNTRY." : ".$xcountry."
"._NUKECPOSTEDON." : ".FormatDateAds($xdateposted,$Date_Format_code)."
"._NUKECEXPDON." : ".FormatDateAds($xvaliduntil,$Date_Format_code)."
"._NUKECADSPRICE." : ".formatPrice($xcurr,$xprice,$Price_Format_code)."
"._NUKECDAYSREMAIN." : ".$daysremain." "._NUKECADSDAYS."
"._NUKECREAD." : ".$xhits." "._NUKECREAD."
"._NUKECADSCOMMENT." :\n"; $rescomment = sql_query("select no_comment,commentby,subject,comment,hostname,date from ".$nukecprefix."_ads_comments where id_ads='".$xid_ads."'",$dbi); $jmlcomment = sql_num_rows($rescomment,$dbi); if ($jmlcomment > 0) { $k = 0; if (is_admin($admin)) { $adm = 1; } while (list($xno_comment,$xcommentby,$xsubject,$xcomment,$xhostname,$xdate) = sql_fetch_row($rescomment)) { $k++; $memberinfocomm = MemberInfo($xcommentby); echo "\n" ."" ."" ."" ."
 "._NUKECBY." ".$memberinfocomm[uname]." "._NUKECON." ".FormatDateAds($xdate,$Date_Format_code)." "; echo "[ "._NUKECUSERINFO." | "; echo " "._NUKECSENDMSG." | IP : ".$xhostname."] "; if ($adm == 1) { echo " [ "._NUKECDELETECOMM." ]"; } echo "
 ".$xsubject."
 ".$xcomment."
"; if ($k != $jmlcomment) { echo "
"; } } sql_free_result($rescomment); } else { echo "
"._NUKECNOCOMMENT.""; } echo "
"; echo "
\n"; $ads_detail = ""._NUKECVIEWDETAIL.""; echo "
[ "._NUKECADSCATG." : ".getcategoryname($xid_catg)." "; if ($xwebsite != "") { echo "| "._NUKECADSURL." : ".$xwebsite." "; } echo " ]
\n"; echo "
"; echo "[ "._NUKECSAVE2ADSBOX." "; if ($xsubmitter != 1) { echo " | ".PrivMsgslink($xsubmitter); } if ($xemail != "") { echo " | "._NUKECCONTACTBYMAIL.""; } echo " | "._NUKEREFER2FRIEND.""; echo " ]"; echo "
"; echo "
"; echo "
\n"; echo "
\n"; } function PrivMsgslink($MsgsDest) { $PrivmsgsLink = ""._NUKECSENDMSG.""; return $PrivmsgsLink; } function savedadsdetail ($xid_save,$xid_ads,$xowner,$xid_catg,$xtitle,$xads_desc,$ximageads,$xcurr,$xprice,$xsubmitter,$xemail,$xwebsite,$xcity,$xstate,$xcountry,$xdateposted,$xvaliduntil) { global $module_name,$bgcolor1,$bgcolor2,$bgcolor3,$nukecprefix,$dbi,$admin; global $UseImgCatg ,$UploadPathRev,$CatgPathRev,$user; global $Price_Format_code,$Date_Format_code; $memberinfo = MemberInfo($xsubmitter); echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "
".$xtitle."\n"; echo "
\n"; echo "
\n"; $imagemenu = ""; $imagemenu .= ""; if ($xsubmitter != 1) { $imagemenu .= ""; } if ($xemail != "") { $imagemenu .= ""; } $imagemenu .= ""; $imagemenu .= ""; $imagemenu .= "
\""._NUKECALTSENDPV."\"\""._NUKECCONTACTBYMAIL."\"\""._NUKECALTREFERTOFRIEND."\"
"; echo "
".$imagemenu."
\n"; echo "
\n"; echo "\n"; echo " \n"; echo " \n"; if ($ximageads != "") { $ads_img = "\"".$xtitle."\""; } echo "\n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo ""; echo "
"; echo ""; echo ""; if ($ximageads != "") { $gbrsize = getimagesize("modules/".$module_name."/imageads/".$ximageads); $gbr_width = $gbrsize[0]; $gbr_height = $gbrsize[1]; } elseif ($usecatgimg) { $sql = "select catg,image from ".$nukecprefix."_ads_catg where id_catg='".$xid_catg."'"; $rescatgimg = sql_query($sql,$dbi); list($catg,$imagecatgsrc) = sql_fetch_row($rescatgimg,$dbi); if ($imagecatgsrc != "") { $imgdimension = @getimagesize("modules/".$module_name."/imagecatg/".$imagecatgsrc); if ($imgdimension) { $imgcatgwidth = $imgdimension[0]; $imgcatgheight = $imgdimension[1]; } $img = ""; } else { $img = ""; } } echo $img; echo "\n"; echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; if (($xprice != "") and ($xprice != 0)) { echo ""; } echo ""; echo "
".$xads_desc.""; $img .= "\"".$catg."\""; $img .= "
".$catg."
"._NUKECBY." : ".$memberinfo[uname]."
"._NUKEC_CITY." : ".$xcity."
"._NUKEC_STATE." : ".$xstate."
"._NUKEC_COUNTRY." : ".$xcountry."
"._NUKECPOSTEDON." : ".FormatDateAds($xdateposted,$Date_Format_code)."
"._NUKECEXPDON." : ".FormatDateAds($xvaliduntil,$Date_Format_code)."
"._NUKECADSPRICE." : ".formatPrice($xcurr,$xprice,$Price_Format_code)."
"._NUKECADSCOMMENT." :\n"; $rescomment = sql_query("select no_comment,commentby,subject,comment,hostname,date from ".$nukecprefix."_ads_comments where id_ads='".$xid_ads."'",$dbi); $jmlcomment = sql_num_rows($rescomment,$dbi); if ($jmlcomment > 0) { $k = 0; if (is_admin($admin)) { $adm = 1; } while (list($xno_comment,$xcommentby,$xsubject,$xcomment,$xhostname,$xdate) = sql_fetch_row($rescomment)) { $k++; $memberinfocomm = MemberInfo($xcommentby); echo "\n" ."" ."" ."" ."
 "._NUKECBY." ".$memberinfocomm[uname]." "._NUKECON." ".FormatDateAds($xdate,$Date_Format_code)." "; echo "[ "._NUKECUSERINFO." | "; echo " "._NUKECSENDMSG." | IP : ".$xhostname." ] "; if ($adm == 1) { echo " [ "._NUKECDELETECOMM." ]"; } echo "
 ".$xsubject."
 ".$xcomment."
"; if ($k != $jmlcomment) { echo "
"; } } sql_free_result($rescomment); } else { echo "
"._NUKECNOCOMMENT.""; } echo "
"; echo "
".$ads_img."
\n"; $ads_detail = ""._NUKECVIEWDETAIL.""; echo "
[ "._NUKECADSCATG." : ".getcategoryname($xid_catg)." "; if ($xwebsite != "") { echo "| "._NUKECADSURL." : ".$xwebsite." "; } echo " ]
\n"; echo "
"; echo "[ "; if ($xsubmitter != 1) { echo "".PrivMsgslink($xsubmitter)." | "; } if ($xemail != "") { echo " "._NUKECCONTACTBYMAIL." | "; } echo " "._NUKEREFER2FRIEND.""; echo " ]"; echo "
"; echo "
"; echo "
\n"; echo "
\n"; } function AdsInfo($xid_ads) { global $nukecprefix,$dbi,$user_prefix; $sql = "select * from ".$nukecprefix."_ads_ads where id_ads='".$xid_ads."'"; $res = sql_query($sql,$dbi); return $AdsInfo = sql_fetch_array($res,$dbi); } function MemberInfo($xuid) { global $nukecprefix,$dbi,$user_prefix; $sql = "select name,uname from ".$user_prefix."_users where uid='".$xuid."'"; $res = sql_query($sql,$dbi); if (!$res) { echo mysql_error(); } return $memberinfo = sql_fetch_array($res,$dbi); } function pathcatg($id_catg){ global $nukecprefix,$dbi,$module_name; if (($id_catg != "") || (isset($id_catg))) { $resultpath = sql_query("select catg,parentid from ".$nukecprefix."_ads_catg where id_catg=".$id_catg."", $dbi); list($catg, $parentid)=sql_fetch_row($resultpath, $dbi); $path=getparentlink($parentid,$catg); $path = ""._NUKECMAIN." » ".$path; $path = "".$path.""; } else { $path= ""; } return $path; } function getparentlink($parentid,$title) { global $nukecprefix, $dbi,$module_name; $result=sql_query("select id_catg, catg, parentid from ".$nukecprefix."_ads_catg where id_catg='".$parentid."'", $dbi); list($cid, $ptitle, $pparentid) = sql_fetch_row($result, $dbi); if ($ptitle!="") $title="".$ptitle." » ".$title; if ($pparentid!=0) { $title=getparentlink($pparentid,$title); } return $title; } function countremaindays($valid_until) { global $nukecprefix,$dbi; $nowdate = strtotime(date("Y-m-d")); $enddate = strtotime(date("Y-m-d",$valid_until)); $sisa = ceil(($enddate-$nowdate)/86400); return $sisa; } function datesub($enddate,$begindate) { global $nukecprefix,$dbi; $sisa = ($enddate-$begindate)/86400; return $sisa; } function GetCurrency($currencycode){ global $nukecprefix,$dbi; $resultcurr = sql_query("select curr from ".$nukecprefix."_ads_currency where no='".$currencycode."'",$dbi); list($currencyname) = sql_fetch_row($resultcurr,$dbi); return $currencyname; } function formatPrice($currency,$valueprice,$formatcode) { $currencyname = GetCurrency($currency); if ((!$formatcode ) or ($formatcode == "")) { $formatcode = 0; } if ($formatcode == 0) { /* e.g : US$ 1,234.56 */ $FormattedPrice = $currencyname." ".number_format($valueprice,2); } if ($formatcode == 1) { /* e.g : 1,234.56 US$ */ $FormattedPrice = number_format($valueprice,2)." ".$currencyname; } if ($formatcode == 2) { /* e.g : US$ 1 234,56*/ $FormattedPrice = $currencyname." ".number_format($valueprice,2,',',' '); } if ($formatcode == 3) { /* e.g : 1 234,56 US$ */ $FormattedPrice = number_format($valueprice,2,',',' ')." ".$currencyname; } if ($formatcode == 4) { /* e.g : US$ 1 234.56*/ $FormattedPrice = $currencyname." ".number_format($valueprice,2,'.',' '); } if ($formatcode == 5) { /* e.g : 1 234.56 US$ */ $FormattedPrice = number_format($valueprice,2,'.',' ')." ".$currencyname; } return $FormattedPrice; } function buildcurrency($sel = "") { global $nukecprefix,$dbi; $rescurr = sql_query("select no,curr,country from ".$nukecprefix."_ads_currency",$dbi); while (list($nocurr,$curr,$country) = sql_fetch_row($rescurr,$dbi)) { echo "\n"; } sql_free_result($res); } function buildduration($sel = "") { global $nukecprefix,$dbi; $resduration = sql_query("select id_duration, duration_value, duration_alias from ".$nukecprefix."_ads_duration order by duration_value",$dbi); while (list ($id_duration ,$duration_value, $duration_alias ) = sql_fetch_row($resduration,$dbi)) { echo ""; } sql_free_result($resduration); } function NukeCAdminDone($msgid) { global $adsbgcolor1,$adsbgcolor2,$adsbgcolor3; include ("header.php"); GraphicAdmin(); OpenTable(); NukeCAdminMenu(); echo "
"; echo "
"; echo "
"; echo "
"; switch($msgid) { case "PreferencesSaved": echo _NUKECMSGPREFSAVED; break; case "NewCatgDone": echo _NUKECMSGCATGADDED; break; case "WaitingAdsDeleted": echo _NUKECWAITINGADSDELETED;break; case "WaitingAdsPosted": echo _NUKECWAITINGADSPOSTED;break; case "AdsDeleted": echo _NUKECADSDELETEDSUCC;break; case "EditDone": echo _NUKECADSUPDATED;break; case "CommentDeleted": echo _NUKECCOMMENTDELETED;break; } echo "
"; echo "
"; echo "
"; CloseTable(); include ("footer.php"); } function NukeCAdminMenu(){ global $adsbgcolor1, $adsbgcolor2, $adsbgcolor3,$adsbgcolor5; $a = "·"; echo "
"; echo ""; echo ""; echo "
"; echo ""._NUKECADMINTITLE."
\n"; echo "
".$a." "._NUKECADMINCATG." ".$a." "._NUKECADMINMAINTENANCEADS." ".$a." "._NUKECSETTING."
".$a." "._NUKECADMINCURR." ".$a." "._NUKECADMINDISCLAIM." ".$a." "._NUKECDOCUMENTATION."
".$a." "._NUKECWORDFILTER." ".$a." "._NUKECADSDURATION." ".$a." "._NUKECCUSTOMCONTENT."
"; echo "
"; } function buildOptionSelectAllow($selectname,$valueradio,$JScript="",$Text1="",$Text2="") { $selectopt = " 0) { $i = 0; while (list($custom_id, $custom_title, $content, $weight, $time) = sql_fetch_row($resultcustomcontent,$dbi)) { themeCustomContent($custom_id, $custom_title, $content, $weight, $time); if ($i < $jmlcustomcontent - 1) { echo "
"; } $i++; } sql_free_result($resultcustomcontent); echo "
"; } } function themeCustomContent($custom_id, $custom_title, $content, $weight, $time) { global $adsbgcolor1,$adsbgcolor2,$adsbgcolor3,$adsbgcolor4,$adsbgcolor5; echo "\n" ."\n" ."
\n"; echo "\n" ."\n" ."" ."" ."
\n"; echo "".$custom_title.""; echo "
".$content."
"._NUKECLASTUPDATED." : ".$time."
"; echo "
"; } function AllowedForPosting() { global $nukecprefix,$dbi, $user,$MemberRequired, $MaxAllowedAds; if (is_user($user) || ($MemberRequired != 1)){ return 1; } else { return 0; } } function GetTimeUnix($currhour, $currminute, $currsecond, $currmonth, $currday, $curryear, $chgmonth, $chgday , $chgyear){ $mktimeUnix = mktime($currhour, $currminute, $currsecond, $currmonth + $chgmonth, $currday + $chgday, $curryear + $chgyear); return $mktimeUnix; } function GetUnixTimeNow() { $nowdatetmp = date("H i s m d Y"); $datearraytmp = explode (" ", $nowdatetmp); return GetTimeUnix($datearraytmp[0],$datearraytmp[1],$datearraytmp[2],$datearraytmp[3],$datearraytmp[4],$datearraytmp[5],0,0,0); } function FormatStrMonthShort($monthvalue) { if ($monthvalue == 1)$month = _JANUARYSHRT; if ($monthvalue == 2)$month = _FEBRUARYSHRT; if ($monthvalue == 3)$month = _MARCHSHRT; if ($monthvalue == 4)$month = _APRILSHRT; if ($monthvalue == 5)$month = _MAYSHRT; if ($monthvalue == 6)$month = _JUNESHRT; if ($monthvalue == 7)$month = _JULYSHRT; if ($monthvalue == 8)$month = _AUGUSTSHRT; if ($monthvalue == 9)$month = _SEPTEMBERSHRT; if ($monthvalue == 10)$month = _OCTOBERSHRT; if ($monthvalue == 11)$month = _NOVEMBERSHRT; if ($monthvalue == 12)$month = _DECEMBERSHRT; return $month; } function FormatStrMonth($monthvalue) { if ($monthvalue == 1)$month = _JANUARY; if ($monthvalue == 2)$month = _FEBRUARY; if ($monthvalue == 3)$month = _MARCH; if ($monthvalue == 4)$month = _APRIL; if ($monthvalue == 5)$month = _MAY; if ($monthvalue == 6)$month = _JUNE; if ($monthvalue == 7)$month = _JULY; if ($monthvalue == 8)$month = _AUGUST; if ($monthvalue == 9)$month = _SEPTEMBER; if ($monthvalue == 10)$month = _OCTOBER; if ($monthvalue == 11)$month = _NOVEMBER; if ($monthvalue == 12)$month = _DECEMBER; return $month; } function FormatDateAds($datetoformat,$formatcode) { if ((!$formatcode) || ($formatcode == "")) { $formatcode = 0; } $datetemp = date("H i s m d Y",$datetoformat); $datearray = explode(" ",$datetemp); $HourtoFormat = $datearray[0]; $MinutetoFormat = $datearray[1]; $SecondtoFormat = $datearray[2]; $MonthtoFormat = $datearray[3]; $DaytoFormat = $datearray[4]; $YeartoFormat = $datearray[5]; switch($formatcode) { case 0 : return FormatDate0($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat);break; case 1 : return FormatDate1($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat);break; case 2 : return FormatDate2($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat);break; case 3 : return FormatDate3($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat);break; case 4 : return FormatDate4($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat);break; case 5 : return FormatDate5($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat);break; } } function FormatDate0($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat) { /* sample : Jan 12, 2003 */ $monthstr = FormatStrMonthShort($MonthtoFormat); return $monthstr." ". $DaytoFormat." ".$YeartoFormat; } function FormatDate1($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat) { /* sample : HH:MM:SS Jan 12, 2003 */ $monthstr = FormatStrMonthShort($MonthtoFormat); return $HourtoFormat.":".$MinutetoFormat.":".$SecondtoFormat." ".$monthstr." ". $DaytoFormat." ".$YeartoFormat; } function FormatDate2($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat) { /* sample : January 12, 2003 */ $monthstr = FormatStrMonth($MonthtoFormat); return $monthstr." ". $DaytoFormat." ".$YeartoFormat; } function FormatDate3($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat) { /* sample : HH:MM:SS January 12, 2003 */ $monthstr = FormatStrMonth($MonthtoFormat); return $HourtoFormat.":".$MinutetoFormat.":".$SecondtoFormat." ".$monthstr." ". $DaytoFormat." ".$YeartoFormat; } function FormatDate4($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat) { /* sample : mm/dd/yyyy */ return $MonthtoFormat."/". $DaytoFormat."/".$YeartoFormat; } function FormatDate5($HourtoFormat,$MinutetoFormat, $SecondtoFormat, $MonthtoFormat,$DaytoFormat, $YeartoFormat) { /* sample : HH:MM:SS mm/dd/yyyy */ return $HourtoFormat.":".$MinutetoFormat.":".$SecondtoFormat." ".$MonthtoFormat."/". $DaytoFormat."/".$YeartoFormat; } function AdsPostedByUser($curr_uid,$countactiveads,$countexpiredads,$countpendingads) { global $nukecprefix,$dbi; $NowUnixTime = GetUnixTimeNow(); $sql = "select * from ".$nukecprefix."_ads_ads where submitter='".$curr_uid."'"; if ($countpendingads == 1) { $sql .= " and active ='0'"; } if ($countactiveads == 1) { $sql .= " and validuntil > '".$NowUnixTime."' and active ='1'"; } if ($countexpiredads == 1) { $sql .= " and validuntil <= '".$NowUnixTime."' and active ='1'"; } $resultadsposted = sql_query($sql,$dbi); $adsposted = sql_num_rows($resultadsposted,$dbi); return $adsposted; } function OpenTableNukeC() { global $adsbgcolor3,$adsbgcolor1; echo "\n" ."
"; } function CloseTableNukeC() { echo "
"; } function getThumbName($ximageads) { $ImgName = explode(".",$ximageads); return $ImgName[0]."_thumb.".$ImgName[1]; } echo "\n"; echo "\n"; ?> TradeZone.fr LA communauté de Troc et d'échanges francophone
TradeZone.fr
LA communauté de Troc et d'échange francophone
vous souhaite la bienvenue !

Ce site et des annonceurs tiers utilisent des cookies et autres techologies similaires pour fournir des services et diffuser de la publicité.
En poursuivant sur ce site vous acceptez leur utilisation,
sinon vous pouvez souvent refuser les cookies dans les options de votre navigateur.
inscription nécessaire pour utiliser l'ensemble des services de la communauté.

inscription