if (empty($news)) {
die('
- There are no news, sorry! Either this system is missconfigured,
+ There are no news, sorry! Either this system is missconfigured,
you are trying something nasty, or there are really no news.
-
+
Ask the webmaster to make shure, the access permissions in the
news_admin application are set in a way website visitors can access news.
');
}
$formats = array(
- 1 => 'rss091',
- 2 => 'rss1',
+ 1 => 'rss091',
+ 2 => 'rss1',
3 => 'rss2'
);
-
+
$itemsyntaxs = array(
0 => '?item=',
1 => '&item=',
2 => '?news%5Bitem%5D=',
3 => '&news%5Bitem%5D='
);
-
+
$feedConf = $export_obj->readconfig($cat_id);
-
+
$format = $reqFormat ? $reqFormat : (
$formats[$feedConf['type']] ? $formats[$feedConf['type']] : (
'rss2' ));
- $feedConf['title'] = $feedConf['title'] ? $feedConf['title'] : (
+ $feedConf['title'] = htmlspecialchars($feedConf['title'] ? $feedConf['title'] : (
$sitemgr_info['site_name'] ? $sitemgr_info['site_name'] : (
$GLOBALS['egw_info']['server']['site_title'] ? $GLOBALS['egw_info']['server']['site_title'] :
- lang('News')));
-
- $feedConf['link'] = $feedConf['link'] ? $feedConf['link'] :
+ lang('News'))));
+
+ $feedConf['link'] = htmlspecialchars($feedConf['link'] ? $feedConf['link'] :
( $GLOBALS['sitemgr_info']['site_url'] ? ( stripos($GLOBALS['sitemgr_info']['site_url'],'http') !== false ? $GLOBALS['sitemgr_info']['site_url'] : (
( stripos($_SERVER['SERVER_PROTOCOL'],'https') !== false ? 'https' : 'http'). '://'. $_SERVER['HTTP_HOST']. $GLOBALS['sitemgr_info']['site_url'] )) :
- '' /* add link to news_admin here... maybe we could add an item support in export.php? */ );
-
+ '' /* add link to news_admin here... maybe we could add an item support in export.php? */ ));
+
if ( !$feedConf['description'] ) {
if ( $cat_id > 0 ) {
$cat = $cats_obj->return_single($cat_id);
@@ -111,28 +111,28 @@
$tpl->set_var('encoding', $GLOBALS['egw']->translation->charset());
$tpl->set_var($feedConf);
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference _______________________________________________
eGroupWare-cvs mailing list
eGroupWare-cvs@... https://lists.sourceforge.net/lists/listinfo/egroupware-cvs