summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/system.php6
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) {
OpenPOWER on IntegriCloud