[ PHPXref.com ] [ Generated: Sun Jul 20 17:08:59 2008 ] [ CuteNews 1.4.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> rss.php (source)

   1  <?PHP
   2  include ('./data/rss_config.php');
   3  
   4  if(!isset($rss_news_include_url) or !$rss_news_include_url or $rss_news_include_url == ''){
   5  
   6      die("The RSS is not configured.<br>Please do this from: <strong>CuteNews > Options > Implementation Wizards > RSS</strong>");
   7  
   8  }
   9  
  10  header("Content-type: text/xml");
  11  
  12  echo"<?xml version=\"1.0\" encoding=\"$rss_encoding\" ?>
  13  <?xml-stylesheet type=\"text/css\" href=\"skins/rss_style.css\" ?>
  14  <rss version=\"2.0\" >
  15   <channel>
  16     <title>$rss_title</title>
  17     <link>$rss_news_include_url</link>
  18     <language>$rss_language</language>
  19     <description></description>
  20  <!-- <docs>This is an RSS 2.0 file intended to be viewed in a newsreader or syndicated to another site. For more information on RSS check : http://www.feedburner.com/fb/a/aboutrss</docs> -->
  21     <generator>CuteNews</generator>
  22  ";
  23  
  24  if(!$_GET[number] or $_GET[number] == ''){ $number = 10;}else{ $number = $_GET[number];}
  25  if(!$_GET[only_active] or $_GET[only_active] == ''){ $only_active = TRUE;}else{ $only_active = $_GET[only_active];}
  26  
  27  $template="rss";
  28  include ("show_news.php");
  29  
  30  
  31  echo"</channel></rss>";
  32  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]