Revision 62d01225
Added by Bill Marquette about 20 years ago
usr/local/www/system.php | ||
---|---|---|
1 | 1 |
#!/usr/local/bin/php |
2 | 2 |
<?php |
3 |
/* $Id$ */ |
|
3 | 4 |
/* |
4 | 5 |
system.php |
5 | 6 |
part of m0n0wall (http://m0n0.ch/wall) |
... | ... | |
54 | 55 |
$pconfig['timeservers'] = "pool.ntp.org"; |
55 | 56 |
|
56 | 57 |
$changedesc = "System: "; |
58 |
$changecount = 0; |
|
57 | 59 |
|
58 | 60 |
function is_timezone($elt) { |
59 | 61 |
return !preg_match("/\/$/", $elt); |
... | ... | |
132 | 134 |
$crypted_pw = crypt($_POST['password'],$salt); |
133 | 135 |
fwrite($fd, $crypted_pw); |
134 | 136 |
pclose($fd); |
137 |
update_changedesc("password changed"); |
|
135 | 138 |
} |
136 | 139 |
|
137 |
write_config($changedesc); |
|
140 |
if ($changecount > 0) |
|
141 |
write_config($changedesc); |
|
138 | 142 |
|
139 | 143 |
// restart webgui if proto or port changed |
140 | 144 |
if ($restart_webgui) { |
Also available in: Unified diff
update change desc if password changes (but don't log)