summaryrefslogtreecommitdiffstats
path: root/web/html/index.php
diff options
context:
space:
mode:
authorswiergot <swiergot>2005-09-02 16:25:59 +0000
committerswiergot <swiergot>2005-09-02 16:25:59 +0000
commitcb63efbfc57bd8c85b76176a6ebcbafd9bc013d5 (patch)
tree4aea272174b89166927b7e3c98ceddd3419122c5 /web/html/index.php
parentd55ee42f8590755adc9a653e2fc55308e30d1a37 (diff)
downloadaurweb-cb63efbfc57bd8c85b76176a6ebcbafd9bc013d5.tar.xz
added safe packages count in the statistics frame
Diffstat (limited to 'web/html/index.php')
-rw-r--r--web/html/index.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/html/index.php b/web/html/index.php
index 1d5428f..01c7b2d 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -209,6 +209,11 @@ $result = db_query($q, $dbh);
$row = mysql_fetch_row($result);
$update_count = $row[0];
+$q = "SELECT count(*) FROM Packages,PackageLocations WHERE Packages.LocationID = PackageLocations.ID AND PackageLocations.Location = 'unsupported' AND Packages.Safe = 1";
+$result = db_query($q, $dbh);
+$row = mysql_fetch_row($result);
+$safe_count = $row[0];
+
print "<table class='boxSoft'>";
print "<tr>";
@@ -226,6 +231,13 @@ print "</tr>";
print "<tr>";
print "<td class='boxSoft'>";
+print "<span class='f4'>".__("Packages in unsupported and flagged as safe")."</span>";
+print "</td>";
+print "<td class='boxSoft'><span class='f4'>$safe_count</span></td>";
+print "</tr>";
+
+print "<tr>";
+print "<td class='boxSoft'>";
print "<span class='f4'>".__("Packages in [community]")."</span>";
print "</td>";
print "<td class='boxSoft'><span class='f4'>$community_count</span></td>";