mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
- updated all code to use the request class instead of any direct access to
super globals - disabled super globals in common.php. See commit r9101 for more information - cleaned up/simplified a few lines along the way. git-svn-id: file:///svn/phpbb/trunk@9102 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -195,7 +195,7 @@ class mcp_warn
|
||||
|
||||
$post_id = request_var('p', 0);
|
||||
$forum_id = request_var('f', 0);
|
||||
$notify = (isset($_REQUEST['notify_user'])) ? true : false;
|
||||
$notify = request::is_set('notify_user');
|
||||
$warning = utf8_normalize_nfc(request_var('warning', '', true));
|
||||
|
||||
$sql = 'SELECT u.*, p.*
|
||||
@@ -337,7 +337,7 @@ class mcp_warn
|
||||
|
||||
$user_id = request_var('u', 0);
|
||||
$username = request_var('username', '', true);
|
||||
$notify = (isset($_REQUEST['notify_user'])) ? true : false;
|
||||
$notify = request::is_set('notify_user');
|
||||
$warning = utf8_normalize_nfc(request_var('warning', '', true));
|
||||
|
||||
$sql_where = ($user_id) ? "user_id = $user_id" : "username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'";
|
||||
|
Reference in New Issue
Block a user