Vergleich admin/modules/home/index.php - 1.8.8 - 1.8.21

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 53Zeile 53
	$page->output_header($lang->version_check);
$page->output_nav_tabs($sub_tabs, 'version_check');


	$page->output_header($lang->version_check);
$page->output_nav_tabs($sub_tabs, 'version_check');


	// We do this because there is some weird symbols that show up in the xml file for unknown reasons
$pos = strpos($contents, "<");
if($pos > 1)
{
$contents = substr($contents, $pos);
}

$pos = strpos(strrev($contents), ">");
if($pos > 1)
{
$contents = substr($contents, 0, (-1) * ($pos-1));
}

	$contents = trim($contents);













$parser = new XMLParser($contents);
$tree = $parser->get_tree();


$parser = new XMLParser($contents);
$tree = $parser->get_tree();

Zeile 77Zeile 66
		$version_warn = 1;
$updated_cache['latest_version'] = $latest_version;
$updated_cache['latest_version_code'] = $latest_code;

		$version_warn = 1;
$updated_cache['latest_version'] = $latest_version;
$updated_cache['latest_version_code'] = $latest_code;

	}
else

	}
else

	{
$latest_version = "<span style=\"color: green;\">".$latest_version."</span>";
}

	{
$latest_version = "<span style=\"color: green;\">".$latest_version."</span>";
}

Zeile 99Zeile 88
	$table->construct_cell("<strong>".$mybb->version."</strong> (".$mybb->version_code.")");
$table->construct_cell($latest_version);
$table->construct_row();

	$table->construct_cell("<strong>".$mybb->version."</strong> (".$mybb->version_code.")");
$table->construct_cell($latest_version);
$table->construct_row();





	$table->output($lang->version_check);

	$table->output($lang->version_check);





	require_once MYBB_ROOT."inc/class_feedparser.php";

	require_once MYBB_ROOT."inc/class_feedparser.php";





	$feed_parser = new FeedParser();
$feed_parser->parse_feed("http://feeds.feedburner.com/MyBBDevelopmentBlog");

	$feed_parser = new FeedParser();
$feed_parser->parse_feed("http://feeds.feedburner.com/MyBBDevelopmentBlog");





	$updated_cache['news'] = array();

	$updated_cache['news'] = array();


require_once MYBB_ROOT . '/inc/class_parser.php';
$post_parser = new postParser();

 

if($feed_parser->error == '')
{


if($feed_parser->error == '')
{

 
		require_once MYBB_ROOT . '/inc/class_parser.php';
$post_parser = new postParser();


		foreach($feed_parser->items as $item)
{

		foreach($feed_parser->items as $item)
{

 
			$description = $item['description'];
$content = $item['content'];

$description = $post_parser->parse_message($description, array(
'allow_html' => true,
)
);

$content = $post_parser->parse_message($content, array(
'allow_html' => true,
)
);

$description = preg_replace('#<img(.*)/>#', '', $description);
$content = preg_replace('#<img(.*)/>#', '', $content);


			if(!isset($updated_cache['news'][2]))
{

			if(!isset($updated_cache['news'][2]))
{

				$description = $item['description'];
$content = $item['content'];

$description = $post_parser->parse_message($description, array(
'allow_html' => true,
)
);

$content = $post_parser->parse_message($content, array(
'allow_html' => true,
)
);

$description = preg_replace('#<img(.*)/>#', '', $description);
$content = preg_replace('#<img(.*)/>#', '', $content);


 
				$updated_cache['news'][] = array(
'title' => htmlspecialchars_uni($item['title']),
'description' => $description,

				$updated_cache['news'][] = array(
'title' => htmlspecialchars_uni($item['title']),
'description' => $description,

Zeile 151Zeile 140

$link = htmlspecialchars_uni($item['link']);



$link = htmlspecialchars_uni($item['link']);


			$table->construct_cell("<span style=\"font-size: 16px;\"><strong>".htmlspecialchars_uni($item['title'])."</strong></span><br /><br />{$content}<strong><span style=\"float: right;\">{$stamp}</span><br /><br /><a href=\"{$link}\" target=\"_blank\">&raquo; {$lang->read_more}</a></strong>");

			$table->construct_cell("<span style=\"font-size: 16px;\"><strong>".htmlspecialchars_uni($item['title'])."</strong></span><br /><br />{$content}<strong><span style=\"float: right;\">{$stamp}</span><br /><br /><a href=\"{$link}\" target=\"_blank\" rel=\"noopener\">&raquo; {$lang->read_more}</a></strong>");

			$table->construct_row();
}
}

			$table->construct_row();
}
}

Zeile 295Zeile 284
	// 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=\"https://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/download\" target=\"_blank\" rel=\"noopener\">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 329Zeile 318
	$table->construct_cell("<strong>{$lang->sql_engine}</strong>", array('width' => '25%'));
$table->construct_cell($db->short_title." ".$db->get_version(), array('width' => '25%'));
$table->construct_cell("<strong>{$lang->users}</strong>", array('width' => '25%'));

	$table->construct_cell("<strong>{$lang->sql_engine}</strong>", array('width' => '25%'));
$table->construct_cell($db->short_title." ".$db->get_version(), array('width' => '25%'));
$table->construct_cell("<strong>{$lang->users}</strong>", array('width' => '25%'));

	$table->construct_cell("<a href=\"index.php?module=user-users\"><strong>{$users}</strong> {$lang->registered_users}</a><br /><strong>{$activeusers}</strong> {$lang->active_users}<br /><strong>{$newusers}</strong> {$lang->registrations_today}<br /><a href=\"index.php?module=user-users&amp;action=search&amp;results=1&amp;conditions=".urlencode(my_serialize(array('usergroup' => '5')))."&amp;from=home\"><strong>{$awaitingusers}</strong> {$lang->awaiting_activation}</a>", array('width' => '25%'));

	$table->construct_cell("<a href=\"index.php?module=user-users\"><strong>{$users}</strong> {$lang->registered_users}</a><br /><strong>{$activeusers}</strong> {$lang->active_users}<br /><strong>{$newusers}</strong> {$lang->registrations_today}<br /><a href=\"index.php?module=user-awaiting_activation\"><strong>{$awaitingusers}</strong> {$lang->awaiting_activation}</a>", array('width' => '25%'));

	$table->construct_row();

$table->construct_cell("<strong>{$lang->server_load}</strong>", array('width' => '25%'));

	$table->construct_row();

$table->construct_cell("<strong>{$lang->server_load}</strong>", array('width' => '25%'));

Zeile 368Zeile 357
		foreach($update_check['news'] as $news_item)
{
$posted = my_date('relative', $news_item['dateline']);

		foreach($update_check['news'] as $news_item)
{
$posted = my_date('relative', $news_item['dateline']);

			$table->construct_cell("<strong><a href=\"{$news_item['link']}\" target=\"_blank\">{$news_item['title']}</a></strong><br /><span class=\"smalltext\">{$posted}</span>");

			$table->construct_cell("<strong><a href=\"{$news_item['link']}\" target=\"_blank\" rel=\"noopener\">{$news_item['title']}</a></strong><br /><span class=\"smalltext\">{$posted}</span>");

			$table->construct_row();

$table->construct_cell($news_item['description']);

			$table->construct_row();

$table->construct_cell($news_item['description']);