Vergleich inc/tasks/versioncheck.php - 1.8.11 - 1.8.22

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
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 62Zeile 52

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


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





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

require_once MYBB_ROOT . '/inc/class_parser.php';

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

require_once MYBB_ROOT . '/inc/class_parser.php';

Zeile 76Zeile 66
			{
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']
);
}