用户进入板块之前先要同意用户协议,点击协议版本
编辑器打开forumdisplay.php,找到$sdb = loadmultiserver();在上面添加以下代码$fcheckkey = 'fcheck'.$fid;
$checkfids = array('1','2','4');//定义需要弹出确认的版块fid号
if($_DCOOKIE[$fcheckkey] != 'ok' && in_array($fid, $checkfids)) {//如果没有cookie记录
if(urlencode($fcheck)=='%C8%B7%B6%A8') {
dsetcookie($fcheckkey, 'ok', 3600, 1, true);
header('Location: forumdisplay.php?fid='.$fid);
exit;
//写cookie并刷新
} elseif(urlencode($fcheck)=='%C8%A1%CF%FB') {
header('Location: index.php');
exit;
//不写cookie并退回
}
include template('forumdisplay_check');
exit();
}
unset($fcheckkey);
页:
[1]