Vergleich admin/modules/home/index.php - 1.6.0 - 1.6.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: index.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 51Zeile 51
	$stats = $cache->read("stats");

$serverload = get_server_load();

	$stats = $cache->read("stats");

$serverload = get_server_load();

	if(!$serverload)
{
$serverload = $lang->unknown;
}

	




	// Get the number of users
$query = $db->simple_select("users", "COUNT(uid) AS numusers");
$users = my_number_format($db->fetch_field($query, "numusers"));

	// Get the number of users
$query = $db->simple_select("users", "COUNT(uid) AS numusers");
$users = my_number_format($db->fetch_field($query, "numusers"));

Zeile 110Zeile 107
	$update_check = $cache->read("update_check");

// If last update check was greater than two weeks ago (14 days) show an alert

	$update_check = $cache->read("update_check");

// If last update check was greater than two weeks ago (14 days) show an alert

	if($update_check['last_check'] <= TIME_NOW-60*60*24*14)

	if(isset($update_check['last_check']) && $update_check['last_check'] <= TIME_NOW-60*60*24*14)

	{
$lang->last_update_check_two_weeks = $lang->sprintf($lang->last_update_check_two_weeks, "index.php?module=home-version_check");
$page->output_error("<p>{$lang->last_update_check_two_weeks}</p>");
}

// If the update check contains information about a newer version, show an alert

	{
$lang->last_update_check_two_weeks = $lang->sprintf($lang->last_update_check_two_weeks, "index.php?module=home-version_check");
$page->output_error("<p>{$lang->last_update_check_two_weeks}</p>");
}

// If the update check contains information about a newer version, show an alert

	if($update_check['latest_version_code'] > $mybb->version_code)

	if(isset($update_check['latest_version_code']) && $update_check['latest_version_code'] > $mybb->version_code)

	{
$lang->new_version_available = $lang->sprintf($lang->new_version_available, "MyBB {$mybb->version}", "<a href=\"http://mybb.com/downloads\" target=\"_blank\">MyBB {$update_check['latest_version']}</a>");
$page->output_error("<p><em>{$lang->new_version_available}</em></p>");

	{
$lang->new_version_available = $lang->sprintf($lang->new_version_available, "MyBB {$mybb->version}", "<a href=\"http://mybb.com/downloads\" target=\"_blank\">MyBB {$update_check['latest_version']}</a>");
$page->output_error("<p><em>{$lang->new_version_available}</em></p>");