Vergleich admin/index.php - 1.2.0 - 1.2.7

  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: index.php 2171 2006-08-30 14:46:23Z chris $

 * $Id: index.php 2932 2007-03-10 05:48:55Z chris $

 */

define("IN_MYBB", 1);


 */

define("IN_MYBB", 1);


require_once "./global.php";;

require_once "./global.php";


// Load language packs for this section


// Load language packs for this section

global $lang;

 
$lang->load("index");

$plugins->run_hooks("admin_index_start");

$lang->load("index");

$plugins->run_hooks("admin_index_start");

Zeile 112Zeile 111
	// If the update check contains information about a newer version, show an alert
if($update_check['latest_version_code'] > $mybb->version_code)
{

	// If the update check contains information about a newer version, show an alert
if($update_check['latest_version_code'] > $mybb->version_code)
{

		$lang->new_version_available = sprintf($lang->new_version_available, "MyBB {$mybb->version}", "<a href=\"http://www.mybboard.com/?fwlink=release_{$update_check['latest_version_code']}\" target=\"_new\">MyBB {$update_check['latest_version']}</a>");

		$lang->new_version_available = sprintf($lang->new_version_available, "MyBB {$mybb->version}", "<a href=\"http://www.mybboard.net/?fwlink=release_{$update_check['latest_version_code']}\" target=\"_new\">MyBB {$update_check['latest_version']}</a>");

		makewarning($lang->new_version_available);
}


		makewarning($lang->new_version_available);
}


Zeile 181Zeile 180
	tableheader($lang->mybb_credits);
tablesubheader($lang->contributed);
makelabelcode("<b>$lang->product_managers</b>", "<a href=\"http://www.surfionline.com\" target=\"_blank\">Chris Boulton</a>");

	tableheader($lang->mybb_credits);
tablesubheader($lang->contributed);
makelabelcode("<b>$lang->product_managers</b>", "<a href=\"http://www.surfionline.com\" target=\"_blank\">Chris Boulton</a>");

	makelabelcode("<b>$lang->developers</b>", "<a href=\"http://www.surfionline.com/\" target=\"_blank\">Chris Boulton</a><br /><a href=\"http://mods.mybboard.com/\" target=\"_blank\">Musicalmidget</a><br /><a href=\"http://www.dennistt.net/\" target=\"_blank\">DennisTT</a><br /><a href=\"http://www.peterakkies.com\" target=\"_blank\">Peter</a><br /><a href=\"http://www.tiki.rct3x.net\" target=\"_blank\">Tikitiki</a><br /><a href=\"http://www.decswxaqz.co.uk/\" target=\"_blank\">decswxaqz</a>");

	makelabelcode("<b>$lang->developers</b>", "<a href=\"http://www.surfionline.com/\" target=\"_blank\">Chris Boulton</a><br /><a href=\"http://mods.mybboard.net/\" target=\"_blank\">Musicalmidget</a><br /><a href=\"http://www.dennistt.net/\" target=\"_blank\">DennisTT</a><br /><a href=\"http://www.peterakkies.com\" target=\"_blank\">Peter</a><br /><a href=\"http://www.tiki.rct3x.net\" target=\"_blank\">Tikitiki</a><br /><a href=\"http://www.decswxaqz.co.uk/\" target=\"_blank\">decswxaqz</a><br /><a href=\"http://www.mcdcpp.net/blog/\" target=\"_blank\">CraKteR</a>");

	makelabelcode("<b>$lang->graphics_and_style</b>", "<a href=\"http://www.surfionline.com\" target=\"_blank\">Chris Boulton</a><br /><a href=\"http://www.templatesforall.com\" target=\"_blank\">Scott Hough</a>");
endtable();


	makelabelcode("<b>$lang->graphics_and_style</b>", "<a href=\"http://www.surfionline.com\" target=\"_blank\">Chris Boulton</a><br /><a href=\"http://www.templatesforall.com\" target=\"_blank\">Scott Hough</a>");
endtable();


Zeile 219Zeile 218
	);

require_once MYBB_ROOT."inc/class_xml.php";

	);

require_once MYBB_ROOT."inc/class_xml.php";

	$contents = @implode("", @file("http://mybboard.com/version_check.php"));

	$contents = @implode("", @file("http://mybboard.net/version_check.php"));

	if(!$contents)
{
cperror($lang->vercheck_error);

	if(!$contents)
{
cperror($lang->vercheck_error);

Zeile 235Zeile 234
	{
$latest_version = "<span style=\"color: red\">".$latest_version."</font>";
$version_warn = 1;

	{
$latest_version = "<span style=\"color: red\">".$latest_version."</font>";
$version_warn = 1;

		$updated_cache = array(
"latest_version" => $latest_version,
"latest_version_code" => $latest_code
);

		$updated_cache['latest_version'] = $latest_version;
$updated_cache['latest_version_code'] = $latest_code;



	}

$cache->update("update_check", $updated_cache);

$plugins->run_hooks("admin_index_vercheck");


	}

$cache->update("update_check", $updated_cache);

$plugins->run_hooks("admin_index_vercheck");


	require_once MYBB_ROOT."/inc/class_feedparser.php";

	require_once MYBB_ROOT."inc/class_feedparser.php";

	$feed_parser = new FeedParser();

	$feed_parser = new FeedParser();

	$feed_parser->parse_feed("http://www.mybboard.com/latest_news.php");

	$feed_parser->parse_feed("http://www.mybboard.net/latest_news.php");

	echo $feed_parser->error;
cpheader();
starttable();

	echo $feed_parser->error;
cpheader();
starttable();

Zeile 307Zeile 304
echo "<html ".($lang->settings['rtl'] ? "dir=\"rtl\" " : "")."lang=\"".($lang->settings['htmllang'])."\">\n";
echo "<head>\n";
echo "<title>$lang->mybb_admin</title>\n";

echo "<html ".($lang->settings['rtl'] ? "dir=\"rtl\" " : "")."lang=\"".($lang->settings['htmllang'])."\">\n";
echo "<head>\n";
echo "<title>$lang->mybb_admin</title>\n";

 
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset={$lang->settings['charset']}\" />\n";

?>
<base target="body" />
<link type="text/css" rel="stylesheet" href="<?php echo $style; ?>" />

?>
<base target="body" />
<link type="text/css" rel="stylesheet" href="<?php echo $style; ?>" />

Zeile 493Zeile 491
	if(!empty($mybb->input['goto']))
{
// Strip session ID from goto

	if(!empty($mybb->input['goto']))
{
// Strip session ID from goto

		$goto = preg_replace("#adminsid=[a-zA-Z0-9]{32}#i", "", $mybb->input['goto']);









		$goto = $mybb->input['goto'];
if(strpos($goto, '&') !== false)
{
$goto = preg_replace('#(&?|&amp;?|\??)adminsid=([a-zA-Z0-9]{1,32})(&?|&amp;?)#i', '\\1', $goto);
}
else
{
$goto = preg_replace('#\?adminsid=([a-zA-Z0-9]{1,32})#i', '', $goto);
}

		$parsed_url = parse_url($goto);
$goto = htmlspecialchars_uni($goto);
if(!$parsed_url['query'])

		$parsed_url = parse_url($goto);
$goto = htmlspecialchars_uni($goto);
if(!$parsed_url['query'])