/[nuke]/html/backend.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /html/backend.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Fri Sep 22 07:22:13 2000 UTC (23 years, 7 months ago) by dpavlin
Branch: dbp, MAIN
CVS Tags: r3_6, HEAD
Changes since 1.1: +0 -0 lines
import of version 3.6

1 dpavlin 1.1 <?php
2    
3     ######################################################################
4     # PHP-NUKE: Web Portal System
5     # ===========================
6     #
7     # Copyright (c) 2000 by Francisco Burzi (fburzi@ncc.org.ve)
8     # http://www.ncc.org.ve/php-nuke.php
9     #
10     # This modules is to syndicate your news for other sites
11     #
12     # This program is free software. You can redistribute it and/or modify
13     # it under the terms of the GNU General Public License as published by
14     # the Free Software Foundation; either version 2 of the License.
15     ######################################################################
16    
17     include("mainfile.php");
18     header("Content-Type: text/plain");
19     dbconnect();
20     $result = mysql_query("SELECT sid, title, time FROM stories ORDER BY sid DESC limit 10");
21     if (!result) {
22     echo "An error occured";
23     } else {
24     echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
25     echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n";
26     echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n";
27     echo "<rss version=\"0.91\">\n\n";
28     echo " <channel>\n";
29     echo " <title>$sitename</title>\n";
30     echo " <link>$nuke_url</link>\n";
31     echo " <description>$backend_title</description>\n";
32     echo " <language>$backend_language</language>\n\n";
33     echo " <image>\n";
34     echo " <title>$sitename</title>\n";
35     echo " <url>$backend_image</url>\n";
36     echo " <link>$nuke_url</link>\n";
37     echo " <description>$titletag</description>\n";
38     echo " <width>$backend_width</width>\n";
39     echo " <height>$backend_height</height>\n";
40     echo " </image>\n\n";
41     for ($m=0; $m < mysql_num_rows($result); $m++) {
42     list($sid, $title, $time) = mysql_fetch_row($result);
43     echo " <item>\n";
44     echo " <title>$title</title>\n";
45     echo " <link>$nuke_url/article.php?sid=$sid</link>\n";
46     echo " </item>\n\n";
47     }
48     echo " </channel>\n\n";
49     echo "</rss>";
50     }
51     ?>

  ViewVC Help
Powered by ViewVC 1.1.26