From e5e4f6a85ccf94e35306f5007d6a7e957c054bb6 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 8 Feb 2019 10:07:56 +0100 Subject: rss overview page done --- feeds/feed.php | 3 + feeds/index.php | 191 ++++++++++++++++++++++++++++++++++++++++++++ static/rss.c5ebdc5318d6.png | Bin 0 -> 707 bytes 3 files changed, 194 insertions(+) create mode 100644 feeds/feed.php create mode 100644 feeds/index.php create mode 100644 static/rss.c5ebdc5318d6.png diff --git a/feeds/feed.php b/feeds/feed.php new file mode 100644 index 0000000..040c36d --- /dev/null +++ b/feeds/feed.php @@ -0,0 +1,3 @@ + fetch_assoc()) + $archs[$row['name']] = $row['name'] . '/'; + +$print_archs = array_merge( + array( + '' => '', + 'All Arches' => '' + ), + $archs +); + +$result = mysql_run_query( + "SELECT DISTINCT `repositories`.`name` FROM `repositories` WHERE `repositories`.`is_on_master_mirror` ORDER BY `name`" +); +$repos = array(); +while ($row = $result -> fetch_assoc()) + $repos[$row['name']] = $row['name'] . '/'; + +$print_repos = array_merge( + array( + 'All Repos' => '' + ), + $repos +); + +$bugtracker_projects = array( + 0 => 'All Projects', + 1 => 'Arch Linux 32' +); + +$bugtracker_operations = array( + 'Opened' => '', + 'Edited' => 'topic=edit&', + 'Closed' => 'topic=clo&' +); + +function print_arches_header() { + global $print_archs; + foreach ($print_archs as $arch => $dummy) { + print " \n"; + print " " . $arch . "\n"; + print " \n"; + }; +} + +function print_feeds($prefix) { + global $print_archs; + global $print_repos; + foreach ($print_repos as $repo => $dummy) { + print " \n"; + print " \n"; + print " " . $repo . "\n"; + print " \n"; + foreach ($print_archs as $arch => $dummy) { + if ($arch == '') + continue; + print " \n"; + print " Feed\n"; + print " \n"; + } + print " \n"; + } +} + +function print_feeds_table($prefix) { + print " \n"; + print " \n"; + print " \n"; + print_arches_header(); + print " \n"; + print " \n"; + print " \n"; + print_feeds($prefix); + print " \n"; + print "
\n"; +} + +?> +
+

+ RSS Feeds +

+

+ Several RSS feeds are available for consumption from the Arch32 website. + The majority of these are package-related and allow feeds to be customized for the updates you care about. +

+

+ News Feed +

+

+ Grab the + news item feed + to keep up-to-date with the latest news from the Arch Linux development staff. +

+

+ Package Feeds +

+

+ If you are interested in + all package updates, + then grab this feed. + +

+ Recently added packages. +

+ +

+ Recently removed packages. +

+ +

+ Release Feed +

+

+ Grab the + ISO release feed + if you want to help seed the ISO release torrents as they come out. +

+

+ Development Feeds +

+

+ Subscribe to any of the following to track bug tickets and feature requests from the + Arch Linux 32 Bugtracker: +

+ + + + + $dummy) { + print " \n"; +} + +?> + + + + $project) { + print " \n"; + print " \n"; + foreach ($bugtracker_operations as $label => $option) { + print " \n"; + } + print " \n"; +} + +?> + +
+ Project + \n"; + print " Recently " . $label . " Tasks\n"; + print "
\n"; + print " " . $project . "\n"; + print " \n"; + print " Feed\n"; + print "
+
+