document.location.href='install.php'"; $a_browser_data = browser_detector('full'); if ($a_browser_data[0]=="droid"||$a_browser_data[0]=="iphone") { header("location: m/index.php"); } else { if (!empty($_REQUEST['verifysms'])) { $_REQUEST['verifysms'] = (int)$_REQUEST['verifysms']; if ($_REQUEST['verifysms']>0) { $smsUserID = getSqlField("user","SELECT id FROM nash_users WHERE sms_pin='".$_REQUEST['verifysms']."'","id"); $smsUserID = (int)$smsUserID; if ($smsUserID>0) { if ($setts['idvmode']==0) { $updateSmsConfirm = editSqlRow("user","UPDATE nash_users SET balance=balance-'".$setts['sms_give_credit']."', issms_verified='1', issms_verified_date='".date("Y-m-d")."' WHERE id='".$smsUserID."'"); } else if ($setts['idvmode']==1) { $updateSmsConfirm = editSqlRow("user","UPDATE nash_users SET verify='1', istrialseller='N', balance=balance-'".$setts['sms_give_credit']."', issms_verified='1', issms_verified_date='".date("Y-m-d")."', verifydate='".date("Y-m-d")."' WHERE id='".$smsUserID."'"); $updatefb = addSqlRow("user","INSERT INTO nash_feedbacks (userid,usernick,feedback,rate,date,fromid,submitted,auctionid,type) VALUES ('".$smsUserID."','".remSpecialChars($setts['what_is_it_for_name'])."','".remSpecialChars($setts['fb_text'])."','5','".$timeNowMysql."','".$setts['who_is_this_from']."','1','0','".remSpecialChars($setts['what_is_it_for'])."')"); } else if ($setts['idvmode']==2) { $updateSmsConfirm = editSqlRow("user","UPDATE nash_users SET verify='0', idv_steps_completed='3', istrialseller='Y', balance=balance-'".$setts['sms_give_credit']."', issms_verified='1', issms_verified_date='".date("Y-m-d")."', verifydate='".date("Y-m-d")."' WHERE id='".$smsUserID."'"); }}}} if ($_GET['option']=="logout") { session_destroy(); $nbSoImpMsg = getSqlNumber("user","SELECT id FROM nash_so_important_msg WHERE is_expired='0'"); if ($nbSoImpMsg>0) echo ""; else echo ""; exit(); } if ($setts['cron_job']==2) { $manualCron = TRUE; include_once("cron/cron1.php"); } if ($_COOKIE['fastreferun']!=""&&$_COOKIE['fastreferpw']!="") { $_POST['username'] = $_COOKIE['fastreferun']; $_POST['password'] = $_COOKIE['fastreferpw']; $userDetails = getSqlRow("user","SELECT * FROM nash_users WHERE username='".trim($_POST['username'])."'"); } else if ($_COOKIE['fastreferun']!=""&&$_COOKIE['fastreferpw']=="") { $_POST['username'] = $_COOKIE['fastreferun']; $userDetails = getSqlRow("user","SELECT * FROM nash_users WHERE username='".trim($_POST['username'])."'"); } $someland = ($s_landname!=""&&$s_landname!="n/a"&&$s_landname!="all")?" AND country='".$s_landname."'":""; if ($setts['ishalfpriceauctions']==1&&$layout['is_halfpriceauc_only']==1) $getFeatItems = getSqlResults("user","SELECT * FROM nash_auctions WHERE".(($setts['enable_start_on_first_bid']==1)?" ((closed=1 AND is_start_on_first_bid=1) OR closed=0)":" closed=0")." AND auctiontype='halfprice' AND active=1 AND deleted!=1 AND listin!='store' AND saveforlater='0'".$someland." ORDER BY rand() LIMIT ".$layout['max_feat_hp']); else $getFeatItems = getSqlResults("user","SELECT * FROM nash_auctions WHERE".(($setts['enable_start_on_first_bid']==1)?" ((closed=1 AND is_start_on_first_bid=1) OR closed=0)":" closed=0")." AND hpfeat='Y' AND active=1 AND deleted!=1 AND listin!='store' AND saveforlater='0'".$someland." ORDER BY rand() LIMIT ".$layout['max_feat_hp']); if ($layout['max_feat_hp']>0) { $j = ($layout['nb_feat_hp']>0)?floor($layout['max_feat_hp']/$layout['nb_feat_hp']):0; $fct = 0; $id = array(); $name = array(); $subname = array(); $pic = array(); $ownerid = array(); $maxbid = array(); $bidstart = array(); $enddate = array(); $currency = array(); $country = array(); $zip = array(); $bn = array(); $bnvalue = array(); $nrbids = array(); $closed = array(); $active = array(); $offer_range_min = array(); $offer_range_max = array(); $quantity = array(); if ($setts['ishalfpriceauctions']==1&&$layout['is_halfpriceauc_only']==1) $retail_price = array(); $ebay_post_cache = array(); $ebay_item_link = array(); if (count($getFeatItems)>0) { foreach($getFeatItems as $hpFeatured) { $id[$fct] = $hpFeatured['id']; $name[$fct] = $hpFeatured['itemname']; $subname[$fct] = $hpFeatured['subitemname']; $pic[$fct] = $hpFeatured['picpath']; $ownerid[$fct] = $hpFeatured['ownerid']; $maxbid[$fct] = $hpFeatured['maxbid']; $bidstart[$fct] = $hpFeatured['bidstart']; $enddate[$fct] = $hpFeatured['enddate']; $currency[$fct] = $hpFeatured['currency']; $country[$fct] = $hpFeatured['country']; $zip[$fct] = $hpFeatured['zip']; $bn[$fct] = $hpFeatured['bn']; $bnvalue[$fct] = $hpFeatured['bnvalue']; $nrbids[$fct] = ($hpFeatured['nrbids']!='0')?$hpFeatured['nrbids']:(($hpFeatured['auctiontype']=="classified")?"":"-"); $closed[$fct] = $hpFeatured['closed']; $active[$fct] = $hpFeatured['active']; $offer_range_min[$fct] = $hpFeatured['offer_range_min']; $offer_range_max[$fct] = $hpFeatured['offer_range_max']; $quantity[$fct] = $hpFeatured['quantity']; if ($setts['ishalfpriceauctions']==1&&$layout['is_halfpriceauc_only']==1) $retail_price[$fct] = $hpFeatured['retail_price']; $ebay_post_cache[$fct] = $hpFeatured['ebay_post_cache']; $ebay_item_link[$fct] = $hpFeatured['ebay_item_link']; $fct++; }}} include_once("themes/".$setts['default_theme']."/header.php"); include_once("themes/".$setts['default_theme']."/mainpage.php"); include_once("themes/".$setts['default_theme']."/footer.php"); }?>