Vergleich admin/index.php - 1.2.3 - 1.2.10

  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 2771 2007-02-11 16:42:08Z CraKteR $

 * $Id: index.php 3300 2007-09-06 02:19:06Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 49Zeile 49
		$serverload = $lang->unknown;
}
// Get the number of users

		$serverload = $lang->unknown;
}
// Get the number of users

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(*) AS numusers");

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(uid) AS numusers");

	$users = $db->fetch_array($query);

// Get the number of users awaiting validation

	$users = $db->fetch_array($query);

// Get the number of users awaiting validation

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(*) AS awaitingusers", "usergroup='5'");

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(uid) AS awaitingusers", "usergroup='5'");

	$awaitingusers = $db->fetch_array($query);

// Get the number of new users for today
$timecut = time() - 86400;

	$awaitingusers = $db->fetch_array($query);

// Get the number of new users for today
$timecut = time() - 86400;

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(*) AS newusers", "regdate>'$timecut'");

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(uid) AS newusers", "regdate>'$timecut'");

	$newusers = $db->fetch_array($query);

// Get the number of active users today

	$newusers = $db->fetch_array($query);

// Get the number of active users today

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(*) AS activeusers", "lastvisit>'$timecut'");

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(uid) AS activeusers", "lastvisit>'$timecut'");

	$activeusers = $db->fetch_array($query);

// Get the number of threads

	$activeusers = $db->fetch_array($query);

// Get the number of threads

	$query = $db->simple_select(TABLE_PREFIX."threads", "COUNT(*) AS numthreads", "visible='1' AND closed NOT LIKE 'moved|%'");

	$query = $db->simple_select(TABLE_PREFIX."forums", "SUM(threads) AS numthreads");

	$threads = $db->fetch_array($query);

// Get the number of unapproved threads

	$threads = $db->fetch_array($query);

// Get the number of unapproved threads

	$query = $db->simple_select(TABLE_PREFIX."threads", "COUNT(*) AS numthreads", "visible='0' AND closed NOT LIKE 'moved|%'");

	$query = $db->simple_select(TABLE_PREFIX."forums", "SUM(unapprovedthreads) AS numthreads");

	$unapproved_threads = $db->fetch_array($query);

// Get the number of new threads for today

	$unapproved_threads = $db->fetch_array($query);

// Get the number of new threads for today

	$query = $db->simple_select(TABLE_PREFIX."threads", "COUNT(*) AS newthreads", "dateline>'$timecut' AND visible='1' AND closed NOT LIKE 'moved|%'");

	$query = $db->simple_select(TABLE_PREFIX."threads", "COUNT(tid) AS newthreads", "dateline>'$timecut' AND visible='1' AND closed NOT LIKE 'moved|%'");

	$newthreads = $db->fetch_array($query);

// Get the number of posts

	$newthreads = $db->fetch_array($query);

// Get the number of posts

	$query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(*) AS numposts", "visible='1'");

	$query = $db->simple_select(TABLE_PREFIX."forums", "SUM(posts) AS numposts");

	$posts = $db->fetch_array($query);

// Get the number of unapproved posts

	$posts = $db->fetch_array($query);

// Get the number of unapproved posts

	$query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(*) AS numposts", "visible='0'");

	$query = $db->simple_select(TABLE_PREFIX."forums", "SUM(unapprovedposts) AS numposts");

	$unapproved_posts = $db->fetch_array($query);

// Get the number of new posts for today

	$unapproved_posts = $db->fetch_array($query);

// Get the number of new posts for today

	$query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(*) AS newposts", "dateline>'$timecut' AND visible='1'");

	$query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(pid) AS newposts", "dateline>'$timecut' AND visible='1'");

	$newposts = $db->fetch_array($query);

// Get the number and total file size of attachments

	$newposts = $db->fetch_array($query);

// Get the number and total file size of attachments

	$query = $db->simple_select(TABLE_PREFIX."attachments", "COUNT(*) AS numattachs, SUM(filesize) as spaceused", "visible='1' AND pid>0");

	$query = $db->simple_select(TABLE_PREFIX."attachments", "COUNT(aid) AS numattachs, SUM(filesize) as spaceused", "visible='1' AND pid>0");

	$attachs = $db->fetch_array($query);
$attachs['spaceused'] = get_friendly_size($attachs['spaceused']);

// Get the number of unapproved attachments

	$attachs = $db->fetch_array($query);
$attachs['spaceused'] = get_friendly_size($attachs['spaceused']);

// Get the number of unapproved attachments

	$query = $db->simple_select(TABLE_PREFIX."attachments", "COUNT(*) AS numattachs", "visible='0' AND pid>0");

	$query = $db->simple_select(TABLE_PREFIX."attachments", "COUNT(aid) AS numattachs", "visible='0' AND pid>0");

	$unapproved_attachs = $db->fetch_array($query);

// Fetch the last time an update check was run

	$unapproved_attachs = $db->fetch_array($query);

// Fetch the last time an update check was run

Zeile 111Zeile 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 180Zeile 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><br /><a href=\"http://www.mcdcpp.net/blog/\" target=\"_blank\">CraKteR</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 218Zeile 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 = fetch_remote_file("http://mybboard.net/version_check.php");

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

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

Zeile 234Zeile 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);

	}

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

Zeile 246Zeile 244

require_once MYBB_ROOT."inc/class_feedparser.php";
$feed_parser = new FeedParser();


require_once MYBB_ROOT."inc/class_feedparser.php";
$feed_parser = new FeedParser();

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

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


	cpheader();
starttable();
tableheader($lang->vercheck);

	cpheader();
starttable();
tableheader($lang->vercheck);

Zeile 463Zeile 460
		10 => array("title" => $lang->nav_db_backup, "url" => "dbtools.php?".SID."&amp;action=backup"),
20 => array("title" => $lang->nav_db_existing_backups, "url" => "dbtools.php?".SID."&amp;action=existing"),
30 => array("title" => $lang->nav_db_optimize, "url" => "dbtools.php?".SID."&amp;action=optimize"),

		10 => array("title" => $lang->nav_db_backup, "url" => "dbtools.php?".SID."&amp;action=backup"),
20 => array("title" => $lang->nav_db_existing_backups, "url" => "dbtools.php?".SID."&amp;action=existing"),
30 => array("title" => $lang->nav_db_optimize, "url" => "dbtools.php?".SID."&amp;action=optimize"),



		40 => array("title" => $lang->nav_db_convert_to_utf8, "url" => "dbtools.php?".SID."&amp;action=utf8_conversion"),

	)
);

	)
);





$plugins->run_hooks("admin_index_navigation_end");

foreach($menu as $menu_section)

$plugins->run_hooks("admin_index_navigation_end");

foreach($menu as $menu_section)

{

{

	foreach($menu_section['items'] as $item)
{
makenavoption($item['title'], $item['url']);

	foreach($menu_section['items'] as $item)
{
makenavoption($item['title'], $item['url']);

Zeile 497Zeile 494
		if(strpos($goto, '&') !== false)
{
$goto = preg_replace('#(&?|&amp;?|\??)adminsid=([a-zA-Z0-9]{1,32})(&?|&amp;?)#i', '\\1', $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);

		else
{
$goto = preg_replace('#\?adminsid=([a-zA-Z0-9]{1,32})#i', '', $goto);

Zeile 517Zeile 514
	{
$goto = 'index.php?'.SID.'&amp;action=home';
}

	{
$goto = 'index.php?'.SID.'&amp;action=home';
}

	echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";

	echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">";

	echo "<html ".($lang->settings['rtl'] ? "dir=\"rtl\" " : "")."lang=\"".($lang->settings['htmllang'])."\">\n";
echo "<head>\n";
echo "<title>$lang->mybb_admin</title>\n";
echo "</head>\n";
echo "<frameset rows=\"78, *\" frameborder=\"no\" border=\"0\" framespacing=\"0\">\n";

	echo "<html ".($lang->settings['rtl'] ? "dir=\"rtl\" " : "")."lang=\"".($lang->settings['htmllang'])."\">\n";
echo "<head>\n";
echo "<title>$lang->mybb_admin</title>\n";
echo "</head>\n";
echo "<frameset rows=\"78, *\" frameborder=\"no\" border=\"0\" framespacing=\"0\">\n";

	echo "<frame name=\"header\" noresize scrolling=\"no\" src=\"index.php?".SID."&amp;action=header\" />\n";

	echo "<frame name=\"header\" noresize=\"noresize\" scrolling=\"no\" src=\"index.php?".SID."&amp;action=header\" />\n";

	if($lang->settings['rtl'])
{
echo "<frameset cols=\"*,200\" frameborder=\"no\" border=\"0\" framespacing=\"0\">\n";

	if($lang->settings['rtl'])
{
echo "<frameset cols=\"*,200\" frameborder=\"no\" border=\"0\" framespacing=\"0\">\n";

		echo "<frame name=\"body\" noresize scrolling=\"auto\" src=\"".$goto."\" />\n";
echo "<frame name=\"nav\" noresize scrolling=\"auto\" src=\"index.php?".SID."&amp;action=navigation\" />\n";

		echo "<frame name=\"body\" noresize=\"noresize\" scrolling=\"auto\" src=\"".$goto."\" />\n";
echo "<frame name=\"nav\" noresize=\"noresize\" scrolling=\"auto\" src=\"index.php?".SID."&amp;action=navigation\" />\n";

	}
else
{
echo "<frameset cols=\"200, *\" frameborder=\"no\" border=\"0\" framespacing=\"0\">\n";

	}
else
{
echo "<frameset cols=\"200, *\" frameborder=\"no\" border=\"0\" framespacing=\"0\">\n";

		echo "<frame name=\"nav\" noresize scrolling=\"auto\" src=\"index.php?".SID."&amp;action=navigation\" />\n";
echo "<frame name=\"body\" noresize scrolling=\"auto\" src=\"".$goto."\" />\n";

		echo "<frame name=\"nav\" noresize=\"noresize\" scrolling=\"auto\" src=\"index.php?".SID."&amp;action=navigation\" />\n";
echo "<frame name=\"body\" noresize=\"noresize\" scrolling=\"auto\" src=\"".$goto."\" />\n";

	}
echo "</frameset>\n";
echo "</frameset>\n";

	}
echo "</frameset>\n";
echo "</frameset>\n";