Vergleich inc/class_session.php - 1.8.6 - 1.8.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 144Zeile 144
		}

// Check the password if we're not using a session

		}

// Check the password if we're not using a session

		if(empty($loginkey) || $loginkey != $mybb->user['loginkey'] || !$mybb->user['uid'])

		if(empty($loginkey) || $loginkey !== $mybb->user['loginkey'] || !$mybb->user['uid'])

		{
unset($mybb->user);
$this->uid = 0;

		{
unset($mybb->user);
$this->uid = 0;

Zeile 467Zeile 467
		$onlinedata['time'] = TIME_NOW;

$onlinedata['location'] = $db->escape_string(substr(get_current_location(), 0, 150));

		$onlinedata['time'] = TIME_NOW;

$onlinedata['location'] = $db->escape_string(substr(get_current_location(), 0, 150));

		$onlinedata['useragent'] = $db->escape_string(my_substr($this->useragent, 0, 100));

		$onlinedata['useragent'] = $db->escape_string(my_substr($this->useragent, 0, 200));

		
$onlinedata['location1'] = (int)$speciallocs['1'];
$onlinedata['location2'] = (int)$speciallocs['2'];

		
$onlinedata['location1'] = (int)$speciallocs['1'];
$onlinedata['location2'] = (int)$speciallocs['2'];

Zeile 512Zeile 512
		}
else
{

		}
else
{

			$onlinedata['sid'] = md5(uniqid(microtime(true), true));

			$onlinedata['sid'] = md5(random_str(50));

		}
$onlinedata['time'] = TIME_NOW;
$onlinedata['ip'] = $db->escape_binary($this->packedip);

$onlinedata['location'] = $db->escape_string(substr(get_current_location(), 0, 150));

		}
$onlinedata['time'] = TIME_NOW;
$onlinedata['ip'] = $db->escape_binary($this->packedip);

$onlinedata['location'] = $db->escape_string(substr(get_current_location(), 0, 150));

		$onlinedata['useragent'] = $db->escape_string(my_substr($this->useragent, 0, 100));

		$onlinedata['useragent'] = $db->escape_string(my_substr($this->useragent, 0, 200));

		
$onlinedata['location1'] = (int)$speciallocs['1'];
$onlinedata['location2'] = (int)$speciallocs['2'];

		
$onlinedata['location1'] = (int)$speciallocs['1'];
$onlinedata['location2'] = (int)$speciallocs['2'];