From 013b4695d00a8bced4dff8693b1487bfa9013573 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 27 Mar 2014 10:10:04 -0400 Subject: Handle the reinstallall case with confirmation. Fixes #3548 --- usr/local/www/pkg_mgr_install.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index b942434..9465153 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -65,6 +65,7 @@ if ($_POST) { } } else if ($_GET) { switch ($_GET['mode']) { + case 'reinstallall': case 'showlog': break; case 'installedinfo': @@ -112,8 +113,14 @@ if ($_POST) { } else if (!empty($_GET['mode']) && !empty($_GET['pkg'])) { $pkgname = str_replace(array("<", ">", ";", "&", "'", '"'), "", htmlspecialchars_decode($_GET['pkg'], ENT_QUOTES | ENT_HTML401)); $pkgmode = str_replace(array("<", ">", ";", "&", "'", '"'), "", htmlspecialchars_decode($_GET['mode'], ENT_QUOTES | ENT_HTML401)); + } else if ($_GET['mode'] == 'reinstallall') { + $pkgmode = 'reinstallall'; } switch ($pkgmode) { + case 'reinstallall': + $pkgname = 'All packages'; + $pkgtxt = 'reinstalled'; + break; case 'reinstallxml': case 'reinstallpkg': $pkgtxt = 'reinstalled'; @@ -130,8 +137,8 @@ if ($_POST) { -
Package: will be .
- Please confirm the action on this package.
+
Package: will be .
+ Please confirm the action.
-- cgit v1.1