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 496 | Zeile 497 |
---|
$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;
|
Zeile 514 | Zeile 515 |
---|
{ 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) { $db->delete_query("sessions", "uid='{$uid}'"); $onlinedata['uid'] = $uid;
|
// If there is a proper uid, delete by uid. if($uid > 0) { $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}'");
|
// Is a spider - delete all other spider references else if($this->is_spider == true) { $db->delete_query("sessions", "sid='{$this->sid}'");
|
} else
| } else
|
{ $onlinedata['uid'] = 0; }
| { $onlinedata['uid'] = 0; }
|
Zeile 545 | Zeile 546 |
---|
$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;
|