From b5bc6ab7421d8a7e88c54441431bad4e2f899e88 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 25 Jun 2010 17:16:05 +0200 Subject: Confirmation when deleting packages Signed-off-by: Loui Chang --- web/html/packages.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'web/html/packages.php') 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'])) { -- cgit v1.2.3-70-g09d2