Vergleich inc/tasks/versioncheck.php - 1.8.4 - 1.8.21

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 20Zeile 20

// Check for the latest version
require_once MYBB_ROOT.'inc/class_xml.php';


// Check for the latest version
require_once MYBB_ROOT.'inc/class_xml.php';

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

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


if(!$contents)
{


if(!$contents)
{

Zeile 28Zeile 28
		return false;
}


		return false;
}


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