"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/admin/modules/home/index.php" between
mybb_1819.zip and mybb_1820.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

index.php  (mybb_1819):index.php  (mybb_1820)
skipping to change at line 56 skipping to change at line 56
flash_message($lang->error_communication, 'error'); flash_message($lang->error_communication, 'error');
admin_redirect('index.php'); admin_redirect('index.php');
} }
$plugins->run_hooks("admin_home_version_check"); $plugins->run_hooks("admin_home_version_check");
$page->add_breadcrumb_item($lang->version_check, "index.php?module=home-v ersion_check"); $page->add_breadcrumb_item($lang->version_check, "index.php?module=home-v ersion_check");
$page->output_header($lang->version_check); $page->output_header($lang->version_check);
$page->output_nav_tabs($sub_tabs, 'version_check'); $page->output_nav_tabs($sub_tabs, 'version_check');
// We do this because there is some weird symbols that show up in the xml $contents = trim($contents);
file for unknown reasons
$pos = strpos($contents, "<");
if($pos > 1)
{
$contents = substr($contents, $pos);
}
$pos = strpos(strrev($contents), ">");
if($pos > 1)
{
$contents = substr($contents, 0, (-1) * ($pos-1));
}
$parser = new XMLParser($contents); $parser = new XMLParser($contents);
$tree = $parser->get_tree(); $tree = $parser->get_tree();
$latest_code = (int)$tree['mybb']['version_code']['value']; $latest_code = (int)$tree['mybb']['version_code']['value'];
$latest_version = "<strong>".htmlspecialchars_uni($tree['mybb']['latest_v ersion']['value'])."</strong> (".$latest_code.")"; $latest_version = "<strong>".htmlspecialchars_uni($tree['mybb']['latest_v ersion']['value'])."</strong> (".$latest_code.")";
if($latest_code > $mybb->version_code) if($latest_code > $mybb->version_code)
{ {
$latest_version = "<span style=\"color: #C00;\">".$latest_version ."</span>"; $latest_version = "<span style=\"color: #C00;\">".$latest_version ."</span>";
$version_warn = 1; $version_warn = 1;
skipping to change at line 112 skipping to change at line 101
$table->output($lang->version_check); $table->output($lang->version_check);
require_once MYBB_ROOT."inc/class_feedparser.php"; require_once MYBB_ROOT."inc/class_feedparser.php";
$feed_parser = new FeedParser(); $feed_parser = new FeedParser();
$feed_parser->parse_feed("http://feeds.feedburner.com/MyBBDevelopmentBlog "); $feed_parser->parse_feed("http://feeds.feedburner.com/MyBBDevelopmentBlog ");
$updated_cache['news'] = array(); $updated_cache['news'] = array();
require_once MYBB_ROOT . '/inc/class_parser.php';
$post_parser = new postParser();
if($feed_parser->error == '') if($feed_parser->error == '')
{ {
require_once MYBB_ROOT . '/inc/class_parser.php';
$post_parser = new postParser();
foreach($feed_parser->items as $item) foreach($feed_parser->items as $item)
{ {
if(!isset($updated_cache['news'][2])) $description = $item['description'];
{ $content = $item['content'];
$description = $item['description'];
$content = $item['content'];
$description = $post_parser->parse_message($descr $description = $post_parser->parse_message($description,
iption, array( array(
'allow_html' => true, 'allow_html' => true,
) )
); );
$content = $post_parser->parse_message($content, array(
'allow_html' => true,
)
);
$content = $post_parser->parse_message($content, $description = preg_replace('#<img(.*)/>#', '', $descript
array( ion);
'allow_html' => true, $content = preg_replace('#<img(.*)/>#', '', $content);
)
);
$description = preg_replace('#<img(.*)/>#', '', $
description);
$content = preg_replace('#<img(.*)/>#', '', $cont
ent);
if(!isset($updated_cache['news'][2]))
{
$updated_cache['news'][] = array( $updated_cache['news'][] = array(
'title' => htmlspecialchars_uni($item['ti tle']), 'title' => htmlspecialchars_uni($item['ti tle']),
'description' => $description, 'description' => $description,
'link' => htmlspecialchars_uni($item['lin k']), 'link' => htmlspecialchars_uni($item['lin k']),
'author' => htmlspecialchars_uni($item['a uthor']), 'author' => htmlspecialchars_uni($item['a uthor']),
'dateline' => $item['date_timestamp'], 'dateline' => $item['date_timestamp'],
); );
} }
$stamp = ''; $stamp = '';
 End of changes. 7 change blocks. 
35 lines changed or deleted 21 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)