apr. 05, 2006 session_start(); if (!file_exists("config/config.php")) echo ""; $option = (!empty($_GET['option'])) ? $_GET['option'] : ""; if ($option=="logout") { session_destroy(); echo ""; } include_once ("config/config.php"); ### do the cron job if selected to run from phpprobid if ($setts['cron_job']==2) { $manualCron = TRUE; include_once ("cron/cron1.php"); } $getFeatItems=mysql_query("SELECT id, itemname, picpath, maxbid, enddate, currency FROM probid_auctions WHERE hpfeat='Y' AND active=1 AND closed=0 AND deleted!=1 AND listin!='store' ORDER BY rand() LIMIT 0,".$layout['max_feat_hp']." "); $nbFeatItems=mysql_num_rows($getFeatItems); if ($layout['nb_feat_hp']>0) { $j=floor($nbFeatItems/$layout['nb_feat_hp']); $j++; } else $notfeat="Y"; $fct=0; $id = array(); $name = array(); $pic = array(); $maxbid = array(); $enddate = array(); $currency = array(); while ($hpFeatured=mysql_fetch_array($getFeatItems)) { $id[$fct] = $hpFeatured['id']; $name[$fct] = $hpFeatured['itemname']; $pic[$fct] = $hpFeatured['picpath']; $maxbid = array ($fct => $hpFeatured['maxbid']); $enddate = array ($fct => $hpFeatured['enddate']); $currency[$fct] = $hpFeatured['currency']; $fct++; } include ("themes/".$setts['default_theme']."/header.php"); include ("themes/".$setts['default_theme']."/mainpage.php"); include ("themes/".$setts['default_theme']."/footer.php"); ?>