summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-08-21 19:38:44 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-08-21 19:38:44 +0000
commitd8e8296da0bb2f689b7a36873ee1ba81ae533448 (patch)
tree71b0ff5bb49ae3b98dde0bd1f51fc7916b5ddb7d /usr
parentedc670639a47cf7bf55b4e06b90384625509c5bc (diff)
downloadpfsense-d8e8296da0bb2f689b7a36873ee1ba81ae533448.zip
pfsense-d8e8296da0bb2f689b7a36873ee1ba81ae533448.tar.gz
Only reload webGUI con CERT or KEY changes.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_advanced.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 24e783f..32d5e99 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -687,13 +687,15 @@ include("head.inc");
<?php
-if (($config['system']['webgui']['certificate'] != $oldcert)
- || ($config['system']['webgui']['private-key'] != $oldkey)) {
- ob_flush();
- flush();
- log_error("webConfigurator certificates have changed. Restarting webConfigurator.");
- sleep(1);
- touch("/tmp/restart_webgui");
+if($_POST['cert'] || $_POST['key']) {
+ if (($config['system']['webgui']['certificate'] != $oldcert)
+ || ($config['system']['webgui']['private-key'] != $oldkey)) {
+ ob_flush();
+ flush();
+ log_error("webConfigurator certificates have changed. Restarting webConfigurator.");
+ sleep(1);
+ touch("/tmp/restart_webgui");
+ }
}
?>
OpenPOWER on IntegriCloud