Massive upgrade
This commit is contained in:
parent
99a9ed919e
commit
c1a3437f9b
396 changed files with 29083 additions and 31939 deletions
|
@ -82,8 +82,9 @@ class session {
|
|||
$additional_message = '<br />'.$lang->_('REASON').' '.$this->userdata['bio'];
|
||||
}
|
||||
//$this->destroy_session($session->sid);
|
||||
$this->userdata['uid']=0;
|
||||
|
||||
|
||||
$this->userdata['uid']=0;
|
||||
|
||||
$this->setcookie($config['cookiename'] . '_base', 0, time()-3600, $config['path'],$config['domain']);
|
||||
$core->message($lang->_('BANNED'),$lang->_('YOUHAVEBEENBANNED').$additional_message);
|
||||
}
|
||||
|
@ -152,7 +153,7 @@ class session {
|
|||
$time = time();
|
||||
if($time - $this->userdata['lastactive'] > 900){
|
||||
$db->query("UPDATE `" . $config["prefix"] . "users` SET `lastvisit`='" . $this->userdata['lastactive'] . "', `lastactive`='" . $time . "'".$lastip_add." WHERE `uid`='" . $uid . "'");
|
||||
$mybb->user['lastvisit'] = $mybb->user['lastactive'];
|
||||
//$mybb->user['lastvisit'] = $mybb->user['lastactive'];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -344,7 +345,7 @@ class session {
|
|||
function sanitize_username($username){
|
||||
global $config;
|
||||
$username = trim($username);
|
||||
$username = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $username);
|
||||
$username = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $username);
|
||||
$username = str_replace(array(chr(160), chr(173), chr(0xCA), chr(8238), chr(8237), chr(8203),"]","[","/","\\"), array("", "-", "", "", "", "","","","",""), $username);
|
||||
// Remove multiple spaces from the username
|
||||
$username = preg_replace("#\s{2,}#", "", $username);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue