summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_advanced_admin.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-16 13:05:25 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-16 13:06:24 -0500
commitcfc061cf6be1da0f9052a3637e84cc21cb5d1c4b (patch)
tree61d1c7195a2c0e708cfc899631da1248966504c8 /src/usr/local/www/system_advanced_admin.php
parent47220a8c5d99394f7bef9b0d0f77767022cc4bf3 (diff)
downloadpfsense-cfc061cf6be1da0f9052a3637e84cc21cb5d1c4b.zip
pfsense-cfc061cf6be1da0f9052a3637e84cc21cb5d1c4b.tar.gz
Webgui restarted only if webgui-redirect is changed (Was causing it to always reset)
Diffstat (limited to 'src/usr/local/www/system_advanced_admin.php')
-rw-r--r--src/usr/local/www/system_advanced_admin.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/usr/local/www/system_advanced_admin.php b/src/usr/local/www/system_advanced_admin.php
index 2a74f15..acedfcf 100644
--- a/src/usr/local/www/system_advanced_admin.php
+++ b/src/usr/local/www/system_advanced_admin.php
@@ -151,12 +151,15 @@ if ($_POST) {
if (update_if_changed("webgui protocol", $config['system']['webgui']['protocol'], $_POST['webguiproto'])) {
$restart_webgui = true;
}
+
if (update_if_changed("webgui port", $config['system']['webgui']['port'], $_POST['webguiport'])) {
$restart_webgui = true;
}
+
if (update_if_changed("webgui certificate", $config['system']['webgui']['ssl-certref'], $_POST['ssl-certref'])) {
$restart_webgui = true;
}
+
if (update_if_changed("webgui max processes", $config['system']['webgui']['max_procs'], $_POST['max_procs'])) {
$restart_webgui = true;
}
@@ -167,13 +170,21 @@ if ($_POST) {
unset($config['system']['webgui']['webguicss']);
}
+ // Restart the webgui only if this actually changed
if ($_POST['webgui-redirect'] == "yes") {
+ if ($config['system']['webgui']['disablehttpredirect'] != true) {
+ $restart_webgui = true;
+ }
+
$config['system']['webgui']['disablehttpredirect'] = true;
- $restart_webgui = true;
} else {
+ if ($config['system']['webgui']['disablehttpredirect'] == true) {
+ $restart_webgui = true;
+ }
+
unset($config['system']['webgui']['disablehttpredirect']);
- $restart_webgui = true;
}
+
if ($_POST['webgui-login-messages'] == "yes") {
$config['system']['webgui']['quietlogin'] = true;
} else {
OpenPOWER on IntegriCloud