1 頁 (共 1 頁)

[外掛]讓匿名者無法觀看已註冊會員的資料

發表於 : 2004-09-15 16:38
dendrimer
MOD Name: Redirect anonymous users to login
Author: StefanKausL
MOD Description: This very simple MOD redirects anonymous users to the login page instead of showing member, groups, or profile pages. That way anonymous users can't see registered user's data.

MOD Version: 1.0.3 (Updated 08/18/04)


Installation Level: Easy
Installation Time: ~ 1 Minute

Download File: http://www.phpbb.com/phpBB/catdb.php?mo ... id=1175409

File Size: 4135 Bytes

1.開啟 groupcp.php
搜尋
init_userprefs($userdata);
在其之後插入\r
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}

2.開啟 memberlist.php
搜尋
init_userprefs($userdata);
在其之後插入\r
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}

3. 開啟 viewonline.php
搜尋
init_userprefs($userdata);
在其之後插入\r
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}

4. 開啟 profile.php
搜尋
if ( $mode == 'viewprofile' )
{
在其之後插入\r
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid('login.'.$phpEx));
}