mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 20:24:08 +02:00
Remove need for session_ids for "allowed" bots, dump user_founder/user_active in favour of user_type, new user_type, USER_IGNORE
git-svn-id: file:///svn/phpbb/trunk@4603 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -238,8 +238,8 @@ $user->setup();
|
||||
$ucp = new module();
|
||||
|
||||
// Basic parameter data
|
||||
$mode = (!empty($_REQUEST['mode'])) ? htmlspecialchars($_REQUEST['mode']) : false;
|
||||
$module = (!empty($_REQUEST['i'])) ? htmlspecialchars($_REQUEST['i']) : false;
|
||||
$mode = request_var('mode', '');
|
||||
$module = request_var('i', '');
|
||||
|
||||
// Basic "global" modes
|
||||
switch ($mode)
|
||||
@@ -247,6 +247,7 @@ switch ($mode)
|
||||
case 'activate':
|
||||
$ucp->load('ucp', 'activate');
|
||||
$ucp->module->ucp_activate();
|
||||
redirect("index.$phpEx$SID");
|
||||
break;
|
||||
|
||||
case 'sendpassword':
|
||||
@@ -292,7 +293,7 @@ switch ($mode)
|
||||
|
||||
|
||||
// Only registered users can go beyond this point
|
||||
if ($user->data['user_id'] == ANONYMOUS)
|
||||
if ($user->data['user_type'] == USER_INACTIVE || $user->data['user_type'] == USER_IGNORE)
|
||||
{
|
||||
redirect("index.$phpEx");
|
||||
}
|
||||
|
Reference in New Issue
Block a user