"Fossies" - the Fresh Open Source Software Archive  

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

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

class_session.php  (mybb_1821):class_session.php  (mybb_1822)
skipping to change at line 326 skipping to change at line 326
* Load a guest user. * Load a guest user.
* *
*/ */
function load_guest() function load_guest()
{ {
global $mybb, $time, $db, $lang; global $mybb, $time, $db, $lang;
// Set up some defaults // Set up some defaults
$time = TIME_NOW; $time = TIME_NOW;
$mybb->user['usergroup'] = 1; $mybb->user['usergroup'] = 1;
$mybb->user['additionalgroups'] = '';
$mybb->user['username'] = ''; $mybb->user['username'] = '';
$mybb->user['uid'] = 0; $mybb->user['uid'] = 0;
$mybbgroups = 1; $mybbgroups = 1;
$mybb->user['displaygroup'] = 1; $mybb->user['displaygroup'] = 1;
// Has this user visited before? Lastvisit need updating? // Has this user visited before? Lastvisit need updating?
if(isset($mybb->cookies['mybb']['lastvisit'])) if(isset($mybb->cookies['mybb']['lastvisit']))
{ {
if(!isset($mybb->cookies['mybb']['lastactive'])) if(!isset($mybb->cookies['mybb']['lastactive']))
{ {
skipping to change at line 506 skipping to change at line 507
if($uid > 0) if($uid > 0)
{ {
$db->delete_query("sessions", "uid='{$uid}'"); $db->delete_query("sessions", "uid='{$uid}'");
$onlinedata['uid'] = $uid; $onlinedata['uid'] = $uid;
} }
// Is a spider - delete all other spider references // Is a spider - delete all other spider references
else if($this->is_spider == true) else if($this->is_spider == true)
{ {
$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($t his->packedip));
$onlinedata['uid'] = 0; $onlinedata['uid'] = 0;
} }
// If the user is a search enginge spider, ... // If the user is a search enginge spider, ...
if($this->is_spider == true) if($this->is_spider == true)
{ {
$onlinedata['sid'] = $this->sid; $onlinedata['sid'] = $this->sid;
} }
else else
{ {
 End of changes. 3 change blocks. 
2 lines changed or deleted 1 lines changed or added

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