0) { //include("blogs/wp-blog-header.php"); //wp_logout(); db_query("update ".tb_Prefix."users set onlinestatus='No' where id='".$_SESSION['userId']."'"); session_destroy(); redir(SITE_SUB_PATH); } $parr = page_info($ttb_Name); $title_message = $parr['Title']; $keywords = $parr['Keywords']; $descm = $parr['Desc']; $page = ($_GET['page'] == '')?"1":$page; $pagesize=24; $start = ($page - 1) * $pagesize; if($_GET['catname']) { $catname = ($_GET['subcatname'])?$_GET['subcatname']:$_GET['catname']; $getid = getcatid($catname); $mainid = db_scalar("select subcat from ".tb_Prefix."cate where id='".getcatid($catname)."'"); $headingm = db_scalar("select catname from ".tb_Prefix."cate where id='".getcatid($catname)."'"); if($mainid>0) { $headingm = ''.db_scalar("select catname from ".tb_Prefix."cate where id='".$mainid."'").' » '.$headingm; } if($_GET['subcatname']) { $wwp = " and subcat='".$getid."'"; } else { $wwp = " and maincat='".$getid."'"; } //$wwp.= " and (expdate>".time()." or expdate=0)"; $mainsql = db_query("select * from ".tb_Prefix."userdeal where status='Active' $wwp order by time desc limit $start, $pagesize"); $pagingnum = db_scalar("select count(*) from ".tb_Prefix."userdeal where status='Active' $wwp order by time desc"); } else { //$wwp = " and (expdate>".time()." or expdate=0)"; $headingm = "Latest Deals"; $mainsql = db_query("select * from ".tb_Prefix."userdeal where status='Active' and home='Yes' $wwp order by time desc limit $start, $pagesize"); $pagingnum = db_scalar("select count(*) from ".tb_Prefix."userdeal where status='Active' and home='Yes' $wwp order by time desc"); } ?>
 
 
 
Coupons
 
".time()." or expdate='0') order by time desc limit 0,10"); $i=1; while($rc_row = db_fetch_array($rc_sql)) {?>
   
     
     
 
 
 
Popular Stores
 
  <?=$poprow['storename']?> " data-count="vertical" class="twitter-share-button">Tweet  
     
     
  View more popular store»  
     
 
*/?>
 
Today's Top 5 Deals