diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2010-06-25 17:16:05 +0200 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2010-07-02 03:19:18 +0200 |
commit | b5bc6ab7421d8a7e88c54441431bad4e2f899e88 (patch) | |
tree | 94080043e13238a3564e52727c6af26d4e7614e5 /web/html/packages.php | |
parent | f08fbbe80eba009c6f42411456479e328c92175b (diff) | |
download | aur-b5bc6ab7421d8a7e88c54441431bad4e2f899e88.tar.gz aur-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.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/web/html/packages.php b/web/html/packages.php index 2553590c..472f6a21 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'])) { |