mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-26 09:44:26 +02:00
fix some issues with oop, fixing small bugs and prepare the next steps...
NOTE TO DEVS: have a look at adm/admin_board.php (new config layout) git-svn-id: file:///svn/phpbb/trunk@4883 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -24,7 +24,7 @@ include($phpbb_root_path . 'common.'.$phpEx);
|
||||
// Start session management
|
||||
$user->start();
|
||||
$auth->acl($user->data);
|
||||
$user->setup();
|
||||
$user->setup('memberlist');
|
||||
|
||||
// Grab data
|
||||
$mode = request_var('mode', '');
|
||||
@@ -38,7 +38,7 @@ switch ($mode)
|
||||
break;
|
||||
|
||||
default:
|
||||
// Can this user view profiles/memberslist?
|
||||
// Can this user view profiles/memberlist?
|
||||
if (!$auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
|
||||
{
|
||||
if ($user->data['user_id'] != ANONYMOUS)
|
||||
@@ -69,7 +69,7 @@ switch ($mode)
|
||||
{
|
||||
case 'leaders':
|
||||
// Display a listing of board admins, moderators?
|
||||
$user_ary = auth::acl_get_list(false, array('a_', 'm_'), false);
|
||||
$user_ary = $auth->acl_get_list(false, array('a_', 'm_'), false);
|
||||
|
||||
$user_id_ary = array();
|
||||
foreach ($user_ary as $forum_id => $forum_ary)
|
||||
@@ -127,6 +127,10 @@ switch ($mode)
|
||||
$s_select = (@extension_loaded('xml')) ? 'S_SEND_JABBER' : 'S_NO_SEND_JABBER';
|
||||
$s_action = "memberlist.$phpEx$SID&mode=contact&action=$action&u=$user_id";
|
||||
break;
|
||||
|
||||
default:
|
||||
$sql_field = '';
|
||||
break;
|
||||
}
|
||||
|
||||
// Grab relevant data
|
||||
@@ -746,7 +750,7 @@ switch ($mode)
|
||||
'S_USERNAME_OPTIONS' => $username_list,
|
||||
'S_JOINED_TIME_OPTIONS' => $s_find_join_time,
|
||||
'S_ACTIVE_TIME_OPTIONS' => $s_find_active_time,
|
||||
'S_SEARCH_ACTION' => "memberslist.$phpEx$SID&mode=searchuser&field=$field")
|
||||
'S_SEARCH_ACTION' => "memberlist.$phpEx$SID&mode=searchuser&form=$form&field=$field")
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user