Vergleich admin/index.php - 1.4.1 - 1.4.2

  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 4048 2008-07-26 03:27:58Z Tikitiki $

 * $Id: index.php 4163 2008-08-31 16:57:07Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 42Zeile 42

// Load global language phrases
$lang->load("global");


// Load global language phrases
$lang->load("global");

 

if(function_exists('mb_internal_encoding') && !empty($lang->settings['charset']))
{
@mb_internal_encoding($lang->settings['charset']);
}


header("Content-type: text/html; charset={$lang->settings['charset']}");


header("Content-type: text/html; charset={$lang->settings['charset']}");





$time = TIME_NOW;
$errors = null;

if(is_dir(MYBB_ROOT."install") && !file_exists(MYBB_ROOT."install/lock"))

$time = TIME_NOW;
$errors = null;

if(is_dir(MYBB_ROOT."install") && !file_exists(MYBB_ROOT."install/lock"))

{

{

	$mybb->trigger_generic_error("install_directory");
}

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

	$mybb->trigger_generic_error("install_directory");
}

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





$logged_out = false;
$fail_check = 0;
$post_verify = true;

$logged_out = false;
$fail_check = 0;
$post_verify = true;

Zeile 63Zeile 68
if($mybb->input['action'] == "logout")
{
// Delete session from the database

if($mybb->input['action'] == "logout")
{
// Delete session from the database

	$db->delete_query("adminsessions", "sid='".$db->escape_string($mybb->input['adminsid'])."'");

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

	my_setcookie("adminsid", "");
$logged_out = true;
}

	my_setcookie("adminsid", "");
$logged_out = true;
}

Zeile 95Zeile 100
		$db->insert_query("adminsessions", $admin_session);
my_setcookie("adminsid", $sid);
$post_verify = false;

		$db->insert_query("adminsessions", $admin_session);
my_setcookie("adminsid", $sid);
$post_verify = false;

 
		
$mybb->request_method = "get";

	}
else
{

	}
else
{

Zeile 165Zeile 172
					if(!$valid_ip)
{
$login_message = $lang->error_invalid_ip;

					if(!$valid_ip)
{
$login_message = $lang->error_invalid_ip;

 
						unset($mybb->user);

					}
}
}

					}
}
}

Zeile 200Zeile 208
	// Update the session information in the DB
if($admin_session['sid'])
{

	// Update the session information in the DB
if($admin_session['sid'])
{

		$db->update_query("adminsessions", array('lastactive' => TIME_NOW, 'ip' => $db->escape_string($session->ipaddress)), "sid='".$db->escape_string($admin_session['sid'])."'");

		$db->update_query("adminsessions", array('lastactive' => TIME_NOW, 'ip' => $db->escape_string(get_ip())), "sid='".$db->escape_string($admin_session['sid'])."'");

	}

// Fetch administrator permissions

	}

// Fetch administrator permissions