diff options
author | jim-p <jimp@pfsense.org> | 2014-03-27 10:16:02 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-03-27 10:16:02 -0400 |
commit | 544a89c5d12228374b873fda0096f2b4f01f3503 (patch) | |
tree | d7307b6eb7b60d12131c921c56ebadfb792158d4 | |
parent | 4bdf145cd57fef50dbaf23aaeca344a74c49aabb (diff) | |
download | pfsense-544a89c5d12228374b873fda0096f2b4f01f3503.zip pfsense-544a89c5d12228374b873fda0096f2b4f01f3503.tar.gz |
Handle the reinstallall case with confirmation. Fixes #3548
-rw-r--r-- | usr/local/www/pkg_mgr_install.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 133b9ed..a157734 100644 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -64,6 +64,7 @@ if ($_POST) { } } else if ($_GET) { switch ($_GET['mode']) { + case 'reinstallall': case 'showlog': break; case 'installedinfo': @@ -109,8 +110,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'; @@ -127,8 +134,8 @@ if ($_POST) { <td class="tabcont" align="center"> <table style="height:15;colspacing:0" width="420" border="0" cellpadding="0" cellspacing="0" summary="images"> <tr> - <td class="tabcont" align="center">Package:<b><?=$pkgname;?></b> will be <?=$pkgtxt;?>.<br /> - Please confirm the action on this package.<br /> + <td class="tabcont" align="center">Package: <b><?=$pkgname;?></b> will be <?=$pkgtxt;?>.<br/> + Please confirm the action.<br/> </td> <td class="tabcont" align="center"> <input type="hidden" name="id" value="<?=$pkgname;?>" /> |