summaryrefslogtreecommitdiffstats
path: root/index.php
blob: 358fb414342474fec68d192f84585d063d7cb979 (plain)
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>Packages in Fedora</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link rel="stylesheet" type="text/css" media="print" href="http://docs.fedoraproject.org/css/print.css">
		<style type="text/css" media="screen">
			@import url("http://docs.fedoraproject.org/css/layout.css");
			@import url("http://docs.fedoraproject.org/css/content.css");
			@import url("http://docs.fedoraproject.org/css/docbook.css");
            
body {
    background-image:none; 
}
.error {
    background:url(http://fedoraproject.org/wikidata/kindofblue/img/icon-error.png) no-repeat left;
    padding-left: 21px;
}

.info {
    background:url(http://fedoraproject.org/wikidata/kindofblue/img/icon-info.png) no-repeat left;
    padding-left: 21px;
}

.attn {
    background:url(http://fedoraproject.org/wikidata/kindofblue/img/attention.png) no-repeat left;
    padding-left: 21px;
}

.check {
    background:url(http://fedoraproject.org/wikidata/kindofblue/img/checkmark.png) no-repeat left;
    padding-left: 21px;
}

.cpan {
    background:url(http://www.perl.com/favicon.ico) no-repeat left;
    padding-left: 18px;
}

.rt {
    background:url(/img/rt.png) no-repeat left;
    padding-left: 18px;
}

.bz {
    background:url(/img/bz.png) no-repeat left;
    padding-left: 18px;
}

<?php

require "config.inc.php";


try {
	$db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS);
?>
		</style>

		<meta name="MSSmartTagsPreventParsing" content="TRUE">
		<link rel="shortcut icon" href="http://docs.fedoraproject.org//images/favicon.ico">
		<link rel="icon" href="http://docs.fedoraproject.org//images/favicon.ico">
	</head>

	<body>
		<!-- header BEGIN -->
		<div id="fedora-header">
			<div id="fedora-header-logo">

			<a href="http://fedoraproject.org"><img src="http://docs.fedoraproject.org//images/header-fedora_logo01.png" alt="Fedora Project"></a>
			</div>

			<div id="fedora-header-items">
            <span class="fedora-header-search">
               <form action='zoom.php' method='get'>
               Package&nbsp;:&nbsp;
               <input type='text' name='rpm' size='20' />
               <input type="image" src='http://docs.fedoraproject.org/images/header-search.png' alt="Search" />
            </form></span>

			</div>

		</div>

		<div id="fedora-nav"></div>
			&nbsp;<img src='http://docs.fedoraproject.org/images/link-offsite-side.png' />
			Reports home
		<!-- header END -->
		
		<!-- leftside BEGIN -->
		<div id="fedora-side-left">
                </div>

		<!-- leftside END -->

		<!-- content BEGIN -->
        <div id="fedora-middle-one">
            <div class="fedora-corner-tr">&nbsp;</div>
            <div class="fedora-corner-tl">&nbsp;</div>
            <div id="fedora-content">

        <!-- document BEGIN -->

	<h1>Packages in Fedora repositories</h1>
	<h2>Package reports</h2>
	<ul>
		<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>
	<h2>Analysed repositories</h2>
        
     
<?php
	echo "<table id='fedora-list-packages'>\n";
	echo "<tr class='odd'><th>Main</th><th>Active</th><th>Sub<th>Url</th><th>Last update</th></tr>\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 ("<tr class='%s'><td><strong>%s</strong></td><td>%s</td><td>%s</td><td><a href='%s' alt='RPM'>%s</a></td><td>%s</td></tr>\n", 
			($i%2 ? 'odd' : 'even'), 
			($repo->main != $prev ? $repo->main : "&nbsp;"), 
			($repo->main != $prev ? ($repo->active ? "<strong>Yes</strong>" : "no") : "&nbsp;"), 
			$repo->sub, $repo->url, $repo->url, date("r", $repo->stamp));
	}
	echo "</table>\n";

}
catch(PDOException $e) {
	printf("%s ERREUR : %s\n", date("r"),  $e->getMessage());
}

?>

<h2>Script sources</h2>
<table id='fedora-list-packages'><tr><th>Repository on github.com</th></tr>
<tr class='even'><td><a href='http://github.com/remicollet/rpmphp'>http://github.com/remicollet/rpmphp</a></td></tr>
<tr class='odd'><td>Any feedback, RFE and patches are welcome.</td></tr>
</table>

        <!-- document END -->
        </div>
            <div class="fedora-corner-br">&nbsp;</div>
            <div class="fedora-corner-bl">&nbsp;</div>
        </div>

		<!-- content END -->
		
		<!-- footer BEGIN -->

		<div id="fedora-footer">
			<br/>The Fedora Project is maintained and driven by the community and sponsored by Red Hat. 
			<br/><a href="http://fedoraproject.org/wiki/Legal">Legal</a> | <a href="http://fedoraproject.org/wiki/Legal/TrademarkGuidelines">Trademark Guidelines</a>
			<br>		
		</div>

		<!-- footer END -->
	</body>
</html>