Vergleich admin/modules/home/version_check.php - 1.4.0 - 1.4.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: version_check.php 3790 2008-04-23 22:50:33Z Tikitiki $

 * $Id: version_check.php 5154 2010-07-31 09:11:51Z RyanGordon $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 51Zeile 51
	);

require_once MYBB_ROOT."inc/class_xml.php";

	);

require_once MYBB_ROOT."inc/class_xml.php";

	$contents = fetch_remote_file("http://mybboard.net/version_check.php");

	$contents = fetch_remote_file("http://www.mybb.com/version_check.php");

	if(!$contents)
{
$page->output_inline_error($lang->error_communication);
$page->output_footer();
exit;

	if(!$contents)
{
$page->output_inline_error($lang->error_communication);
$page->output_footer();
exit;

 
	}

// 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));

	}

$parser = new XMLParser($contents);

	}

$parser = new XMLParser($contents);

Zeile 80Zeile 93

require_once MYBB_ROOT."inc/class_feedparser.php";
$feed_parser = new FeedParser();


require_once MYBB_ROOT."inc/class_feedparser.php";
$feed_parser = new FeedParser();

	$feed_parser->parse_feed("http://www.mybboard.net/latest_news.php");

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

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

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