Vergleich inc/class_session.php - 1.4.0 - 1.4.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: class_session.php 4035 2008-07-23 07:30:14Z chris $

 * $Id: class_session.php 4346 2009-04-14 07:11:03Z Tikitiki $

 */

class session

 */

class session

Zeile 47Zeile 47
			{
$this->sid = $session['sid'];
$this->uid = $session['uid'];

			{
$this->sid = $session['sid'];
$this->uid = $session['uid'];

				$this->logins = $session['loginattempts'];
$this->failedlogin = $session['failedlogin'];

 
			}
else
{

			}
else
{

Zeile 139Zeile 137
		");
$mybb->user = $db->fetch_array($query);


		");
$mybb->user = $db->fetch_array($query);


 
		$this->logins = $mybb->user['loginattempts'];
$this->failedlogin = $mybb->user['failedlogin'];

		
if($bannedcache[$uid])
{

		
if($bannedcache[$uid])
{

Zeile 241Zeile 241
			$mybb->settings['postsperpage'] = $mybb->user['ppp'];
}


			$mybb->settings['postsperpage'] = $mybb->user['ppp'];
}


		// DOes this user prefer posts in classic mode?

		// Does this user prefer posts in classic mode?

		if($mybb->user['classicpostbit'])
{
$mybb->settings['postlayout'] = 'classic';

		if($mybb->user['classicpostbit'])
{
$mybb->settings['postlayout'] = 'classic';

 
		}
else
{
$mybb->settings['postlayout'] = 'horizontal';

		}

// Check if this user is currently banned and if we have to lift it.

		}

// Check if this user is currently banned and if we have to lift it.

Zeile 487Zeile 491
		// 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}'", 1);

			$db->delete_query("sessions", "uid='{$uid}'");

			$onlinedata['uid'] = $uid;
}
// Is a spider - delete all other spider references
else if($this->is_spider == true)
{

			$onlinedata['uid'] = $uid;
}
// Is a spider - delete all other spider references
else if($this->is_spider == true)
{

			$db->delete_query("sessions", "sid='{$this->sid}'", 1);

			$db->delete_query("sessions", "sid='{$this->sid}'");

		}
// Else delete by ip.
else
{

		}
// Else delete by ip.
else
{

			$db->delete_query("sessions", "ip='".$db->escape_string($this->ipaddress)."'", 1);

			$db->delete_query("sessions", "ip='".$db->escape_string($this->ipaddress)."'");

			$onlinedata['uid'] = 0;
}


			$onlinedata['uid'] = 0;
}


Zeile 518Zeile 522
		$onlinedata['location1'] = intval($speciallocs['1']);
$onlinedata['location2'] = intval($speciallocs['2']);
$onlinedata['nopermission'] = 0;

		$onlinedata['location1'] = intval($speciallocs['1']);
$onlinedata['location2'] = intval($speciallocs['2']);
$onlinedata['nopermission'] = 0;

		$db->insert_query("sessions", $onlinedata);

		$db->replace_query("sessions", $onlinedata, "sid", false);

		$this->sid = $onlinedata['sid'];
$this->uid = $onlinedata['uid'];
}

		$this->sid = $onlinedata['sid'];
$this->uid = $onlinedata['uid'];
}