From a9404381eb0ec87ffa4c02c8e3902eb9697083f0 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 1 Jul 2011 16:46:09 -0400 Subject: If available, also track the IP used by a user making a config change. --- etc/inc/config.lib.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc index 575a661..ecb2ca1 100644 --- a/etc/inc/config.lib.inc +++ b/etc/inc/config.lib.inc @@ -495,6 +495,8 @@ function write_config($desc="Unknown", $backup = true) { */ $username = empty($_SESSION["Username"]) ? "(system)" : $_SESSION['Username']; + if ($_SERVER['REMOTE_ADDR']) + $username .= '@' . $_SERVER['REMOTE_ADDR']; if($backup) backup_config(); -- cgit v1.1