| [ PHPXref.com ] | [ Generated: Sun Jul 20 18:53:27 2008 ] | [ myPHPNuke 1.8.8_8 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 3 if ( ! @include_once ( './mainfile.php' ) ) { exit( '!! INCLUDE ERROR. ACCESS DENIED !!' ); } 4 error_reporting( _E_VALUE ); 5 6 7 /* vim: set expandtab tabstop=4 shiftwidth=4: */ 8 // +----------------------------------------------------------------------+ 9 // | myPHPNuke Version 188_8 RC2 | 10 // +----------------------------------------------------------------------+ 11 // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | 12 // +----------------------------------------------------------------------+ 13 // | Support: http://myphpnuke.com/ | 14 // +----------------------------------------------------------------------+ 15 // | Author: myPHPNuke Dev Team | 16 // +----------------------------------------------------------------------+ 17 // | Copyright: © 2001-2004 myPHPNuke Dev Team | 18 // +----------------------------------------------------------------------+ 19 // $Id: backend.php,v 1.6.2.2 2004/04/18 12:45:25 ajvwaay Exp $ 20 21 22 23 24 /************************************************************************/ 25 /* PHP-NUKE: Web Portal System */ 26 /* =========================== */ 27 /* */ 28 /* Copyright (c) 2001 by Francisco Burzi (fburzi@ncc.org.ve) */ 29 /* http://phpnuke.org */ 30 /* */ 31 /* This program is free software. You can redistribute it and/or modify */ 32 /* it under the terms of the GNU General Public License as published by */ 33 /* the Free Software Foundation; either version 2 of the License. */ 34 /************************************************************************/ 35 36 //include("extention.inc"); 37 //include("mainfile.$phpEx"); 38 header("Content-Type: text/xml"); 39 $result = mysql_query("SELECT sid, title, time FROM ".$mpnTables['stories']." ORDER BY sid DESC limit 10"); 40 if ($result === false) 41 { 42 echo "An error occured"; 43 } 44 else 45 { 46 echo "<?xml version=\"1.0\"?>\n"; 47 echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n"; 48 echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n"; 49 echo "<rss version=\"0.91\">\n\n"; 50 echo " <channel>\n"; 51 echo " <title>" . htmlspecialchars($sitename, ENT_QUOTES, 'UTF-8') . "</title>\n"; 52 echo " <link>" . _MPN_ROOT_URI . "</link>\n"; 53 echo " <description>" . htmlspecialchars($backend_title, ENT_QUOTES, 'UTF-8') . "</description>\n"; 54 echo " <language>$backend_language</language>\n\n"; 55 echo " <image>\n"; 56 echo " <title>" . htmlspecialchars($sitename, ENT_QUOTES, 'UTF-8') . "</title>\n"; 57 echo " <url>$backend_image</url>\n"; 58 echo " <link>" . _MPN_ROOT_URI . "</link>\n"; 59 echo " <description>" . htmlspecialchars($slogan, ENT_QUOTES, 'UTF-8') . "</description>\n"; 60 echo " <width>$backend_width</width>\n"; 61 echo " <height>$backend_height</height>\n"; 62 echo " </image>\n\n"; 63 for ($m=0; $m < mysql_num_rows($result); $m++) 64 { 65 list($sid, $title, $time) = mysql_fetch_row($result); 66 echo " <item>\n"; 67 echo " <title>" . htmlspecialchars($title, ENT_QUOTES, 'UTF-8') . "</title>\n"; 68 echo " <link>" . _MPN_ROOT_URI . "article.$phpEx?sid=$sid</link>\n"; 69 echo " </item>\n\n"; 70 } 71 72 echo " </channel>\n\n"; 73 echo "</rss>"; 74 } 75 76 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |