Vergleich admin/index.php - 1.2.7 - 1.2.11

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

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

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

 * $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 218Zeile 218
	);

require_once MYBB_ROOT."inc/class_xml.php";

	);

require_once MYBB_ROOT."inc/class_xml.php";

	$contents = @implode("", @file("http://mybboard.net/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 245Zeile 245
	require_once MYBB_ROOT."inc/class_feedparser.php";
$feed_parser = new FeedParser();
$feed_parser->parse_feed("http://www.mybboard.net/latest_news.php");

	require_once MYBB_ROOT."inc/class_feedparser.php";
$feed_parser = new FeedParser();
$feed_parser->parse_feed("http://www.mybboard.net/latest_news.php");

	echo $feed_parser->error;

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

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

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

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



		40 => array("title" => $lang->nav_db_convert_to_utf8, "url" => "dbtools.php?".SID."&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 495Zeile 494
		if(strpos($goto, '&') !== false)
{
$goto = preg_replace('#(&?|&?|\??)adminsid=([a-zA-Z0-9]{1,32})(&?|&?)#i', '\\1', $goto);

		if(strpos($goto, '&') !== false)
{
$goto = preg_replace('#(&?|&?|\??)adminsid=([a-zA-Z0-9]{1,32})(&?|&?)#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 515Zeile 514
	{
$goto = 'index.php?'.SID.'&action=home';
}

	{
$goto = 'index.php?'.SID.'&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";