diff options
author | Renato Botelho <renato@netgate.com> | 2017-03-07 08:27:40 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-03-07 08:27:40 -0300 |
commit | b268e2f4d9bd0dd19a5e61234c914bdd7703cfa7 (patch) | |
tree | c2f40b4e8e55606f770365f2cb6e70a5134453ec | |
parent | 9460a58879d870c70ce618e748b83f856c31449b (diff) | |
parent | 8901d6e7b3fd0ded2b65dcc0fa649c8fb665ef79 (diff) | |
download | pfsense-b268e2f4d9bd0dd19a5e61234c914bdd7703cfa7.zip pfsense-b268e2f4d9bd0dd19a5e61234c914bdd7703cfa7.tar.gz |
Merge pull request #3623 from doktornotor/patch-24
-rw-r--r-- | src/usr/local/www/services_dyndns.php | 6 | ||||
-rw-r--r-- | src/usr/local/www/services_dyndns_edit.php | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/www/services_dyndns.php b/src/usr/local/www/services_dyndns.php index cf4f471..d941732 100644 --- a/src/usr/local/www/services_dyndns.php +++ b/src/usr/local/www/services_dyndns.php @@ -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"); diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php index 07f1636..083fce9 100644 --- a/src/usr/local/www/services_dyndns_edit.php +++ b/src/usr/local/www/services_dyndns_edit.php @@ -192,7 +192,7 @@ if ($_POST['save'] || $_POST['force']) { $a_dyndns[$i]['id'] = $i; } - write_config(); + write_config(gettext("Dynamic DNS client configured.")); services_dyndns_configure_client($dyndns); |