Zeile 19 | Zeile 19 |
---|
);
// Check for the latest version
|
);
// Check for the latest version
|
require_once MYBB_ROOT.'inc/class_xml.php';
| |
$contents = fetch_remote_file("https://mybb.com/version_check.php");
if(!$contents)
| $contents = fetch_remote_file("https://mybb.com/version_check.php");
if(!$contents)
|
Zeile 30 | Zeile 29 |
---|
$contents = trim($contents);
|
$contents = trim($contents);
|
$parser = new XMLParser($contents);
| $parser = create_xml_parser($contents);
|
$tree = $parser->get_tree();
$latest_code = (int)$tree['mybb']['version_code']['value'];
| $tree = $parser->get_tree();
$latest_code = (int)$tree['mybb']['version_code']['value'];
|