Zeile 69 | Zeile 69 |
---|
$parser = new XMLParser($contents); $tree = $parser->get_tree();
|
$parser = new XMLParser($contents); $tree = $parser->get_tree();
|
$latest_code = $tree['mybb']['version_code']['value']; $latest_version = "<strong>".$tree['mybb']['latest_version']['value']."</strong> (".$latest_code.")";
| $latest_code = (int)$tree['mybb']['version_code']['value']; $latest_version = "<strong>".htmlspecialchars_uni($tree['mybb']['latest_version']['value'])."</strong> (".$latest_code.")";
|
if($latest_code > $mybb->version_code) { $latest_version = "<span style=\"color: #C00;\">".$latest_version."</span>";
| if($latest_code > $mybb->version_code) { $latest_version = "<span style=\"color: #C00;\">".$latest_version."</span>";
|
Zeile 108 | Zeile 108 |
---|
$feed_parser->parse_feed("http://feeds.feedburner.com/MyBBDevelopmentBlog");
$updated_cache['news'] = array();
|
$feed_parser->parse_feed("http://feeds.feedburner.com/MyBBDevelopmentBlog");
$updated_cache['news'] = array();
|
| require_once MYBB_ROOT . '/inc/class_parser.php'; $post_parser = new postParser();
|
if($feed_parser->error == '') {
| if($feed_parser->error == '') {
|
Zeile 115 | Zeile 118 |
---|
{ if(!isset($updated_cache['news'][2])) {
|
{ if(!isset($updated_cache['news'][2])) {
|
| $description = $item['description']; $content = $item['content'];
$description = $post_parser->parse_message($description, array( 'allow_html' => true, ) );
$content = $post_parser->parse_message($content, array( 'allow_html' => true, ) );
$description = preg_replace('#<img(.*)/>#', '', $description); $content = preg_replace('#<img(.*)/>#', '', $content);
|
$updated_cache['news'][] = array(
|
$updated_cache['news'][] = array(
|
'title' => $item['title'], 'description' => preg_replace('#<img(.*)/>#', '', $item['description']), 'link' => $item['link'], 'author' => $item['author'], 'dateline' => $item['date_timestamp']
| 'title' => htmlspecialchars_uni($item['title']), 'description' => $description, 'link' => htmlspecialchars_uni($item['link']), 'author' => htmlspecialchars_uni($item['author']), 'dateline' => $item['date_timestamp'],
|
);
|
);
|
}
| }
|
$stamp = ''; if($item['date_timestamp']) { $stamp = my_date('relative', $item['date_timestamp']); }
|
$stamp = ''; if($item['date_timestamp']) { $stamp = my_date('relative', $item['date_timestamp']); }
|
$content = $item['description']; if($item['content']) { $content = $item['content']; }
| $link = htmlspecialchars_uni($item['link']);
|
|
|
$table->construct_cell("<span style=\"font-size: 16px;\"><strong>".$item['title']."</strong></span><br /><br />{$content}<strong><span style=\"float: right;\">{$stamp}</span><br /><br /><a href=\"{$item['link']}\" target=\"_blank\">» {$lang->read_more}</a></strong>");
| $table->construct_cell("<span style=\"font-size: 16px;\"><strong>".htmlspecialchars_uni($item['title'])."</strong></span><br /><br />{$content}<strong><span style=\"float: right;\">{$stamp}</span><br /><br /><a href=\"{$link}\" target=\"_blank\">» {$lang->read_more}</a></strong>");
|
$table->construct_row(); } }
| $table->construct_row(); } }
|
Zeile 303 | Zeile 318 |
---|
$table->construct_cell("<strong>{$lang->sql_engine}</strong>", array('width' => '25%')); $table->construct_cell($db->short_title." ".$db->get_version(), array('width' => '25%')); $table->construct_cell("<strong>{$lang->users}</strong>", array('width' => '25%'));
|
$table->construct_cell("<strong>{$lang->sql_engine}</strong>", array('width' => '25%')); $table->construct_cell($db->short_title." ".$db->get_version(), array('width' => '25%')); $table->construct_cell("<strong>{$lang->users}</strong>", array('width' => '25%'));
|
$table->construct_cell("<a href=\"index.php?module=user-users\"><strong>{$users}</strong> {$lang->registered_users}</a><br /><strong>{$activeusers}</strong> {$lang->active_users}<br /><strong>{$newusers}</strong> {$lang->registrations_today}<br /><a href=\"index.php?module=user-users&action=search&results=1&conditions=".urlencode(serialize(array('usergroup' => '5')))."&from=home\"><strong>{$awaitingusers}</strong> {$lang->awaiting_activation}</a>", array('width' => '25%'));
| $table->construct_cell("<a href=\"index.php?module=user-users\"><strong>{$users}</strong> {$lang->registered_users}</a><br /><strong>{$activeusers}</strong> {$lang->active_users}<br /><strong>{$newusers}</strong> {$lang->registrations_today}<br /><a href=\"index.php?module=user-users&action=search&results=1&conditions=".urlencode(my_serialize(array('usergroup' => '5')))."&from=home\"><strong>{$awaitingusers}</strong> {$lang->awaiting_activation}</a>", array('width' => '25%'));
|
$table->construct_row();
$table->construct_cell("<strong>{$lang->server_load}</strong>", array('width' => '25%'));
| $table->construct_row();
$table->construct_cell("<strong>{$lang->server_load}</strong>", array('width' => '25%'));
|
Zeile 345 | Zeile 360 |
---|
$table->construct_cell("<strong><a href=\"{$news_item['link']}\" target=\"_blank\">{$news_item['title']}</a></strong><br /><span class=\"smalltext\">{$posted}</span>"); $table->construct_row();
|
$table->construct_cell("<strong><a href=\"{$news_item['link']}\" target=\"_blank\">{$news_item['title']}</a></strong><br /><span class=\"smalltext\">{$posted}</span>"); $table->construct_row();
|
$table->construct_cell(htmlspecialchars_uni($news_item['description']));
| $table->construct_cell($news_item['description']);
|
$table->construct_row(); } }
| $table->construct_row(); } }
|