/[qa]/trunk/wml/developer.wml
ViewVC logotype

Contents of /trunk/wml/developer.wml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 360 - (show annotations) (download)
Mon Sep 2 12:41:42 2002 UTC (10 years, 8 months ago) by igenibel
File size: 21474 byte(s)
Fix typo: informations -> information
	use rawurlencode when generate debcheck links (Closes: #159058) ;)
1 #use wml::templ::template title="Debian Developer's Packages Overview" author="Igor Genibel"
2
3 <?/*
4 +-------------------------------------------------------------------------+
5 | Copyright (C) 2002 Igor Genibel |
6 | |
7 | This program is free software; you can redistribute it and/or |
8 | modify it under the terms of the GNU General Public License |
9 | as published by the Free Software Foundation; either version 2 |
10 | of the License, or (at your option) any later version. |
11 | |
12 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. |
16 +-------------------------------------------------------------------------+
17 | This code is currently maintained and debugged by Igor Genibel, any |
18 | questions or comments regarding this code should be directed to: |
19 | - igor@genibel.org |
20 +-------------------------------------------------------------------------+
21 | - Igor Genibel - http://genibel.org/ |
22 | $Id$ |
23 +-------------------------------------------------------------------------+
24 */?>
25 <?
26
27 $branch = array ("main",
28 "contrib",
29 "non-free",
30 "non-US/main",
31 "non-US/contrib",
32 "non-US/non-free" );
33
34 setlocale(LC_ALL, 'fr_FR');
35
36 $prefix="/org/qa.debian.org/data/ddpo/results";
37 #$prefix="/home/igenibel/qa.debian.org/data/ddpo/results";
38
39 function printBackLink() {
40 ?>
41 <p><a href="developer.php">Back to main page</a></p>
42 <?
43 }
44
45 function print_header_entries_top($keys, $name)
46 {
47 ?>
48 <title>Packages overview for <?print $name?></title>
49 </head>
50
51 <body>
52 <p align="center"><h2>Packages overview for <?print $name?></h2></p>
53 <hr>
54 <h3>General information</h3>
55 <?
56 if ($keys == "NOID") {
57 ?>
58 <p><font size="+1" color="red">GPG Id not found ! </font><font size="-2">(id was not found neither in debian keyring nor in public keyserver)</font></p>
59 <?
60 }else{
61 foreach (explode(",", $keys) as $key) {
62 ?>
63 <font size="-1">GPG Id: <a href="developer.php?gpg_key=<?print $key?>"><?print $key?></a></font><br>
64 <?
65 }
66 }
67 }
68
69 function print_header_entries_body($login, $key, $name)
70 {
71 $lintian = preg_replace("/[\s-\"í']/", "_", $name);
72 $buildd=urlencode("$name <$login> ");
73 ?>
74 <font size="-1">
75 <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=maint&data=<? print $login ?>&archive=no&raw=yes&bug-rev=yes&pend-exc=fixed&pend-exc=done">Non-fixed bugs, most recent first</a><br>
76 <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?maint=<?print $login?>">All bugs related to &lt;<?print $login?>&gt;</a><br>
77 <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=maint&data=<?print rawurlencode($login)?>&archive=no&pend-exc=done&sev-inc=critical&sev-inc=grave&sev-inc=serious">RC Bugs related to &lt;<?print $login?>&gt;</a><br>
78 <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?submitter=<?print $login?>">All bugs submitted by &lt;<?print $login?>&gt;</a><br>
79 <a href="http://lintian.debian.org/reports/m<?print $lintian?>.html">Lintian report</a><br>
80 <a href="http://buildd.debian.org/bymaint.php?maint=<?print "$buildd"?>">Buildd report</a>
81 </font>
82
83 <hr>
84 <font size="-1">
85 <b>Packages in <font color="blue">blue</font> are packages that are uploaded by developer (reference to Uploaders: field)</b><br>
86 <b>Packages version in <font color="red">red</font> are packages NMUed<b><br>
87 <b>Packages where testing version in <font color="magenta">magenta</font> are packages that the unstable version differs from testing</b>
88 </font>
89 <?
90 }
91
92 #
93 # print info for not found developer
94 #
95
96 function print_notfound($login)
97 {
98 ?>
99 <title>Packages information for specific developer</title>
100 <body>
101 <?
102 print "<h2>No information available for $login</h2>";
103 }
104
105
106 #
107 # print the form because no login provided
108 #
109
110 function print_form()
111 {
112 ?>
113 <title>Packages information for specific developer</title>
114 <body>
115 <h2>Packages information for specific developer</h2>
116 <hr>
117 <form method="GET" action="developer.php">
118 Please enter a Debian developer username (related to Maintainer field):<br>
119 if single username is provided @debian.org is automatically appended<br>
120 <input size="30" maxsize="40" type="text" limit="16" name="login" value="">
121 <input type="submit" value="Go">
122 </form>or
123 <form method="GET" action="developer.php">
124 Please enter a Debian developer gpg id key <br>
125 <input size="8" maxsize="8" type="text" limit="8" name="gpg_key" value="">
126 <input type="submit" value="Go">
127 </form>or
128 <form method="GET" action="developer.php">
129 A source package<br>
130 <input size="20" maxsize="30" type="text" limit="20" name="package" value="">
131 <input type="submit" value="Go">
132 </form>
133 <?
134 }
135
136
137 function print_query_all()
138 {
139 ?>
140 <br>
141 <form method="POST" action="developer.php">
142 Do you want to see the whole developer sorted list ? <b>(>200ko !)</b>
143 <input type="hidden" name="all" value="1">
144 <input type="submit" value="Query">
145 </form>
146
147 <?
148 }
149
150 function print_all()
151 {
152 global $prefix;
153 $fp = fopen("$prefix/extract", "r");
154 ?>
155
156 <hr><h2>Sorted developer list</h2>
157 <table width="100%" border="1">
158 <tr align="center">
159 <td width="60%">
160 <b>Name and email</b>
161 </td>
162 <td>
163 <b>main</b>
164 </td>
165 <td>
166 <b>non-US</b>
167 </td>
168 <td>
169 <b>Other <font size="-3" color="blue"><br>all contrib &<br>non-free<br>packages</font></b>
170 </td>
171 <td>
172 <b>Total</b>
173 </td>
174 </tr>
175
176 <?
177 while(!feof($fp)) {
178 $line = fgets($fp, "10240");
179 if($line != "") {
180 $count = 0;
181 $line = preg_replace("/, /", ",", $line);
182 preg_match("/;(.+?);(.+?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*)$/", $line, $info_array);
183 print '<tr align="center">';
184 print '<td width="15%">';
185 print "<b><a href=\"$index_page?login=$info_array[1]\">$info_array[3] &lt;$info_array[1]&gt;</a></b>";
186 print '</td>';
187 $main = 0;
188 $nonUS = 0;
189 $other = 0;
190 if($info_array[4] != "") {
191 $main += count(explode(" ", $info_array[4]));
192 $count += count(explode(" ", $info_array[4]));
193 }
194 if($info_array[5] != "") {
195 $other += count(explode(" ", $info_array[5]));
196 $count += count(explode(" ", $info_array[5]));
197 }
198 if($info_array[6] != "") {
199 $nonUS += count(explode(" ", $info_array[6]));
200 $count += count(explode(" ", $info_array[6]));
201 }
202 if($info_array[7] != "") {
203 $other += count(explode(" ", $info_array[7]));
204 $count += count(explode(" ", $info_array[7]));
205 }
206 if($info_array[8] != "") {
207 $other += count(explode(" ", $info_array[8]));
208 $count += count(explode(" ", $info_array[8]));
209 }
210 if($info_array[9] != "") {
211 $other += count(explode(" ", $info_array[9]));
212 $count += count(explode(" ", $info_array[9]));
213 }
214
215 ?>
216 <td><? print $main?></td>
217 <td><? print $nonUS?></td>
218 <td><? print $other?></td>
219 <td><b><? print $count?></b></td>
220 </tr>
221 <?
222 }
223 }
224 print '</table>';
225 }
226
227 function get_rep($package_name)
228 {
229 if(preg_match("/^lib/", $package_name)) {
230 return substr($package_name, 0, 4);
231 }else{
232 return substr($package_name, 0, 1);
233 }
234 }
235
236 #
237 # This function print a package table information for specific branch
238 # given in argument
239 #
240 function print_package_entries($branch, $packages)
241 {
242
243 $packages = preg_replace ("/, /", ",", $packages);
244 $pack_array = split(" ", $packages);
245
246 ?>
247 <h3>Packages for <?print $branch?></h3>
248 <font size="-1">
249 <table width="100%" border="1">
250 <tr align="center">
251 <th rowspan="2"><font size="-1" color="green">Source&nbsp;Name</font></th>
252 <th rowspan="1" colspan="5"><font size="-1" color="green">Bugs</font></th>
253 <th rowspan="1" colspan="4"><font size="-1" color="green">Version</font></th>
254 <th rowspan="1" colspan="2"><font size="-1" color="green">Security</font></th>
255 <th rowspan="2"><font size="-1" color="green">Binary<br> Package Page</font></th>
256 <th rowspan="2"><font size="-1" color="green">Buildd</font></th>
257 <th rowspan="2"><font size="-1" color="green">Excuses</font></th>
258 <th rowspan="1" colspan="3"><font size="-1" color="green">Broken dependencies</font></th>
259 <th rowspan="2"><font size="-1" color="green">Section</font></th>
260 <th rowspan="2"><font size="-1" color="green">Priority</font></th>
261 <th rowspan="2"><font size="-1" color="green">Pool</font></th>
262 <th rowspan="1" colspan="3"><font size="-1" color="green">Uninstallable</font></th>
263 </tr>
264 <tr align="center">
265 <th><font size="-1" color="green"><a name="foo" title="All opened bugs">All</a></font></th>
266 <th><font size="-1" color="green"><a name="foo" title="Release Critical bugs">RC</a></font></th>
267 <th><font size="-1" color="green"><a name="foo" title="Important & Normal bugs">I&amp;N</a></font></th>
268 <th><font size="-1" color="green"><a name="foo" title="Minor & Wishlist bugs">M&amp;W</a></font></th>
269 <th><font size="-1" color="green"><a name="foo" title="Fixed & Pending bugs">F&amp;P</a></font></th>
270 <th><font size="-1" color="green">Stable</font></th>
271 <th><font size="-1" color="green">Testing</font></th>
272 <th><font size="-1" color="green">Unstable</font></th>
273 <th><font size="-1" color="green">Exp.</font></th>
274 <th><font size="-1" color="green">Stable</font></th>
275 <th><font size="-1" color="green">Testing</font></th>
276 <th><font size="-1" color="green">Stable</font></th>
277 <th><font size="-1" color="green">Testing</font></th>
278 <th><font size="-1" color="green">Unstable</font></th>
279 <th><font size="-1" color="green">Stable</font></th>
280 <th><font size="-1" color="green">Testing</font></th>
281 <th><font size="-1" color="green">Unstable</font></th>
282 </tr>
283 <?
284 foreach ($pack_array as $package)
285 {
286 global $prefix;
287 # print "<<< $package >>>";
288 # $upstream = $package[1];
289 preg_match("/(.+)\((.+)\)/", $package, $result);
290 $list = split (",", $result[2]);
291 $package_name = $result[1];
292 if(preg_match("/#/", $package)) {
293 $uploader = 1;
294 $package = preg_replace("/#/", "", $package);
295 }
296 if(preg_match("/%/", $package)) {
297 $all = 1;
298 $package = preg_replace("/%/", "", $package);
299 }
300 preg_match("/(.+?)\[(.+)\]\{(.+)\}\{(.+)\}\{(.+)\}\|(.+)\|:(.+):/", $package, $results);
301 $package = $package_name;
302 $version = $results[2];
303 $versions = explode (",", $version);
304 $version_stable = $versions[0];
305 $version_testing = $versions[1];
306 $version_unstable = $versions[2];
307 $version_experimental = $versions[3];
308 $security_stable = $versions[4];
309 $security_testing = $versions[5];
310 $uninstalable_stable = preg_replace("/,/", "&nbsp;", $results[3]);
311 $uninstalable_testing = preg_replace("/,/", "&nbsp;", $results[4]);
312 $uninstalable_unstable = preg_replace("/,/", "&nbsp;", $results[5]);
313 $priority = $results[6];
314 $section = $results[7];
315
316 $fp = fopen("$prefix/bugs.txt", "r");
317 $bug_list = explode(" ", "0 0 0 0");
318 $temp = preg_replace("/\+/", "_", $package);
319 while(!feof($fp)) {
320 $line = fgets($fp, "512");
321 $line = preg_replace("/\+/", "_", $line);
322 if(preg_match("/^$temp\s+(\d+\s\d+\s\d+\s\d+)/", $line, $results)) {
323 $bug_list = explode(" ", $results[1]);
324 break;
325 }
326
327 }
328 fclose($fp);
329
330 if(strcmp($version_stable, "-") == 0) {
331 $stable_dep = "<font size=\"-1\">No link</font>";
332 }else{
333 $stable_dep = '<font size="-1"><a href="http://qa.debian.org/debcheck.php?dist=stable&package=' . rawurlencode($package) .'">Stable</a></font>';
334 }
335
336 if(strcmp($version_testing, "-")== 0) {
337 $testing_dep = "<font size=\"-1\">No link</font>";
338 }else{
339 $testing_dep = '<font size="-1"><a href="http://qa.debian.org/debcheck.php?dist=testing&package=' . rawurlencode($package) .'">Testing</a></font>';
340 }
341
342 $buildd = "http://buildd.debian.org/build.php?pkg=".$package;
343 if(preg_match("/non-US/", $branch)) {
344 $pool = "http://non-us.debian.org/debian-non-US/pool/". $branch . "/" .get_rep($package) . "/" . $package . "/";
345 }else{
346 $pool = "http://ftp.debian.org/debian/pool/". $branch . "/" .get_rep($package) . "/" . $package;
347 }
348
349 $sid_dep = '<font size="-1"><a href="http://qa.debian.org/debcheck.php?dist=unstable&package=' . rawurlencode($package) . '">Unstable</a></font>';
350 $char = substr($package, 0, 1);
351 if(file_exists("$prefix/excuses/$char/$package")) {
352 $excuse = "<a href=\"developer.php?excuse=$package\">Excuses</a>";
353 }else{
354 $excuse = "No";
355 }
356
357 if(strcmp($version_experimental, "-")) {
358 $version_experimental = '<font color="2222AA"><b>' . $version_experimental . '</b></font>';
359 }
360 $experimental = '<td rowspan="1" colspan="1"><font size="-1">' . $version_experimental . '</font></td>';
361
362
363 if((strcmp ($version_stable, $version_testing) == 0) &&
364 (strcmp ($version_stable, "/") != 0)) {
365 if((strcmp ($version_unstable, $version_testing) == 0)) {
366 $version_print = '<td rowspan="1" colspan="3"><font size="-1">' . $version_stable . '</font></td>' .$experimental;
367 }else{
368 $version_print = '<td rowspan="1" colspan="2"><font size="-1" color="magenta">' . $version_stable . '</font></td><td rowspan="1" colspan="1"><font size="-1">' . $version_unstable . '</font></td>' . $experimental;
369 }
370 $ver = explode("-", $version_unstable);
371 if((preg_match("/(.+\..+?)$/", $ver[count($ver) - 1], $toto)) && (count($ver) != 1))
372 {
373 $version_print = preg_replace("/$version_unstable/", "<font color=\"red\">$version_unstable</font>", $version_print);
374 }
375 }else if(strcmp ($version_testing, $version_unstable) == 0) {
376 if(strcmp($version_stable, "/") != 0) {
377 $version_stable = '<font color="#00AADD" size="-1">'.$version_stable.'</font>';
378 }
379 $version_print = '<td><font size="-1">'.$version_stable.'</font></td><td rowspan="1" colspan="2"><font size="-1">' . $version_testing .'</font></td>' .$experimental;
380 $ver = explode("-", $version_unstable);
381 if((preg_match("/(.+\..+?)$/", $ver[count($ver) - 1], $toto)) && (count($ver) != 1))
382 {
383 $version_print = preg_replace("/$version_unstable/", "<font color=\"red\">$version_unstable</font>", $version_print);
384 }
385 }else {
386 if(strcmp($version_stable, "/") != 0) {
387 $version_stable = '<font color="#00AADD" size="-1">'.$version_stable.'</font>';
388 }else{
389 $version_stable = '<font size="-1">'.$version_stable.'</font>';
390 }
391 $version_print = '<td>' . $version_stable . '</td><td><font size="-1" color="magenta">'.$version_testing . '</font></td><td><font size="-1">'.$version_unstable.'</font></td>' . $experimental;
392 $ver = explode("-", $version_unstable);
393 if((preg_match("/(.+\..+?)$/", $ver[count($ver) - 1], $toto)) && (count($ver) != 1))
394 {
395 $version_print = preg_replace("/$version_unstable/", "<font color=\"red\">$version_unstable</font>", $version_print);
396 }
397 }
398
399 ?>
400 <tr align="center">
401 <td width="15%">
402 <font size="-1"
403 <?
404 if($uploader == 1) {
405 print ' color="blue"';
406 $uploader = 0;
407 }
408 print "><b>$package</b><a href=\"http://pts.debian.net/".get_rep($package)."/$package.html\">[pts]</a>";
409 ?></font></td>
410 <td>
411 <font size="-1">
412 <?
413 $bugs = "http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=". rawurlencode($package)."&repeatmerged=yes&archive=no&pend-exc=pending-fixed&pend-exc=fixed&pend-exc=done";
414 $bugs_all = "http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=". rawurlencode($package);
415 $bug_count = $bug_list[0] + $bug_list[1] + $bug_list[2] + $bug_list[3];
416 if($bug_count == 0) { ?>
417 <font size="-1">0</font>
418 <? }else{ ?>
419 <a href="<?print $bugs_all?>"><? print $bug_count; ?></a>
420 <? } ?>
421 </font>
422 </td>
423 <td>
424 <?
425 if(!strcmp($bug_list[0], "0")) { ?>
426 <font size="-1">0</font>
427 <? }else{ ?>
428 <font size="-1"><a class="a" href="<? print $bugs; ?>&sev-inc=critical&sev-inc=grave&sev-inc=serious"><? print $bug_list[0]; ?></a></font>
429 <? } ?>
430 </td>
431 <td>
432 <?
433 if(!strcmp($bug_list[1], "0")) { ?>
434 <font size="-1">0</font>
435 <? }else{ ?>
436 <font size="-1"><a class="a" href="<? print $bugs; ?>&sev-inc=important&sev-inc=normal"><? print $bug_list[1]; ?></a></font>
437 <? } ?>
438 </td>
439 <td>
440 <?
441 if(!strcmp($bug_list[2], "0")) { ?>
442 <font size="-1">0</font>
443 <? }else{ ?>
444 <font size="-1"><a class="a" href="<? print $bugs; ?>&sev-inc=minor&sev-inc=wishlist"><? print $bug_list[2]; ?></a></font>
445 <? } ?>
446 </td>
447 <td>
448 <?
449 if(!strcmp($bug_list[3], "0")) { ?>
450 <font size="-1">0</font>
451 <? }else{ ?>
452 <font size="-1"><a class="a" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=<? print rawurlencode($package); ?>&repeatmerged=yes&archive=no&pend-inc=pending-fixed&pend-inc=fixed"><? print $bug_list[3]; ?></a></font>
453 <? } ?>
454 </td>
455 <?
456
457 print $version_print;
458 if(strcmp($security_stable,"-")) {
459 $security_stable = "<font color=\"red\">$security_stable</font>";
460 }
461 if(strcmp($security_testing,"-")) {
462 $security_testing = "<font color=\"red\">$security_stable</font>";
463 }
464 print '<td><font size="-1">'.$security_stable.'</font></td><td><font size="-1">'.$security_testing.'</font></td>';
465 ?>
466 <td width="15%">
467 <font size="-1">
468 <?
469 for ($i = 1; $i <= count($list); $i++) {
470 $url = rawurlencode("${list[$i -1]}");
471 print '<a href="http://packages.debian.org/';
472 print $url;
473 print '">';
474 print $i;
475 print "</a>";
476 if(($i % 3 ) == 0) {
477 print " ";
478 }else{
479 print "&nbsp;";
480 }
481 }
482 ?>
483 </font>
484 </td>
485 <td>
486 <font size="-1">
487 <?
488 if($all == 1) {
489 print "Arch. All";
490 $all = 0;
491 }else{
492 print "<a href=\"$buildd\">Buildd</a>";
493 }
494 ?>
495 </font>
496 </td>
497 <td>
498 <font size="-1">
499 <?
500 print $excuse;
501 ?>
502 </font>
503 </td>
504 <td>
505 <?print $stable_dep?>
506 </td>
507 <td>
508 <?print $testing_dep?>
509 </td>
510 <td>
511 <?print $sid_dep?>
512 </td>
513 <td>
514 <?
515 print "<font size=\"-1\">$section</font>";
516 ?>
517 </td>
518 <td>
519 <?
520 print "<font size=\"-1\">$priority</font>";
521 ?>
522 </td>
523 <td>
524 <font size="-1">
525 <a href="<?print $pool?>">Pool</a>
526 </font>
527 </td>
528 <td>
529 <?
530 print "<font size=\"-1\">$uninstalable_stable</font>";
531 ?>
532 </td>
533 <td>
534 <?
535 print "<font size=\"-1\">$uninstalable_testing</font>";
536 ?>
537 </td>
538 <td>
539 <?
540 print "<font size=\"-1\">$uninstalable_unstable</font>";
541 ?>
542 </td>
543 </tr>
544 <?
545 }
546 ?>
547 </table>
548 </font>
549 <?
550 }
551
552 if($excuse != "") {
553 $char = substr($excuse, 0, 1);
554 if(file_exists("$prefix/excuses/$char/$excuse")) {
555 $fp = fopen("$prefix/excuses/$char/$excuse","r");
556 print fread ($fp, filesize ("$prefix/excuses/$char/$excuse"));
557 fclose($fp);
558 }else{
559 print "<h2>No excuse for $excuse</h2>";
560 }
561 }else if($gpg_key != "") {
562 $contents = file("$prefix/extract");
563
564 $printed = 0;
565 $match = 0;
566
567 $gpg_key = preg_replace ("/0x/i", "", $gpg_key);
568 foreach ($contents as $line) {
569 if(preg_match("/;(.+?);(.*$gpg_key.*);(.+?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*)/i", $line, $pack_array)) {
570 $match += 1;
571 if($printed == 0) {
572 print_header_entries_top($pack_array[2], $pack_array[3]);
573 $printed = 1;
574 }else{
575 print "<hr>";
576 }
577
578 print_header_entries_body($pack_array[1], $pack_array[2], $pack_array[3]);
579 $count = 4;
580 foreach ($branch as $value) {
581 if($pack_array[$count] != "") {
582 print_package_entries($value, $pack_array[$count]);
583 }
584 $count += 1;
585 }
586 }
587 }
588 if($match == 0) {
589 print_notfound($gpg_key);
590 }
591
592 printBackLink();
593 }else if($login != "") {
594 $fp = fopen("$prefix/extract", "r");
595 $contents = fread($fp, filesize ("$prefix/extract"));
596
597 if(! preg_match("/@/i", $login)) {
598 $login .= "@debian.org";
599 }
600
601 if(preg_match("/;$login;(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*)/i", $contents, $pack_array))
602 {
603 print_header_entries_top($pack_array[1], $pack_array[2]);
604 print_header_entries_body($login, $pack_array[1], $pack_array[2]);
605 $count = 3;
606 foreach ($branch as $value) {
607 if($pack_array[$count] != "") {
608 print_package_entries($value, $pack_array[$count]);
609 }
610 $count += 1;
611 }
612 }else{
613 print_notfound($login);
614 }
615 fclose($fp);
616 printBackLink();
617 }else if ($package != "") {
618 $fp = fopen("$prefix/extract", "r");
619 $found = 0;
620 if(preg_match("/\+\+/", $package)) {
621 $package_short = preg_replace("/\+/", "", $package);
622 $regexp="/[ ;]$package_short..\(/";
623 }elseif(preg_match("/\+/", $package)){
624 $package_short = preg_replace("/\+/", "", $package);
625 $regexp="/[ ;]$package_short.\(/";
626 }else{
627 $regexp="/[ ;]$package\(/";
628 }
629 while(!feof($fp)) {
630 $line = fgets($fp, "8192");
631 if(preg_match("$regexp", $line, $results)) {
632 $found = 1;
633 preg_match("/;(.+?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*?);(.*)/i", $line, $pack_array);
634 print_header_entries_top($pack_array[2], $pack_array[3]);
635 print_header_entries_body($pack_array[1], $pack_array[2], $pack_array[3]);
636 $count = 4;
637 foreach ($branch as $value) {
638 if($pack_array[$count] != "") {
639 print_package_entries($value, $pack_array[$count]);
640 }
641 $count += 1;
642 }
643 }
644 }
645 if($found == 0) {
646 print_notfound($package);
647 }
648 fclose($fp);
649 printBackLink();
650 }else{
651 print_form();
652 if($all) {
653 print_all();
654 }else{
655 print_query_all();
656 }
657 }
658
659 $fp = fopen("$prefix/extract.date", "r");
660 $general = fgets($fp, "512");
661 fclose($fp);
662 $fp = fopen("$prefix/bugs.date", "r");
663 $bugs = fgets($fp, "512");
664 fclose($fp);
665 ?>
666 <div align="left">
667 <p class="foot">
668 Last updated:<br>
669 General infos: <? print $general; ?><br>
670 Bugs infos: <? print $bugs; ?>
671 </p>
672 </div>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5