From 6b7e26a2d19c53438a9594ee3068f1afcdb1ee0d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 31 Aug 2015 18:18:24 +0200 Subject: Move package base flagging to a separate form Show a separate confirmation page when flagging a package out-of-date. Implements FS#44967. Signed-off-by: Lukas Fleischer --- web/html/index.php | 4 ++-- web/html/pkgflag.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 web/html/pkgflag.php (limited to 'web/html') diff --git a/web/html/index.php b/web/html/index.php index 7068d76..ec99bb7 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -68,8 +68,8 @@ if (!empty($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { $_POST['do_UnNotify'] = __('UnNotify'); break; case "flag": - $_POST['do_Flag'] = __('Flag'); - break; + include('pkgflag.php'); + return; case "unflag": $_POST['do_UnFlag'] = __('UnFlag'); break; diff --git a/web/html/pkgflag.php b/web/html/pkgflag.php new file mode 100644 index 0000000..9d86909 --- /dev/null +++ b/web/html/pkgflag.php @@ -0,0 +1,44 @@ + +
+

+

+ ', htmlspecialchars($pkgbase_name), ''); ?> +

+
    + +
  • + +
+

+ ', ''); ?> +

+
+
+ + + +

" />

+
+
+
+ +