From a9837329d697a9e18401309a1496cc3b5015bc6a Mon Sep 17 00:00:00 2001 From: eliott Date: Sat, 17 Nov 2007 00:01:58 -0800 Subject: Hand diff of simo's patch to remove flag safe functionality. Simo's original commit text: The idea of safe flagging is unclear, poorly named, misunderstood, and not even used. At the time this patch was created, less than a third of the packages in unsupported were flagged safe, and less than a tenth of users knew how to interpret it. The safe flag has been replaced by a disclaimer on the main page. --- web/html/index.php | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) (limited to 'web/html/index.php') diff --git a/web/html/index.php b/web/html/index.php index b379d4d..854c32c 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -210,11 +210,6 @@ $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]; - # Added the user statistcs. # Added by: dsa $user = username_from_sid($_COOKIE["AURSID"]); @@ -270,30 +265,6 @@ if (!empty($user)) { print ""; print "$flagged_outdated"; print ""; - - # Number of safe packages - print ""; - print ""; - if ($atype == 'Trusted User' || $atype == 'Developer') { - $q = "SELECT count(*) FROM Packages,Users WHERE Packages.Safe = 1 AND Packages.VerifiedBy = Users.ID AND Users.Username='".mysql_real_escape_string($user)."'"; - $result = db_query($q, $dbh); - $row = mysql_fetch_row($result); - $flagged_safe = $row[0]; - - print "".__("Flagged as safe by me").""; - } - else - { - $q = "SELECT count(*) FROM Packages,Users WHERE Packages.Safe = 1 AND Packages.MaintainerUID = Users.ID AND Users.Username='".mysql_real_escape_string($user)."'"; - $result = db_query($q, $dbh); - $row = mysql_fetch_row($result); - $flagged_safe = $row[0]; - - print "".__("Flagged as safe").""; - } - print ""; - print "$flagged_safe"; - print ""; print "
"; } @@ -313,13 +284,6 @@ print ""; print "$unsupported_count"; print ""; -print ""; -print ""; -print "".__("Packages in unsupported and flagged as safe").""; -print ""; -print "$safe_count"; -print ""; - print ""; print ""; print "".__("Packages in [community]").""; @@ -356,6 +320,7 @@ print "\n"; print "\n"; echo "\n"; # End Table 1 +echo "".__("DISCLAIMER: Unsupported PKGBUILDs are user produced content, by downloading them you agree to do so at your own risk.").""; echo " "; echo ""; html_footer(AUR_VERSION); -- cgit v1.2.3-70-g09d2