diff options
author | jim-p <jimp@pfsense.org> | 2010-05-12 15:07:05 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-05-12 15:07:05 -0400 |
commit | 362b81478d2dba5e87f2842123e425ee3675a70a (patch) | |
tree | f68c2978b1c1aa8ee833440ba545f4345d5ebdb6 /etc | |
parent | 98c3eaa888b6a2d6022b14c7c8f2ef4704cf7ec6 (diff) | |
download | pfsense-362b81478d2dba5e87f2842123e425ee3675a70a.zip pfsense-362b81478d2dba5e87f2842123e425ee3675a70a.tar.gz |
Include username of person making the change in config change description, and in the config itself.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.lib.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc index e0f63f6..8f67f72 100644 --- a/etc/inc/config.lib.inc +++ b/etc/inc/config.lib.inc @@ -469,9 +469,10 @@ function write_config($desc="Unknown", $backup = true) { /* Log the running script so it's not entirely unlogged what changed */ if ($desc == "Unknown") - $desc = "{$_SERVER['SCRIPT_NAME']} made unknown change"; + $desc = "{$_SESSION['Username']}: {$_SERVER['SCRIPT_NAME']} made unknown change"; $config['revision']['description'] = $desc; + $config['revision']['username'] = $_SESSION["Username"]; $lockkey = lock('config'); |