From 5ca82939ce78fe848b92f077dd7ec3311a922755 Mon Sep 17 00:00:00 2001 From: elij Date: Sun, 27 Sep 2009 16:43:39 -0700 Subject: renamed rss2 -> rss changed file name, as the 2 is relatively meaningless. I think at one time it qualified it as a rss2.0 feed, but the distinction is valueless at this point, since the generated xml itself declares the rss version. make sure to set an apache rewrite rule for any production systems that require it. Signed-off-by: Loui Chang --- web/html/rss2.php | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 web/html/rss2.php (limited to 'web/html/rss2.php') diff --git a/web/html/rss2.php b/web/html/rss2.php deleted file mode 100644 index 659ee15d..00000000 --- a/web/html/rss2.php +++ /dev/null @@ -1,48 +0,0 @@ -useCached("RSS2.0", "/tmp/aur-newestpkg.xml", 1800); - -#All the general RSS setup -$rss->title = "AUR Newest Packages"; -$rss->description = "The latest and greatest packages in the AUR"; -$rss->link = "${protocol}://{$host}"; -$rss->syndicationURL = "{$protocol}://{$host}/rss2.php"; -$image = new FeedImage(); -$image->title = "AUR"; -$image->url = "{$protocol}://{$host}/images/AUR-logo-80.png"; -$image->link = $rss->link; -$image->description = "AUR Newest Packages Feed"; -$rss->image = $image; - -#Get the latest packages and add items for them -$dbh = db_connect(); -$q = "SELECT * FROM Packages "; -$q.= "WHERE DummyPkg != 1 "; -$q.= "ORDER BY SubmittedTS DESC "; -$q.= "LIMIT 0 , 20"; -$result = db_query($q, $dbh); - -while ($row = mysql_fetch_assoc($result)) { - $item = new FeedItem(); - $item->title = $row["Name"]; - $item->link = "{$protocol}://{$host}/packages.php?ID={$row["ID"]}"; - $item->description = $row["Description"]; - $item->date = intval($row["SubmittedTS"]); - $item->source = "{$protocol}://{$host}"; - $item->author = username_from_id($row["MaintainerUID"]); - $rss->addItem($item); -} - -#save it so that useCached() can find it -$rss->saveFeed("RSS2.0","/tmp/aur-newestpkg.xml",true); - -- cgit v1.2.3-24-g4f1b