Vergleich admin/modules/home/version_check.php - 1.6.10 - 1.6.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 75Zeile 75
	$parser = new XMLParser($contents);
$tree = $parser->get_tree();


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


	$latest_code = $tree['mybb']['version_code']['value'];
$latest_version = "<strong>".$tree['mybb']['latest_version']['value']."</strong> (".$latest_code.")";








	if(!is_array($tree) || !isset($tree['mybb']))
{
$page->output_inline_error($lang->error_communication);
$page->output_footer();
exit;
}

$latest_code = (int)$tree['mybb']['version_code']['value'];
$latest_version = "<strong>".htmlspecialchars_uni($tree['mybb']['latest_version']['value'])."</strong> (".$latest_code.")";

	if($latest_code > $mybb->version_code)
{
$latest_version = "<span style=\"color: #C00;\">".$latest_version."</span>";
$version_warn = 1;
$updated_cache['latest_version'] = $latest_version;
$updated_cache['latest_version_code'] = $latest_code;

	if($latest_code > $mybb->version_code)
{
$latest_version = "<span style=\"color: #C00;\">".$latest_version."</span>";
$version_warn = 1;
$updated_cache['latest_version'] = $latest_version;
$updated_cache['latest_version_code'] = $latest_code;

	}
else

	}
else

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

$cache->update("update_check", $updated_cache);

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

$cache->update("update_check", $updated_cache);





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

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

Zeile 114Zeile 121
	{
$page->output_success("<p><em>{$lang->success_up_to_date}</em></p>");
}

	{
$page->output_success("<p><em>{$lang->success_up_to_date}</em></p>");
}

	





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


	if($feed_parser->error == '')
{
foreach($feed_parser->items as $item)
{
if($item['date_timestamp'])

	if($feed_parser->error == '')
{
foreach($feed_parser->items as $item)
{
if($item['date_timestamp'])

			{

			{

				$stamp = my_date($mybb->settings['dateformat'], $item['date_timestamp']).", ".my_date($mybb->settings['timeformat'], $item['date_timestamp']);
}
else

				$stamp = my_date($mybb->settings['dateformat'], $item['date_timestamp']).", ".my_date($mybb->settings['timeformat'], $item['date_timestamp']);
}
else

Zeile 135Zeile 145
			{
$content = $item['description'];
}

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

 

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

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


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

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