| 
 | 
 
 
 
 
编辑器打开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);
 
  复制代码 
 
进入版块同意用户协议.zip
(8.4 KB, 下载次数: 3)
 |   
 
 
 
 |