summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-27 19:32:08 +0000
committerBill Marquette <billm@pfsense.org>2005-03-27 19:32:08 +0000
commit417c60420f73b84cc6ffec7400d1242965d637c2 (patch)
tree44224e01cba148b1849de7e44c0958523df1445a /usr/local
parent4a97d2571c07efd2934fdd8a015f0fc8f779da65 (diff)
downloadpfsense-417c60420f73b84cc6ffec7400d1242965d637c2.zip
pfsense-417c60420f73b84cc6ffec7400d1242965d637c2.tar.gz
Commit description work done so far
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/system.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php
index b30f207..185313b 100755
--- a/usr/local/www/system.php
+++ b/usr/local/www/system.php
@@ -53,6 +53,8 @@ if (!$pconfig['timezone'])
if (!$pconfig['timeservers'])
$pconfig['timeservers'] = "pool.ntp.org";
+$changedesc = "System: ";
+
function is_timezone($elt) {
return !preg_match("/\/$/", $elt);
}
@@ -103,8 +105,14 @@ if ($_POST) {
}
if (!$input_errors) {
- $config['system']['hostname'] = strtolower($_POST['hostname']);
- $config['system']['domain'] = strtolower($_POST['domain']);
+ if ($config['system']['hostname'] != strtolower($_POST['hostname'])) {
+ $changedesc .= " changed hostname: \"{$config['system']['hostname']}\" -> \"" . strtolower($_POST['hostname']) . "\"";
+ $config['system']['hostname'] = strtolower($_POST['hostname']);
+ }
+ if ($config['system']['domain'] != strtolower($_POST['domain'])) {
+ $changedesc .= " changed domain: \"{$config['system']['domain']}\" -> \"" . strtolower($_POST['domain']) . "\"";
+ $config['system']['domain'] = strtolower($_POST['domain']);
+ }
$oldwebguiproto = $config['system']['webgui']['protocol'];
$config['system']['username'] = $_POST['username'];
$config['system']['webgui']['protocol'] = $pconfig['webguiproto'];
@@ -132,7 +140,7 @@ if ($_POST) {
pclose($fd);
}
- write_config();
+ write_config($changedesc);
// restart webgui if proto or port changed
if (($oldwebguiproto != $config['system']['webgui']['protocol']) ||
OpenPOWER on IntegriCloud