mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
[ticket/13455] Update calls to request_var()
PHPBB3-13455
This commit is contained in:
@@ -22,8 +22,8 @@ require($phpbb_root_path . 'includes/functions_user.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/functions_module.' . $phpEx);
|
||||
|
||||
// Basic parameter data
|
||||
$id = request_var('i', '');
|
||||
$mode = request_var('mode', '');
|
||||
$id = $request->variable('i', '');
|
||||
$mode = $request->variable('mode', '');
|
||||
|
||||
if (in_array($mode, array('login', 'login_link', 'logout', 'confirm', 'sendpassword', 'activate')))
|
||||
{
|
||||
@@ -81,7 +81,7 @@ switch ($mode)
|
||||
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
|
||||
}
|
||||
|
||||
login_box(request_var('redirect', "index.$phpEx"));
|
||||
login_box($request->variable('redirect', "index.$phpEx"));
|
||||
break;
|
||||
|
||||
case 'login_link':
|
||||
@@ -212,7 +212,7 @@ switch ($mode)
|
||||
|
||||
case 'switch_perm':
|
||||
|
||||
$user_id = request_var('u', 0);
|
||||
$user_id = $request->variable('u', 0);
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . USERS_TABLE . '
|
||||
@@ -221,7 +221,7 @@ switch ($mode)
|
||||
$user_row = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (!$auth->acl_get('a_switchperm') || !$user_row || $user_id == $user->data['user_id'] || !check_link_hash(request_var('hash', ''), 'switchperm'))
|
||||
if (!$auth->acl_get('a_switchperm') || !$user_row || $user_id == $user->data['user_id'] || !check_link_hash($request->variable('hash', ''), 'switchperm'))
|
||||
{
|
||||
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
|
||||
}
|
||||
@@ -285,7 +285,7 @@ if (!$user->data['is_registered'])
|
||||
|
||||
if ($id == 'pm' && $mode == 'view' && isset($_GET['p']))
|
||||
{
|
||||
$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . request_var('p', 0));
|
||||
$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . $request->variable('p', 0));
|
||||
login_box($redirect_url, $user->lang['LOGIN_EXPLAIN_UCP']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user