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

  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: version_check.php 5093 2010-07-17 21:12:40Z RyanGordon $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

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>";
}


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


Zeile 98Zeile 106
	$table = new Table;
$table->construct_header($lang->your_version);
$table->construct_header($lang->latest_version);

	$table = new Table;
$table->construct_header($lang->your_version);
$table->construct_header($lang->latest_version);

	

	

	$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();

Zeile 113Zeile 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 134Zeile 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();
}