Vergleich inc/tasks/versioncheck.php - 1.8.3 - 1.8.20

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

Zeile 67Zeile 57

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


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





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

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

Zeile 83Zeile 73
					'allow_html' => true,
)
);

					'allow_html' => true,
)
);

 

$description = preg_replace('#<img(.*)/>#', '', $description);


$updated_cache['news'][] = array(
'title' => htmlspecialchars_uni($item['title']),


$updated_cache['news'][] = array(
'title' => htmlspecialchars_uni($item['title']),

				'description' => preg_replace('#<img(.*)/>#', '', $description),

				'description' => $description,

				'link' => htmlspecialchars_uni($item['link']),
'author' => htmlspecialchars_uni($item['author']),
'dateline' => $item['date_timestamp']

				'link' => htmlspecialchars_uni($item['link']),
'author' => htmlspecialchars_uni($item['author']),
'dateline' => $item['date_timestamp']