1
0
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:
Paul S. Owen
2003-10-15 17:43:07 +00:00
parent 8661a45de5
commit a47fa4d6ca
21 changed files with 425 additions and 251 deletions

View File

@@ -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");
}