Vergleich admin/index.php - 1.2.7 - 1.2.9

  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 3170 2007-06-29 03:15:31Z 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);