diff options
author | eliott <eliott@cactuswax.net> | 2007-11-17 09:01:58 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-20 07:21:18 +0100 |
commit | a9837329d697a9e18401309a1496cc3b5015bc6a (patch) | |
tree | 30bd36b85241d923958b242839de0f8202856042 /web/html/packages.php | |
parent | 6dbe12264ac0998ac4b69a507c0b7c1b55c03c1f (diff) | |
download | aur-a9837329d697a9e18401309a1496cc3b5015bc6a.tar.gz aur-a9837329d697a9e18401309a1496cc3b5015bc6a.tar.xz |
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.
Diffstat (limited to 'web/html/packages.php')
-rw-r--r-- | web/html/packages.php | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/web/html/packages.php b/web/html/packages.php index 2ae3bf00..95b59798 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -491,55 +491,6 @@ if (isset($_REQUEST["do_Flag"])) { # FIXME: If someone hits the detail page's vote button, this link dies pkgsearch_results_link(); - -} elseif (isset($_REQUEST["do_FlagSafe"])) { - if (!$atype) { - print __("You must be logged in before you can flag packages."); - print "<br />\n"; - } else { - if (!empty($ids) && $atype == "Trusted User") { - $dbh = db_connect(); - # There currently shouldn't be multiple requests here, but the format in which - # it's sent requires this - while (list($pid, $v) = each($ids)) { - $q = "UPDATE Packages SET Safe = 1, VerifiedBy = ".uid_from_sid($_COOKIE["AURSID"])." WHERE ID = ".$pid; - db_query($q, $dbh); - print '<p>'; - print __("The selected packages have been flagged safe."); - print '<br /></p>'; - pkgdetails_link($pid); - } - } else { - print '<p>'; - print __("Couldn't flag package safe."); - print '<br /></p>'; - } - } - -} elseif (isset($_REQUEST["do_UnFlagSafe"])) { - if (!$atype) { - print __("You must be logged in before you can unflag packages."); - print "<br />\n"; - } else { - if (!empty($ids) && $atype == "Trusted User") { - $dbh = db_connect(); - # There currently shouldn't be multiple requests here, but the format in which - # it's sent requires this - while (list($pid, $v) = each($ids)) { - $q = "UPDATE Packages SET Safe = 0 WHERE ID = ".$pid; - db_query($q, $dbh); - print '<p>'; - print __("The selected packages have been unflagged safe."); - print '<br /></p>'; - pkgdetails_link($pid); - } - } else { - print '<p>'; - print __("Couldn't unflag package safe."); - print '<br /></p>'; - } - } - } elseif (isset($_REQUEST["do_Notify"])) { # I realize that the implementation here seems a bit convoluted, but we want to # ensure that everything happens as it should, even if someone called this page |