summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2010-06-25 17:16:05 +0200
committerLoui Chang <louipc.ist@gmail.com>2010-07-01 21:19:18 -0400
commitb5bc6ab7421d8a7e88c54441431bad4e2f899e88 (patch)
tree94080043e13238a3564e52727c6af26d4e7614e5 /web/html/packages.php
parentf08fbbe80eba009c6f42411456479e328c92175b (diff)
downloadaurweb-b5bc6ab7421d8a7e88c54441431bad4e2f899e88.tar.xz
Confirmation when deleting packages
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index 2553590..472f6a2 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -46,8 +46,13 @@ if ($_POST['action'] == "do_Flag" || isset($_POST['do_Flag'])) {
} elseif ($_POST['action'] == "do_UnVote" || isset($_POST['do_UnVote'])) {
$output = pkg_vote($atype, $ids, False);
} elseif ($_POST['action'] == "do_Delete" || isset($_POST['do_Delete'])) {
- $output = pkg_delete($atype, $ids);
- unset($_GET['ID']);
+ if (isset($_POST['confirm_Delete'])) {
+ $output = pkg_delete($atype, $ids);
+ unset($_GET['ID']);
+ }
+ else {
+ $output = __("The selected packages have not been deleted, check the confirmation checkbox.");
+ }
} elseif ($_POST['action'] == "do_Notify" || isset($_POST['do_Notify'])) {
$output = pkg_notify($atype, $ids);
} elseif ($_POST['action'] == "do_UnNotify" || isset($_POST['do_UnNotify'])) {