diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-27 22:10:30 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-27 22:10:30 +0000 |
commit | 62d01225f3527f0a55aa8ba5f48ae098c15f9f6f (patch) | |
tree | 16a186728b1814a77a9c0f0ca41368f8000d9ccd | |
parent | d345bd395e141db53bcf5ebe7d2cf9fb4176f0f7 (diff) | |
download | pfsense-62d01225f3527f0a55aa8ba5f48ae098c15f9f6f.zip pfsense-62d01225f3527f0a55aa8ba5f48ae098c15f9f6f.tar.gz |
update change desc if password changes (but don't log)
-rwxr-xr-x | usr/local/www/system.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 600c9e0..453ea46 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -1,5 +1,6 @@ #!/usr/local/bin/php <?php +/* $Id$ */ /* system.php part of m0n0wall (http://m0n0.ch/wall) @@ -54,6 +55,7 @@ if (!$pconfig['timeservers']) $pconfig['timeservers'] = "pool.ntp.org"; $changedesc = "System: "; +$changecount = 0; function is_timezone($elt) { return !preg_match("/\/$/", $elt); @@ -132,9 +134,11 @@ if ($_POST) { $crypted_pw = crypt($_POST['password'],$salt); fwrite($fd, $crypted_pw); pclose($fd); + update_changedesc("password changed"); } - write_config($changedesc); + if ($changecount > 0) + write_config($changedesc); // restart webgui if proto or port changed if ($restart_webgui) { |