feifei cms 搜索限制
位置在 /Tpl/default/Vod/search.tpl文件。
$h=date('G');
if ($h<11) $h1=2;
else if ($h<17) $h1=5;
else $h1=10;
Session_start();
$stime=intval($_SESSION['stime']);
if(time()-$h1<$stime){
exit('访问频率过高!');
}
$_SESSION['stime']=time();
展示效果:
相关推荐
标签:
留言与评论(共有 0 条评论) |