60*60*5) { $row = $dsql->GetOne("SELECT spwords FROM `#@__search_keywords` WHERE keyword='".addslashes($keyword)."'; "); if(!is_array($row)) { $inquery = "INSERT INTO `#@__search_keywords`(`keyword`,`spwords`,`count`,`result`,`lasttime`) VALUES ('".addslashes($keyword)."', '".addslashes($keyword)."', '1', '0', '".time()."'); "; $dsql->ExecuteNoneQuery($inquery); } else { $dsql->ExecuteNoneQuery("UPDATE `#@__search_keywords` SET count=count+1,lasttime='".time()."' WHERE keyword='".addslashes($keyword)."'; "); } $keyword = urlencode($keyword); $baidu_search_url = "http://zhannei.baidu.com/cse/search?s={$site_id}&entry=1&q={$keyword}{$addquery}"; header("Location:{$baidu_search_url}"); exit; } } //鏌ユ壘鏍忕洰淇℃伅 if(empty($typeid)) { $typenameCacheFile = DEDEDATA.'/cache/typename.inc'; if(!file_exists($typenameCacheFile) || filemtime($typenameCacheFile) < time()-(3600*24) ) { $fp = fopen(DEDEDATA.'/cache/typename.inc', 'w'); fwrite($fp, "<"."?php\r\n"); $dsql->SetQuery("Select id,typename,channeltype From `#@__arctype`"); $dsql->Execute(); while($row = $dsql->GetArray()) { $row['typename'] = HtmlReplace($row['typename']); fwrite($fp, "\$typeArr[{$row['id']}] = '{$row['typename']}';\r\n"); } fwrite($fp, '?'.'>'); fclose($fp); } //寮曞叆鏍忕洰緙撳瓨騫剁湅鍏抽敭瀛楁槸鍚︽湁鐩稿叧鏍忕洰鍐呭 require_once($typenameCacheFile); if(isset($typeArr) && is_array($typeArr)) { foreach($typeArr as $id=>$typename) { //$keywordn = str_replace($typename, ' ', $keyword); $keywordn = $keyword; if($keyword != $keywordn) { $keyword = HtmlReplace($keywordn); $typeid = intval($id); break; } } } } $keyword = addslashes(cn_substr($keyword,30)); if($cfg_notallowstr !='' && preg_match("#".$cfg_notallowstr."#i", $keyword)) { ShowMsg("浣犵殑鎼滅儲鍏抽敭瀛椾腑瀛樺湪闈炴硶鍐呭錛岃緋葷粺紱佹錛?,"-1"); exit(); } if(($keyword=='' || strlen($keyword)<2) && empty($typeid)) { ShowMsg('鍏抽敭瀛椾笉鑳藉皬浜?涓瓧鑺傦紒','-1'); exit(); } //媯鏌ユ悳绱㈤棿闅旀椂闂? $lockfile = DEDEDATA.'/time.lock.inc'; $lasttime = file_get_contents($lockfile); if(!empty($lasttime) && ($lasttime + $cfg_search_time) > time()) { ShowMsg('綆$悊鍛樿瀹氭悳绱㈡椂闂撮棿闅斾負'.$cfg_search_time.'縐掞紝璇風◢鍚庡啀璇曪紒','-1'); exit(); } //寮濮嬫椂闂? if(empty($starttime)) $starttime = -1; else { $starttime = (is_numeric($starttime) ? $starttime : -1); if($starttime>0) { $dayst = GetMkTime("2008-1-2 0:0:0") - GetMkTime("2008-1-1 0:0:0"); $starttime = time() - ($starttime * $dayst); } } $t1 = ExecTime(); $sp = new SearchView($typeid,$keyword,$orderby,$channeltype,$searchtype,$starttime,$pagesize,$kwtype,$mid); $keyword = $oldkeyword; $sp->Display(); PutFile($lockfile, time()); //echo ExecTime() - $t1; 冰人四万年在线观看免费全集 欧美大黄大色 韩国三级i中文字幕无码 99精品国产自在现线
综合图片亚洲网友自拍12p 西红柿视频下 可以直接看的黄色 午夜男女无遮挡拍拍流水视频 我要看日本