[Dehs-devel] r61 - trunk/www

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Sun Dec 2 04:26:48 UTC 2007


Author: atomo64-guest
Date: 2007-12-02 04:26:47 +0000 (Sun, 02 Dec 2007)
New Revision: 61

Modified:
   trunk/www/maintainer.php
Log:
Added some links to p.d.o and b.d.o

Modified: trunk/www/maintainer.php
===================================================================
--- trunk/www/maintainer.php	2007-12-02 02:31:24 UTC (rev 60)
+++ trunk/www/maintainer.php	2007-12-02 04:26:47 UTC (rev 61)
@@ -77,15 +77,15 @@
 				<b>Total packages:</b> $totpkgs[0] <b>Percentage: </b> " . number_format ( $totrs/$totpkgs[0] * 100, 2, ",",".") . "%<br>" ;
 				break;
 			case "no_upstream":
-				print "<b>Total Package without a checkable upstream</b>: $totrs
+				print "<b>Total packages without a checkable upstream</b>: $totrs
 				<b>Total packages:</b> $totpkgs[0] <b>Percentace: </b> " . number_format ( $totrs/$totpkgs[0] * 100, 2, ",",".") . "%<br>" ;
 				break;
 			case "no_updated":
-				print "<b>Total Packages need Update</b>: $totrs
+				print "<b>Total packages with newer upstream release</b>: $totrs
 				<b>Total packages:</b> $totpkgs[0] <b>Share: </b> " . number_format ( $totrs/$totpkgs[0] * 100, 2, ",",".") . "%<br>" ;
 				break;
 			case "ok":
-				print "<b>Total Packages updated</b>: $totrs
+				print "<b>Total packages up-to-date</b>: $totrs
 				<b>Total packages:</b> $totpkgs[0] <b>Percentage: </b> " . number_format ( $totrs/$totpkgs[0] * 100, 2, ",",".") . "%<br>" ;
 				break;
 			} ?>
@@ -124,9 +124,9 @@
 			else print "None";?></li>
 <? } ?>
 <li><b>Debian Version: </b><? print $res_array["version"]; ?></li>
-<li><b>Tot Upstream Bugs: </b><? print number_format($res_array["tot_up_error"] ,0); ?></li>
+<li><b>Tot Upstream Bugs: </b><? if ($res_array["tot_up_error"]) echo "<a href='http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=".urlencode($res_array["name"]).";dist=".urlencode($res_array["dist"]).";tag=upstream'>"; print number_format($res_array["tot_up_error"] ,0); if ($res_array["tot_up_error"]) echo '</a>'; ?></li>
 <li><b>Avg days opened: </b><? print number_format($res_array["tot_avg_error_date"],0); ?></li>
-<li><b>Distrib:</b><? print $res_array["dist"]; ?></li>
+<li><b>Distrib:</b><? printf('<a href="http://packages.debian.org/%1$s/%2$s">%1$s</a>',$res_array["dist"],$res_array["name"]); ?></li>
 <? if ($key=="no_watch") { ?>
 <li><b>Watch Wiz:</b>
 <?
@@ -141,8 +141,8 @@
 <? if ($key!="no_watch") { ?>
 <li><b>Watch: </b><a href="<? print "wwiz_detail.php?id=$res_array[id]&amp;type=watch";?>">View</a></li>
 <?}?>
-<li><b>Uscan Errors processing Watch File: </b><? $res_array["watch_warn"] ? print "<br>" . nl2br($res_array["watch_warn"]) : print "Nothing"; ?></li>
-<li><b>Copyright: </b><? print "<a href=" . changelog($res_array) . ">" . "View</a>"; ?></li>
+<li><b>Uscan Errors processing Watch File: </b><? $res_array["watch_warn"] ? print "<br>" . nl2br(htmlentities($res_array["watch_warn"])) : print "No errors"; ?></li>
+<li><b>Copyright: </b><? print "<a href=" . htmlentities(changelog($res_array)) . ">" . "View</a>"; ?></li>
 </ul>
 </ul>
 <?
@@ -156,8 +156,8 @@
  }
 }
 	pg_close($db);
-?>
-<? function changelog($res_array) {
+        
+function changelog($res_array) {
 		if (substr($res_array["name"],0,3)=='lib') $initial=substr($res_array["name"],0,4);
 		else $initial=substr($res_array["name"],0,1);
 		$url="http://packages.debian.org/changelogs/pool/" .




More information about the Dehs-devel mailing list