Zeile 39 | Zeile 39 |
---|
);
require_once MYBB_ROOT."inc/class_xml.php";
|
);
require_once MYBB_ROOT."inc/class_xml.php";
|
$contents = fetch_remote_file("http://www.mybb.com/version_check.php");
| $contents = fetch_remote_file("https://mybb.com/version_check.php");
|
if(!$contents) {
| if(!$contents) {
|
Zeile 264 | Zeile 264 |
---|
$query = $db->simple_select("reportedcontent", "COUNT(*) AS reported_posts", "type = 'post' OR type = ''"); $reported_posts = my_number_format($db->fetch_field($query, "reported_posts"));
|
$query = $db->simple_select("reportedcontent", "COUNT(*) AS reported_posts", "type = 'post' OR type = ''"); $reported_posts = my_number_format($db->fetch_field($query, "reported_posts"));
|
// Get the number of reported posts that haven't been marked as read yet $query = $db->simple_select("reportedcontent", "COUNT(*) AS new_reported_posts", "reportstatus='0' AND (type = 'post' OR type = '')"); $new_reported_posts = my_number_format($db->fetch_field($query, "new_reported_posts"));
| // If report medium is MCP... if($mybb->settings['reportmethod'] == "db") { // Get the number of reported posts that haven't been marked as read yet $query = $db->simple_select("reportedcontent", "COUNT(*) AS new_reported_posts", "reportstatus='0' AND (type = 'post' OR type = '')"); $new_reported_posts = my_number_format($db->fetch_field($query, "new_reported_posts")); }
|
// Get the number and total file size of attachments $query = $db->simple_select("attachments", "COUNT(*) AS numattachs, SUM(filesize) as spaceused", "visible='1' AND pid > '0'");
| // Get the number and total file size of attachments $query = $db->simple_select("attachments", "COUNT(*) AS numattachs, SUM(filesize) as spaceused", "visible='1' AND pid > '0'");
|
Zeile 277 | Zeile 281 |
---|
// Get the number of unapproved attachments $query = $db->simple_select("attachments", "COUNT(*) AS numattachs", "visible='0' AND pid > '0'"); $unapproved_attachs = my_number_format($db->fetch_field($query, "numattachs"));
|
// Get the number of unapproved attachments $query = $db->simple_select("attachments", "COUNT(*) AS numattachs", "visible='0' AND pid > '0'"); $unapproved_attachs = my_number_format($db->fetch_field($query, "numattachs"));
|
|
|
// Fetch the last time an update check was run $update_check = $cache->read("update_check");
// If last update check was greater than two weeks ago (14 days) show an alert if(isset($update_check['last_check']) && $update_check['last_check'] <= TIME_NOW-60*60*24*14)
|
// Fetch the last time an update check was run $update_check = $cache->read("update_check");
// If last update check was greater than two weeks ago (14 days) show an alert 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&action=version_check"); $page->output_error("<p>{$lang->last_update_check_two_weeks}</p>"); }
| $lang->last_update_check_two_weeks = $lang->sprintf($lang->last_update_check_two_weeks, "index.php?module=home&action=version_check"); $page->output_error("<p>{$lang->last_update_check_two_weeks}</p>"); }
|
Zeile 291 | Zeile 295 |
---|
// If the update check contains information about a newer version, show an alert if(isset($update_check['latest_version_code']) && $update_check['latest_version_code'] > $mybb->version_code) {
|
// If the update check contains information about a newer version, show an alert 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://www.mybb.com/downloads\" target=\"_blank\">MyBB {$update_check['latest_version']}</a>");
| $lang->new_version_available = $lang->sprintf($lang->new_version_available, "MyBB {$mybb->version}", "<a href=\"https://mybb.com/downloads\" target=\"_blank\">MyBB {$update_check['latest_version']}</a>");
|
$page->output_error("<p><em>{$lang->new_version_available}</em></p>"); }
| $page->output_error("<p><em>{$lang->new_version_available}</em></p>"); }
|
Zeile 312 | Zeile 316 |
---|
$table->construct_cell("<strong>{$lang->php_version}</strong>", array('width' => '25%')); $table->construct_cell(PHP_VERSION, array('width' => '25%')); $table->construct_cell("<strong>{$lang->posts}</strong>", array('width' => '25%'));
|
$table->construct_cell("<strong>{$lang->php_version}</strong>", array('width' => '25%')); $table->construct_cell(PHP_VERSION, array('width' => '25%')); $table->construct_cell("<strong>{$lang->posts}</strong>", array('width' => '25%'));
|
$table->construct_cell("<strong>{$posts}</strong> {$lang->posts}<br /><strong>{$newposts}</strong> {$lang->new_today}<br /><a href=\"index.php?module=forum-moderation_queue&type=posts\"><strong>{$unapproved_posts}</strong> {$lang->unapproved}</a><br /><strong>{$reported_posts}</strong> {$lang->reported_posts}<br /><strong>{$new_reported_posts}</strong> {$lang->unread_reports}", array('width' => '25%'));
| if($mybb->settings['reportmethod'] == "db") { $table->construct_cell("<strong>{$posts}</strong> {$lang->posts}<br /><strong>{$newposts}</strong> {$lang->new_today}<br /><a href=\"index.php?module=forum-moderation_queue&type=posts\"><strong>{$unapproved_posts}</strong> {$lang->unapproved}</a><br /><strong>{$reported_posts}</strong> {$lang->reported_posts}<br /><strong>{$new_reported_posts}</strong> {$lang->unread_reports}", array('width' => '25%')); } else { $table->construct_cell("<strong>{$posts}</strong> {$lang->posts}<br /><strong>{$newposts}</strong> {$lang->new_today}<br /><a href=\"index.php?module=forum-moderation_queue&type=posts\"><strong>{$unapproved_posts}</strong> {$lang->unapproved}</a><br /><strong>{$reported_posts}</strong> {$lang->reported_posts}", array('width' => '25%')); }
|
$table->construct_row();
$table->construct_cell("<strong>{$lang->sql_engine}</strong>", array('width' => '25%'));
| $table->construct_row();
$table->construct_cell("<strong>{$lang->sql_engine}</strong>", array('width' => '25%'));
|