mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Merge pull request #4058 from marc1706/ticket/13454
[ticket/13454] Remove unused variables, globals, and parameters * marc1706/ticket/13454: [ticket/13454] Add excessively removed code back [ticket/13454] Remove more unused variables [ticket/13454] Remove double semi-colons [ticket/13454] Remove unused variables [ticket/13454] Fix code sniffer complaints [ticket/13454] Fix a few issues introduced by overdeleting stuff [ticket/13454] Remove unused variables [ticket/13454] Remove unused variables [ticket/13454] Remove unused variables [ticket/13454] Remove unused variables
This commit is contained in:
@@ -31,8 +31,8 @@ class acp_users
|
||||
|
||||
function main($id, $mode)
|
||||
{
|
||||
global $config, $db, $user, $auth, $template, $cache;
|
||||
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix, $file_uploads;
|
||||
global $config, $db, $user, $auth, $template;
|
||||
global $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
||||
global $phpbb_dispatcher, $request;
|
||||
global $phpbb_container, $phpbb_log;
|
||||
|
||||
@@ -298,13 +298,11 @@ class acp_users
|
||||
case 'banuser':
|
||||
$ban[] = $user_row['username'];
|
||||
$reason = 'USER_ADMIN_BAN_NAME_REASON';
|
||||
$log = 'LOG_USER_BAN_USER';
|
||||
break;
|
||||
|
||||
case 'banemail':
|
||||
$ban[] = $user_row['user_email'];
|
||||
$reason = 'USER_ADMIN_BAN_EMAIL_REASON';
|
||||
$log = 'LOG_USER_BAN_EMAIL';
|
||||
break;
|
||||
|
||||
case 'banip':
|
||||
@@ -322,7 +320,6 @@ class acp_users
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$reason = 'USER_ADMIN_BAN_IP_REASON';
|
||||
$log = 'LOG_USER_BAN_IP';
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1271,17 +1268,10 @@ class acp_users
|
||||
$user->add_lang('mcp');
|
||||
|
||||
// Set up general vars
|
||||
$start = $request->variable('start', 0);
|
||||
$deletemark = (isset($_POST['delmarked'])) ? true : false;
|
||||
$deleteall = (isset($_POST['delall'])) ? true : false;
|
||||
$confirm = (isset($_POST['confirm'])) ? true : false;
|
||||
$marked = $request->variable('mark', array(0));
|
||||
$message = $request->variable('message', '', true);
|
||||
|
||||
// Sort keys
|
||||
$sort_days = $request->variable('st', 0);
|
||||
$sort_key = $request->variable('sk', 't');
|
||||
$sort_dir = $request->variable('sd', 'd');
|
||||
|
||||
// Delete entries if requested and able
|
||||
if ($deletemark || $deleteall || $confirm)
|
||||
@@ -1546,7 +1536,6 @@ class acp_users
|
||||
$selected = ($i == $data['bday_month']) ? ' selected="selected"' : '';
|
||||
$s_birthday_month_options .= "<option value=\"$i\"$selected>$i</option>";
|
||||
}
|
||||
$s_birthday_year_options = '';
|
||||
|
||||
$now = getdate();
|
||||
$s_birthday_year_options = '<option value="0"' . ((!$data['bday_year']) ? ' selected="selected"' : '') . '>--</option>';
|
||||
@@ -2296,10 +2285,6 @@ class acp_users
|
||||
trigger_error($user->lang['NOT_ALLOWED_MANAGE_GROUP'] . adm_back_link($this->u_action . '&u=' . $user_id), E_USER_WARNING);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$founder_manage = 0;
|
||||
}
|
||||
|
||||
switch ($action)
|
||||
{
|
||||
|
Reference in New Issue
Block a user