"" and strchr($_SERVER['REQUEST_URI'],'&p=')=="" and strchr($_SERVER['REQUEST_URI'],'&pricesort=')==""){ $q=explode('q=',$_SERVER['REQUEST_URI']); $q=explode('&',$q[1]); $q=$q[0]; header( "HTTP/1.1 301 Moved Permanently" ); header( "Location: http://www.biza.com.tw/$q/" ); exit; } if (strchr($_SERVER['HTTP_HOST'],'min.')<>"" ){ header( "HTTP/1.1 301 Moved Permanently" ); header( "Location: http://www.biza.com.tw/" ); exit; } */ if (isset($_GET['clear_cookie']) and $_GET['clear_cookie']==1){ setcookie("views", "", time()-3600); unset($_COOKIE['views']); header( "HTTP/1.1 301 Moved Permanently" ); header( "Location: $_GET[refer]" ); exit; } $smarty = new Smarty; $q = str_replace(" "," ",$q); $q = str_replace(" "," ",$q); $q = str_replace(" "," ",$q); //$q = mysqli_real_escape_string($q); $adkw=trim($q); include("clean_file_name.php"); //$adkw = escapeshellcmd($adkw); $adkw=clean_file_name($adkw); $smarty->assign("webtitle", "BIZA"); if (isset($_GET[search_input]) and $_GET[search_input]==1 and $ipcheck==1 and $_GET[p]==1){ $inssql="insert into search_input (adkw,ip,date,dates)values('$adkw','$ip','$sidate','$datetemp')"; $q_inssql=mysqli_query($leo,$inssql); } $desktop=1; if ( stripos($_SERVER['HTTP_USER_AGENT'],"Android") or stripos($_SERVER['HTTP_USER_AGENT'],"mobile") or stripos($_SERVER['HTTP_USER_AGENT'],"iPod") or stripos($_SERVER['HTTP_USER_AGENT'],"iPhone") or stripos($_SERVER['HTTP_USER_AGENT'],"iPad") or stripos($_SERVER['HTTP_USER_AGENT'],"webOS") or stripos($_SERVER['HTTP_USER_AGENT'],"BlackBerry") or stripos($_SERVER['HTTP_USER_AGENT'],"RIM Tablet") ){ $desktop=0; } if (isset($dd) and $dd==1){$desktop=0;} if ($adkw<>"" ){ // if (strlen($adkw)<=26){$exq=$adkw;}else { // include("run_ex.php"); // }//if include("run_ex.php"); if ($_GET[tt]=="1"){include("show\show_test.php");} else include("show\show.php"); } if (isset($_GET['sididx']) ){ include("show\sid.php"); } if ($adkw=="" ){ include("index_yahoo.php"); include("left_sitemap.php"); include("search_bar.php"); include("menu.php"); } $time_end = getmicrotime(); $pagetime=($time_end - $time_start)*1000; if (!isset($_COOKIE["uj"]) ){ setcookie("uj","1",time()+3600); // $smarty->assign("showad","1"); } ///////////// 我的最愛 if (isset($_GET["store_name"]) and $_GET["store_name"]=='biza' ){ setcookie("favorite","1",time()+3600); }// if (isset($_COOKIE['favorite']) and $_COOKIE['favorite']==1){ $smarty->assign("favorite_cookie",'1'); }// //////////我的最愛 $smarty->assign("pagetime","Page execution time ".$pagetime.' Millisecon'); $smarty->assign("desktop",$desktop); if (isset($_GET['sididx'])){$smarty->display('sid.tpl');exit;} if ($_GET[f]==1 ){$smarty->display('show_amp_f.tpl');exit;} if ($desktop==0 and $exq<>"" and $_GET[f]=='' ){$_GET[amp]=1; } if ($_GET[amp]==1 ){$smarty->display('show_amp.tpl');exit;} if ($exq<>""){$smarty->display('show.tpl');exit;} if (!isset($_GET['sididx']) and !isset($exq) and !isset($_GET['amp'] )and !isset($_GET['f']) ) {$smarty->display('index.tpl');exit;} /* if ($exq<>"" and $_GET[amp]==1 and !isset($_GET['f'])){$smarty->display('show_amp.tpl');exit;} if ($exq<>"" and isset($_GET['f']) ){$smarty->display('show_amp_f.tpl');exit;} if ($exq<>""){$smarty->display('show.tpl'); } if (!isset($_GET['sididx']) and !isset($exq) and !isset($_GET['amp']) ) {$smarty->display('index.tpl');} if (!isset($_GET['sididx']) and !isset($exq) and isset($_GET['amp']) ) {$smarty->assign("f",$_GET[f]);$smarty->display('show_amp_f.tpl');} */ ?>