如何设定为未注册就无法观看论坛

Home Home
引用 | 编辑 芦洲阿良
2006-05-24 03:51
楼主
推文 x0
【类型】主程式
【版本】4.32

请问如何设定为未注册就无法观看论坛
也就是在论坛的首页看的到各个版块
不过在点进去的时候会出现需先登入或是注册

非常感谢

献花 x0
引用 | 编辑 dycheng83
2006-05-24 16:07
1楼
  
所有版区设为正规版块



thread.php 加

if(!$windid) header("Location=login.php");

献花 x0
引用 | 编辑 芦洲阿良
2006-05-28 21:42
2楼
  
请问在thread.php 的最后面加
if(!$windid) header("Location=login.php");
就可以了吗?

非常感谢

献花 x0
引用 | 编辑 dycheng83
2006-06-01 14:40
3楼
  
搜寻
!$windid && $admincheck = 0;
下加
if(!$windid) header("Location:login.php");

献花 x0