diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 40d630b..4c049d2 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -442,4 +442,19 @@ function gentitle($pgname) { return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pgname; } +/* Check if variable has changed, update and log if it has + * varname = variable name in plain text + * orig = original value + * new = new value + */ +function updatechanged($varname, $orig, $new) { + global $changedesc; + + if ($orig != $new) { + $changedesc .= " {$varname}: \"{$orig}\" -> \"{$new}\""; + $orig = $new; + } +} + + ?> |