summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-03-27 10:10:04 -0400
committerjim-p <jimp@pfsense.org>2014-03-27 10:10:04 -0400
commit013b4695d00a8bced4dff8693b1487bfa9013573 (patch)
tree26fd546dc6a8e47dff3f5d5bf57188c6d424fb9b
parentffe35f4c96772abe2047f07161066bfdf9e07ca7 (diff)
downloadpfsense-013b4695d00a8bced4dff8693b1487bfa9013573.zip
pfsense-013b4695d00a8bced4dff8693b1487bfa9013573.tar.gz
Handle the reinstallall case with confirmation. Fixes #3548
-rwxr-xr-xusr/local/www/pkg_mgr_install.php11
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 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) {
<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;?>" />
OpenPOWER on IntegriCloud