Zeile 69 | Zeile 69 |
---|
{ $query = $db->simple_select("sessions", "*", "sid='{$sid}'"); $session = $db->fetch_array($query);
|
{ $query = $db->simple_select("sessions", "*", "sid='{$sid}'"); $session = $db->fetch_array($query);
|
if($session['sid'])
| if(!empty($session) && $session['sid'])
|
{ $this->sid = $session['sid']; }
| { $this->sid = $session['sid']; }
|
Zeile 350 | Zeile 350 |
---|
$mybb->user['uid'] = 0; $mybbgroups = 1; $mybb->user['displaygroup'] = 1;
|
$mybb->user['uid'] = 0; $mybbgroups = 1; $mybb->user['displaygroup'] = 1;
|
| $mybb->user['invisible'] = 0;
|
// Has this user visited before? Lastvisit need updating? if(isset($mybb->cookies['mybb']['lastvisit']))
| // Has this user visited before? Lastvisit need updating? if(isset($mybb->cookies['mybb']['lastvisit']))
|
Zeile 433 | Zeile 434 |
---|
$mybb->user['username'] = ''; $mybb->user['uid'] = 0; $mybb->user['displaygroup'] = $mybb->user['usergroup'];
|
$mybb->user['username'] = ''; $mybb->user['uid'] = 0; $mybb->user['displaygroup'] = $mybb->user['usergroup'];
|
| $mybb->user['additionalgroups'] = ''; $mybb->user['invisible'] = 0;
|
// Set spider language if($spider['language'] && $lang->language_exists($spider['language']))
| // Set spider language if($spider['language'] && $lang->language_exists($spider['language']))
|
Zeile 485 | Zeile 488 |
---|
// Find out what the special locations are. $speciallocs = $this->get_special_locations(); if($uid)
|
// Find out what the special locations are. $speciallocs = $this->get_special_locations(); if($uid)
|
{ $onlinedata['uid'] = $uid;
| { $onlinedata['uid'] = $uid;
|
} else { $onlinedata['uid'] = 0; } $onlinedata['time'] = TIME_NOW;
|
} else { $onlinedata['uid'] = 0; } $onlinedata['time'] = TIME_NOW;
|
|
|
$onlinedata['location'] = $db->escape_string(substr(get_current_location(false, $this->ignore_parameters), 0, 150)); $onlinedata['useragent'] = $db->escape_string(my_substr($this->useragent, 0, 200));
|
$onlinedata['location'] = $db->escape_string(substr(get_current_location(false, $this->ignore_parameters), 0, 150)); $onlinedata['useragent'] = $db->escape_string(my_substr($this->useragent, 0, 200));
|
|
|
$onlinedata['location1'] = (int)$speciallocs['1']; $onlinedata['location2'] = (int)$speciallocs['2']; $onlinedata['nopermission'] = 0; $sid = $db->escape_string($sid);
|
$onlinedata['location1'] = (int)$speciallocs['1']; $onlinedata['location2'] = (int)$speciallocs['2']; $onlinedata['nopermission'] = 0; $sid = $db->escape_string($sid);
|
|
|
$db->update_query("sessions", $onlinedata, "sid='{$sid}'"); }
| $db->update_query("sessions", $onlinedata, "sid='{$sid}'"); }
|
Zeile 514 | Zeile 517 |
---|
{ global $db; $speciallocs = $this->get_special_locations();
|
{ global $db; $speciallocs = $this->get_special_locations();
|
|
|
// If there is a proper uid, delete by uid. if($uid > 0)
|
// If there is a proper uid, delete by uid. if($uid > 0)
|
{
| {
|
$db->delete_query("sessions", "uid='{$uid}'"); $onlinedata['uid'] = $uid;
|
$db->delete_query("sessions", "uid='{$uid}'"); $onlinedata['uid'] = $uid;
|
} // Is a spider - delete all other spider references else if($this->is_spider == true) { $db->delete_query("sessions", "sid='{$this->sid}'");
| |
} else {
|
} else {
|
| // Is a spider - delete all other spider references if($this->is_spider == true) { $db->delete_query("sessions", "sid='{$this->sid}'"); }
|
$onlinedata['uid'] = 0; }
| $onlinedata['uid'] = 0; }
|
Zeile 545 | Zeile 549 |
---|
$onlinedata['location'] = $db->escape_string(substr(get_current_location(false, $this->ignore_parameters), 0, 150)); $onlinedata['useragent'] = $db->escape_string(my_substr($this->useragent, 0, 200));
|
$onlinedata['location'] = $db->escape_string(substr(get_current_location(false, $this->ignore_parameters), 0, 150)); $onlinedata['useragent'] = $db->escape_string(my_substr($this->useragent, 0, 200));
|
|
|
$onlinedata['location1'] = (int)$speciallocs['1']; $onlinedata['location2'] = (int)$speciallocs['2']; $onlinedata['nopermission'] = 0;
| $onlinedata['location1'] = (int)$speciallocs['1']; $onlinedata['location2'] = (int)$speciallocs['2']; $onlinedata['nopermission'] = 0;
|