"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/inc/datahandlers/login.php" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

login.php  (mybb_1821):login.php  (mybb_1822)
skipping to change at line 313 skipping to change at line 313
global $plugins, $db, $mybb, $session; global $plugins, $db, $mybb, $session;
$user = &$this->login_data; $user = &$this->login_data;
$plugins->run_hooks('datahandler_login_complete_start', $this); $plugins->run_hooks('datahandler_login_complete_start', $this);
// Login to MyBB // Login to MyBB
my_setcookie('loginattempts', 1); my_setcookie('loginattempts', 1);
my_setcookie("sid", $session->sid, -1, true); my_setcookie("sid", $session->sid, -1, true);
$ip_address = $db->escape_binary($session->packedip);
$db->delete_query("sessions", "ip = {$ip_address} AND sid != '{$s
ession->sid}'");
$newsession = array( $newsession = array(
"uid" => $user['uid'], "uid" => $user['uid'],
); );
$db->update_query("sessions", $newsession, "sid = '{$session->sid }'"); $db->update_query("sessions", $newsession, "sid = '{$session->sid }'");
$db->update_query("users", array("loginattempts" => 1), "uid = '{ $user['uid']}'"); $db->update_query("users", array("loginattempts" => 1), "uid = '{ $user['uid']}'");
$remember = null; $remember = null;
if(!isset($mybb->input['remember']) || $mybb->input['remember'] ! = "yes") if(!isset($mybb->input['remember']) || $mybb->input['remember'] ! = "yes")
{ {
 End of changes. 1 change blocks. 
4 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)