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

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 19Zeile 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 30Zeile 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'];

Zeile 66Zeile 65
			{
break;
}

			{
break;
}


$description = $item['description'];

$description = $post_parser->parse_message($description, array(
'allow_html' => true,
)
);

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

 

$updated_cache['news'][] = array(


$updated_cache['news'][] = array(

				'title' => htmlspecialchars_uni($item['title']),
'description' => $description,
'link' => htmlspecialchars_uni($item['link']),
'author' => htmlspecialchars_uni($item['author']),

				'title' => $item['title'],
'description' => $item['description'],
'link' => $item['link'],
'author' => $item['author'],

				'dateline' => $item['date_timestamp']
);
}

				'dateline' => $item['date_timestamp']
);
}