Zeile 144 | Zeile 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 323 | Zeile 323 |
---|
// Set up some defaults $time = TIME_NOW; $mybb->user['usergroup'] = 1;
|
// Set up some defaults $time = TIME_NOW; $mybb->user['usergroup'] = 1;
|
| $mybb->user['additionalgroups'] = '';
|
$mybb->user['username'] = ''; $mybb->user['uid'] = 0; $mybbgroups = 1;
| $mybb->user['username'] = ''; $mybb->user['uid'] = 0; $mybbgroups = 1;
|
Zeile 364 | Zeile 365 |
---|
// Gather a full permission set for this guest $mybb->usergroup = usergroup_permissions($mybbgroups); $mydisplaygroup = usergroup_displaygroup($mybb->user['displaygroup']);
|
// Gather a full permission set for this guest $mybb->usergroup = usergroup_permissions($mybbgroups); $mydisplaygroup = usergroup_displaygroup($mybb->user['displaygroup']);
|
$mybb->usergroup = array_merge($mybb->usergroup, $mydisplaygroup);
| if(is_array($mydisplaygroup)) { $mybb->usergroup = array_merge($mybb->usergroup, $mydisplaygroup); }
|
// Update the online data. if(!defined("NO_ONLINE") && !defined('IN_UPGRADE'))
| // Update the online data. if(!defined("NO_ONLINE") && !defined('IN_UPGRADE'))
|
Zeile 424 | Zeile 427 |
---|
// Gather a full permission set for this spider. $mybb->usergroup = usergroup_permissions($mybb->user['usergroup']); $mydisplaygroup = usergroup_displaygroup($mybb->user['displaygroup']);
|
// Gather a full permission set for this spider. $mybb->usergroup = usergroup_permissions($mybb->user['usergroup']); $mydisplaygroup = usergroup_displaygroup($mybb->user['displaygroup']);
|
$mybb->usergroup = array_merge($mybb->usergroup, $mydisplaygroup);
| if(is_array($mydisplaygroup)) { $mybb->usergroup = array_merge($mybb->usergroup, $mydisplaygroup); }
|
// Update spider last minute (only do so on two minute intervals - decrease load for quick spiders) if($spider['lastvisit'] < TIME_NOW-120)
| // Update spider last minute (only do so on two minute intervals - decrease load for quick spiders) if($spider['lastvisit'] < TIME_NOW-120)
|
Zeile 498 | Zeile 504 |
---|
{ $db->delete_query("sessions", "sid='{$this->sid}'"); }
|
{ $db->delete_query("sessions", "sid='{$this->sid}'"); }
|
// Else delete by ip.
| |
else {
|
else {
|
$db->delete_query("sessions", "ip=".$db->escape_binary($this->packedip));
| |
$onlinedata['uid'] = 0; }
| $onlinedata['uid'] = 0; }
|
Zeile 537 | Zeile 541 |
---|
{ global $mybb; $array = array('1' => '', '2' => '');
|
{ global $mybb; $array = array('1' => '', '2' => '');
|
if(preg_match("#forumdisplay.php#", $_SERVER['PHP_SELF']) && $mybb->get_input('fid', MyBB::INPUT_INT) > 0)
| if(preg_match("#forumdisplay.php#", $_SERVER['PHP_SELF']) && $mybb->get_input('fid', MyBB::INPUT_INT) > 0 && $mybb->get_input('fid', MyBB::INPUT_INT) < 4294967296)
|
{ $array[1] = $mybb->get_input('fid', MyBB::INPUT_INT); $array[2] = '';
| { $array[1] = $mybb->get_input('fid', MyBB::INPUT_INT); $array[2] = '';
|
Zeile 546 | Zeile 550 |
---|
{ global $db;
|
{ global $db;
|
if($mybb->get_input('tid', MyBB::INPUT_INT) > 0)
| if($mybb->get_input('tid', MyBB::INPUT_INT) > 0 && $mybb->get_input('tid', MyBB::INPUT_INT) < 4294967296)
|
{ $array[2] = $mybb->get_input('tid', MyBB::INPUT_INT); }
| { $array[2] = $mybb->get_input('tid', MyBB::INPUT_INT); }
|