]>
git.wh0rd.org - tt-rss.git/blob - backend.php
2 header("Content-Type: application/xml");
8 $feeds = array("Art.Gnome.Org Releases", "Footnotes", "Freedesktop.org",
9 "Planet Debian", "Planet Gnome");
16 foreach ($feeds as $feed) {
17 $class = ($lnum %
2) ?
"even" : "odd";
19 // if ($lnum == 2 || $lnum == 0) $feed = "<b>$feed</b>";
21 $feed = "<a href=\"javascript:viewfeed('$feed')\">$feed</a>";
23 print "<li class=\"$class\">$feed</li>";
33 $post = $_GET["post"];
34 $feed = $_GET["feed"];
36 print "<h1>$post</h1>";
37 print "<h2>$feed</h2>";
39 print "<p>Blah blah blah blah blah</p>";
43 if ($op == "viewfeed") {
45 $feed = $_GET["feed"];
47 $headlines = array("Linus Torvalds flies to the Moon",
48 "SCO bankrupt at last",
49 "OMG WTF ANOTHER HEADLINE",
50 "Another clever headline from $feed",
51 "I'm really not feeling creative today",
54 $headlines = array_merge($headlines, $headlines);
60 foreach ($headlines as $hl) {
61 $class = ($lnum %
2) ?
"even" : "odd";
63 // if ($lnum == 2 || $lnum == 0) $feed = "<b>$feed</b>";
65 $hl = "<a href=\"javascript:view('$feed','$hl')\">$hl</a>";
67 print "<li class=\"$class\">$hl</li>";