📄 spinfo.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_position.php';
$cache_made = $wane_root.'globals/cache/cache_position_made.php';
if (!file_exists($cache_file) || !file_exists($cache_made) )
{
unset($cache_file,$cache_made);
require $wane_root.'globals/class_cache.php';
$cache=new wanecache;
$cache->update_cache(array('position','position_made'));
echo 'Creating cache file.<BR>Please refresh the page.';
exit;
}
else
{
require $cache_file;
require $cache_made;
unset($cache_file,$cache_made);
eval($function->load_lang('view/spinfo'));
}
if (!isset($info) || !is_numeric($info) || $info < 1)
{
$function->clickback($VIEW_SP['UNDEFINED']);
}
else
{
$tplfiles = array('header','spinfo_show','footer');
$query=$db->query("SELECT s.*,s.addtime as saddtime,s.losetime as slosetime,u.* FROM {$tablepre}spinfo s , {$tablepre}storeinfo u where s.sid!='0' and s.sid='$info' and s.uid=u.uid");
if (!$db->num($query))
{
$function->clickback($VIEW_SP['UNEXISTS']);
}
else
{
require $wane_root.'globals/class_code.php';
$row=$db->row($query);
$db->free($query);
eval($tpl->set_var(array(
'WEBTITLE' => $function->headtitle('[ '.$webtitle.' ] | '.$row['spname']),
'NAVIGATA' => "<a class='navigata' href='{$default_url}index.php?action=idx'>$webtitle</a>".stripslashes($cache_position['cate_'.$row['cid']]),
)));
if ($row[uid]!=$wane_uid)
{
$db->query("UPDATE {$tablepre}spinfo SET click=click+'1' WHERE sid='$info'");
}
if ($html_onoff && $html_spinfo)
{
$newsubmit = $newsubmit ? '1' : '0';
$createhtml = array($dirhtml_spinfo,$row['htmlroot'],$row['sid'],$newsubmit);
}
$query_cur = $db->query("SELECT s.*,t.uid,t.storename FROM {$tablepre}spinfo s,{$tablepre}storeinfo t WHERE s.keyword like '%$row[keyword]%' and s.sid!='$row[sid]' and s.uid=t.uid limit $num_cur_splist");
$query_dis=$db->query("select * from {$tablepre}spinfo_discuss where sid='$info' order by id desc limit 5");
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -