PHP 7.0 compatibility (short tags replaced by normal)
This commit is contained in:
@@ -26,7 +26,7 @@ class AdminController extends Controller
|
||||
$this->getView('MainView')->putExistingModel('ConfigModel', $this->getModel('ConfigModel'));
|
||||
|
||||
if ($_SERVER['REQUEST_SCHEME'] == 'http')
|
||||
$this->forward(buildURL($_SERVER['REQUEST_URI']));
|
||||
$this->forward(buildURL($_SERVER['REQUEST_URI'], true));
|
||||
|
||||
if (!$this->getModel('SessionModel')->isLogged())
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ function input_clean(&$input, &$dbobj, $opts = null)
|
||||
$input = $dbobj->real_escape_string($input);
|
||||
}
|
||||
|
||||
function post_clean($key, &$dbobj, $opts)
|
||||
function post_clean($key, &$dbobj, $opts = null)
|
||||
{
|
||||
input_clean($_POST[$key], $dbobj, $opts);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ class UsersModel extends Model
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getUserInformation($user_id, $passwd = false)
|
||||
public function getUserInformation($user, $passwd = false)
|
||||
{
|
||||
if ($this->user_info == null)
|
||||
{
|
||||
@@ -50,7 +50,7 @@ class UsersModel extends Model
|
||||
LEFT JOIN '.USERS_INFO_TABLE.' ui on ui.user_id = u.user_id
|
||||
LEFT JOIN '.USERS_PC_VIEW.' pc on pc.user_id = u.user_id
|
||||
LEFT JOIN '.LOGGED_USERS_VIEW.' lu on lu.user_id = u.user_id
|
||||
WHERE u.user_id = \''.$user_id.'\'';
|
||||
WHERE u.user_id = \''.$user.'\' OR u.nick = \''.$user.'\'';
|
||||
|
||||
$out = $this->select_query($query);
|
||||
if (count($out) > 0)
|
||||
|
||||
Reference in New Issue
Block a user