1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Packages in Fedora</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" media="screen" href="css/rpmphp.css"/>
<!--<link rel="stylesheet" type="text/css" media="print" href="css/rpmphp-print.css">-->
<link rel="shortcut icon" href="images/favicon.ico"/>
<link rel="icon" href="images/favicon.ico"/>
</head>
<body>
<div id="wrapper">
<?php
include '_header.php';
?>
<!-- content BEGIN -->
<div id="fedora-content">
<div id="ariane">
<p>You are here: </p>
<ul>
<li><a href="#">Reports home</a></li>
</ul>
</div>
<h1>Packages in Fedora repositories</h1>
<h2>Package reports</h2>
<ul id="reports">
<li><a href="rpm.php?type=pecl">PECL Extensions in Fedora</a> with upstream information</li>
<li><a href="rpm.php?type=pear">PEAR Extensions in Fedora</a> with upstream information</li>
<li><a href="rpm.php?type=R">R Extensions in Fedora</a> with upstream information</li>
<li><a href="all.php">All Packages in Fedora</a></li>
</ul><!-- /reports -->
<table id="list-packages">
<caption><strong>Analysed repositories</strong></caption>
<thead>
<tr>
<th>Main</th>
<th>Active</th>
<th>Sub</th>
<th>Url</th>
<th>Last update</th>
</tr>
</thead>
<tbody>
<?php
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 ("<tr class='%s'><td><strong>%s</strong></td><td>%s</td><td>%s</td><td><a href='%s'>%s</a></td><td>%s</td></tr>\n",
($i%2 ? 'odd' : 'even'),
($repo->main != $prev ? $repo->main : " "),
($repo->main != $prev ? ($repo->active ? "<strong>Yes</strong>" : "no") : " "),
$repo->sub, $repo->url, $repo->url, date("r", $repo->stamp));
}
} catch(PDOException $e) {
?>
<tr>
<td colspan="5">
<?php
printf("%s ERREUR : %s\n", date("r"), $e->getMessage());
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table><!-- /list-pacakges -->
<h2>Script sources</h2>
<p>You can retrieve the current application sources from my GIT repository on github.com: <a href='http://github.com/remicollet/rpmphp'>http://github.com/remicollet/rpmphp</a>.</p>
<p>Feedbacks, RFE and patches are welcome.</p>
</div><!-- /fedora-content -->
<?php
include '_footer.php';
?>
</div>
</body>
</html>
|