Vergleich admin/global.php - 1.2.0 - 1.2.1

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

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

 * $Id: global.php 2175 2006-08-31 04:27:16Z Tikitiki $

 * $Id: global.php 2207 2006-09-10 01:46:13Z chris $

 */

// Lets pretend we're a level higher

 */

// Lets pretend we're a level higher

Zeile 73Zeile 73

if($user['uid'])
{


if($user['uid'])
{

 
		$sid = md5(uniqid(microtime()));


		// Create a new admin session for this user
$admin_session = array(

		// Create a new admin session for this user
$admin_session = array(

			"sid" => md5(uniqid(microtime())),

			"sid" => $sid,

			"uid" => $user['uid'],
"loginkey" => $user['loginkey'],
"ip" => $db->escape_string(get_ip()),

			"uid" => $user['uid'],
"loginkey" => $user['loginkey'],
"ip" => $db->escape_string(get_ip()),

Zeile 83Zeile 85
			"lastactive" => time()
);
$db->insert_query(TABLE_PREFIX."adminsessions", $admin_session);

			"lastactive" => time()
);
$db->insert_query(TABLE_PREFIX."adminsessions", $admin_session);

 
		$url = "index.php?adminsid=$sid";
if($mybb->input['goto'])
{
$url .= "&goto=".urlencode($mybb->input['goto']);
}
header("Location: $url");

	}
}
else if($mybb->input['action'] == "logout")

	}
}
else if($mybb->input['action'] == "logout")