Vergleich admin/index.php - 1.4.3 - 1.4.8

  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: index.php 4163 2008-08-31 16:57:07Z Tikitiki $

 * $Id: index.php 4339 2009-04-04 18:26:37Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 60Zeile 60

$ip_address = get_ip();
unset($user);


$ip_address = get_ip();
unset($user);

 

// Load Admin CP style
if(!$cp_style)
{
if(!empty($mybb->settings['cpstyle']) && file_exists(MYBB_ADMIN_DIR."/styles/".$mybb->settings['cpstyle']."/main.css"))
{
$cp_style = $mybb->settings['cpstyle'];
}
else
{
$cp_style = "default";
}
}


$logged_out = false;
$fail_check = 0;


$logged_out = false;
$fail_check = 0;

Zeile 102Zeile 115
		$post_verify = false;

$mybb->request_method = "get";

		$post_verify = false;

$mybb->request_method = "get";

	}

	}

	else
{
$fail_check = 1;

	else
{
$fail_check = 1;

Zeile 143Zeile 156
			{
// Admin CP sessions 2 hours old are expired
if($admin_session['lastactive'] < TIME_NOW-7200)

			{
// Admin CP sessions 2 hours old are expired
if($admin_session['lastactive'] < TIME_NOW-7200)

				{

				{

					$login_message = $lang->error_admin_session_expired;
$db->delete_query("adminsessions", "sid='".$db->escape_string($mybb->cookies['adminsid'])."'");
unset($mybb->user);

					$login_message = $lang->error_admin_session_expired;
$db->delete_query("adminsessions", "sid='".$db->escape_string($mybb->cookies['adminsid'])."'");
unset($mybb->user);

Zeile 192Zeile 205

if($mybb->usergroup['cancp'] != 1 || !$mybb->user['uid'])
{


if($mybb->usergroup['cancp'] != 1 || !$mybb->user['uid'])
{

 
	$db->delete_query("adminsessions", "uid='".intval($mybb->user['uid'])."'");

	unset($mybb->user);

	unset($mybb->user);

 
	my_setcookie("adminsid", "");

}

if($mybb->user['uid'])

}

if($mybb->user['uid'])

Zeile 213Zeile 228

// Fetch administrator permissions
$mybb->admin['permissions'] = get_admin_permissions($mybb->user['uid']);


// Fetch administrator permissions
$mybb->admin['permissions'] = get_admin_permissions($mybb->user['uid']);

}

// Load Admin CP style
if(!$cp_style)
{
if(!empty($mybb->settings['cpstyle']) && file_exists(MYBB_ADMIN_DIR."/styles/".$mybb->settings['cpstyle']."/main.css"))
{
$cp_style = $mybb->settings['cpstyle'];
}
else
{
$cp_style = "default";
}

 
}

// Include the layout generation class overrides for this style

}

// Include the layout generation class overrides for this style