From 1d9140560f969d4545e5b1ba762a90a5385f62f4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 22 May 2010 14:51:15 +0200 Subject: import current version --- index.php | 171 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 index.php (limited to 'index.php') diff --git a/index.php b/index.php new file mode 100644 index 0000000..77a6663 --- /dev/null +++ b/index.php @@ -0,0 +1,171 @@ + + + + Packages in Fedora + + + + + + + + + + + +
+ + +
+ +
+ +
+ +
+   + Reports home + + + +
+
+ + + + +
+
 
+
 
+
+ + + +

Packages in Fedora repositories

+

Package reports

+ +

Analysed repositories

+ + +\n"; + echo "MainActiveSubUrlLast update\n"; + + $sql='SELECT * FROM repo ORDER BY ID'; + $res=$db->query($sql); + if ($res) for ($i=0, $prev="xx" ; $repo=$res->fetchObject() ; $i++, $prev=$repo->main) { + printf ("%s%s%s%s%s\n", + ($i%2 ? 'odd' : 'even'), + ($repo->main != $prev ? $repo->main : " "), + ($repo->main != $prev ? ($repo->active ? "Yes" : "no") : " "), + $repo->sub, $repo->url, $repo->url, date("r", $repo->stamp)); + } + echo "\n"; + +} +catch(PDOException $e) { + printf("%s ERREUR : %s\n", date("r"), $e->getMessage()); +} + +?> + +

Script sources

+ + "This page", + "all.php" => "All Packages in Fedora", + "rpm.php" => "PHP Extensions in Fedora", + "refresh.php" => "The metadata refresh script launch twice a day by cron", + "zoom.php" => "Package detail"); + + $i=0; + foreach ($pages as $page => $name) if (is_file($page) && is_link($page."s")) { + $stat=stat($page); + printf ("\n", + ($i%2 ? 'odd' : 'even'), $page, $page, $name, date("r", $stat["mtime"])); + $i++; + } +?> +
NameDescriptionDate
%s%s%s
+

Any feedback, RFE and patches are welcome.

+ + +
+
 
+
 
+
+ + + + + + + + + + + -- cgit