Vergleich inc/class_session.php - 1.2.5 - 1.2.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: class_session.php 2719 2007-02-06 17:04:26Z CraKteR $

 * $Id: class_session.php 3124 2007-06-06 04:56:26Z chris $

 */

class session

 */

class session

Zeile 105Zeile 105
		}

// As a token of our appreciation for getting this far, give the user a cookie

		}

// As a token of our appreciation for getting this far, give the user a cookie

		if(!$_COOKIE['sid'] && $this->sid)

		if((!$_COOKIE['sid'] || $_COOKIE['sid'] != $this->sid) && $this->sid)

		{
my_setcookie("sid", $this->sid, -1, true);
}

		{
my_setcookie("sid", $this->sid, -1, true);
}

Zeile 249Zeile 249
		// Choose time format.
if($mybb->user['timeformat'] != "0" || $mybb->user['timeformat'] != '')
{

		// Choose time format.
if($mybb->user['timeformat'] != "0" || $mybb->user['timeformat'] != '')
{

			switch($mybb->user['timeformat']) {


			switch($mybb->user['timeformat'])
{

				case "1":
$mybb->settings['timeformat'] = "h:i a";
break;

				case "1":
$mybb->settings['timeformat'] = "h:i a";
break;

Zeile 486Zeile 487
		// Else delete by ip.
else
{

		// Else delete by ip.
else
{

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

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

			$onlinedata['uid'] = 0;
}


			$onlinedata['uid'] = 0;
}