From 423564807cbf345a16840acf31ef4bad3a527092 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Mon, 24 May 2010 23:20:47 +0200 Subject: Main page has not been commited previously... --- index.php | 219 +++++++++++++++++++++++--------------------------------------- 1 file changed, 79 insertions(+), 140 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 358fb41..863ccdb 100644 --- a/index.php +++ b/index.php @@ -1,162 +1,101 @@ - - + + Packages in Fedora - - - - - - - + + + + + - -
- - -
- -
- Package :  - - -
- +
+ -
- -
-   - Reports home - - - -
-
- - - - -
-
 
-
 
-
- - - -

Packages in Fedora repositories

-

Package reports

- -

Analysed repositories

- - + +
+
+

You are here:

+ +
+

Packages in Fedora repositories

+

Package reports

+ + + + + + + + + + + + + \n"; - echo "\n"; +require "config.inc.php"; +try { + $db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS); $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 ("\n", - ($i%2 ? 'odd' : 'even'), - ($repo->main != $prev ? $repo->main : " "), - ($repo->main != $prev ? ($repo->active ? "Yes" : "no") : " "), + printf ("\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 "
Analysed repositories
MainActiveSubUrlLast update
MainActiveSubUrlLast update
%s%s%s%s%s
%s%s%s%s%s
\n"; - -} -catch(PDOException $e) { +} catch(PDOException $e) { +?> + + +getMessage()); +?> + + + - -

Script sources

- - - -
Repository on github.com
http://github.com/remicollet/rpmphp
Any feedback, RFE and patches are welcome.
- - -
-
 
-
 
-
- - - - - - +
- - -- cgit