mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Get rid of get_get_param() function
This commit is contained in:
parent
0f64ad3674
commit
5bc4698520
@ -571,7 +571,8 @@ function visitor_from_request()
|
||||
}
|
||||
|
||||
if ($user_name == $default_name) {
|
||||
$user_name = get_get_param('name', $user_name);
|
||||
$temp = Request::createFromGlobals()->query->get('name');
|
||||
$user_name = $temp ? $temp : $user_name;
|
||||
}
|
||||
|
||||
if (isset($_COOKIE[USERID_COOKIE_NAME])) {
|
||||
|
@ -1,31 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is a part of Mibew Messenger.
|
||||
*
|
||||
* Copyright 2005-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
function get_get_param($name, $default = '')
|
||||
{
|
||||
if (!isset($_GET[$name]) || !$_GET[$name]) {
|
||||
return $default;
|
||||
}
|
||||
$value = unicode_urldecode($_GET[$name]);
|
||||
if (get_magic_quotes_gpc()) {
|
||||
$value = stripslashes($value);
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
@ -40,7 +40,6 @@ require_once(MIBEW_FS_ROOT . '/libs/common/locale.php');
|
||||
require_once(MIBEW_FS_ROOT . '/libs/common/csrf.php');
|
||||
require_once(MIBEW_FS_ROOT . '/libs/common/datetime.php');
|
||||
require_once(MIBEW_FS_ROOT . '/libs/common/misc.php');
|
||||
require_once(MIBEW_FS_ROOT . '/libs/common/request.php');
|
||||
require_once(MIBEW_FS_ROOT . '/libs/common/response.php');
|
||||
require_once(MIBEW_FS_ROOT . '/libs/common/string.php');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user