📄 schcate.php
字号:
<?php
/*
+-------------------------------------------
|
| Technology of Wane netware
| ========================================
| Powered by wan-e.net inc
| (c) 2004 wane.net Power Services
| http://www.wan-e.net
| ========================================
| Web: http://www.wan-e.net
|
+-------------------------------------------
| Autohr : wsfuyibing
+-------------------------------------------
*/
$cache_file = $wane_root.'globals/cache/cache_searchc.php';
$cache_position = $wane_root.'globals/cache/cache_position.php';
if (!file_exists($cache_file) || !file_exists($cache_position))
{
unset($cache_file,$cache_position);
require $wane_root.'globals/class_cache.php';
$cache=new wanecache;
$cache->update_cache(array('position','searchc'));
echo 'Creating cache file.<BR>Please refresh the page.';
exit;
}
else
{
require $cache_file;
require $cache_position;
unset($cache_file,$cache_position);
eval($function->load_lang('schcate'));
}
eval($tpl->set_var(array(
'WEBTITLE' => $function->headtitle('['.$webtitle.'] | '.$LANG['SCHCATE']),
'NAVIGATA' => empty($cid) ? "<a class='navigata' href='{$default_url}index.php?action=idx'>$webtitle</a> $category_separate $LANG[SCHCATE]" : "<a class='navigata' href='{$default_url}index.php?action=idx'>$webtitle</a> $category_separate <a class='navigata' href='{$default_url}index.php?action=schcate'>$LANG[SCHCATE]</a>".stripslashes($cache_position['cate_'.$cid]),
)));
/*
+-----------------------------------------------
+ check search string
+-----------------------------------------------
*/
if (empty($cid) || !is_numeric($cid) || $cid<1)
{
$curcid = '0';
$search_extent="";
}
else
{
$curcid = $cid;
$fids = "'".str_replace(",","','",$cache_searchc['search'.$curcid])."'";
$search_extent=" WHERE cid in ($fids)";
}
$query_class = $db->query("SELECT * FROM {$tablepre}class WHERE upid='$curcid' order by orderid");
$query_click = $db->query("SELECT * FROM {$tablepre}spinfo $search_extent order by click desc limit $num_schcate_click");
$page_count = array(
$num_schcate,"{$tablepre}spinfo","index.php?action=schcate&cid=$cid"," $search_extent"
);
require $wane_root.'globals/page_count.php';
$query=$db->query("select * from $page_count[1] $page_count[3] order by sid desc limit $offset,$show_count");
$numsps = 0;
$tplfiles = array('header','schcate','footer');
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -