mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add reason to write_config() calls
This commit is contained in:
parent
ca9a16216b
commit
830cafe845
@ -45,7 +45,7 @@ if ($_POST['act'] == "del") {
|
||||
@unlink("{$g['conf_path']}/dyndns_{$conf['interface']}{$conf['type']}" . escapeshellarg($hostname) . "{$conf['id']}.cache");
|
||||
unset($a_dyndns[$_POST['id']]);
|
||||
|
||||
write_config();
|
||||
write_config(gettext("Dynamic DNS client deleted."));
|
||||
services_dyndns_configure();
|
||||
|
||||
header("Location: services_dyndns.php");
|
||||
@ -54,10 +54,12 @@ if ($_POST['act'] == "del") {
|
||||
if ($a_dyndns[$_POST['id']]) {
|
||||
if (isset($a_dyndns[$_POST['id']]['enable'])) {
|
||||
unset($a_dyndns[$_POST['id']]['enable']);
|
||||
$wc_msg = gettext('Dynamic DNS client disabled.');
|
||||
} else {
|
||||
$a_dyndns[$_POST['id']]['enable'] = true;
|
||||
$wc_msg = gettext('Dynamic DNS client enabled.');
|
||||
}
|
||||
write_config();
|
||||
write_config($wc_msg);
|
||||
services_dyndns_configure();
|
||||
|
||||
header("Location: services_dyndns.php");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user