summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorYehuda Katz <yehuda@ymkatz.net>2012-02-22 20:02:09 -0500
committerYehuda Katz <yehuda@ymkatz.net>2012-02-22 20:02:09 -0500
commitf3b2b2a42c3bcda93f01bdcfc2264df51bb0c7a2 (patch)
tree52f85f9ef19e37126c37cfb7ecb3c3c948826bf9 /usr
parent40ce0d68eda845f7be0070137253c15dcaeffad4 (diff)
downloadpfsense-f3b2b2a42c3bcda93f01bdcfc2264df51bb0c7a2.zip
pfsense-f3b2b2a42c3bcda93f01bdcfc2264df51bb0c7a2.tar.gz
Fixing existing DynDNS force-update feature. Redmine bug #2228
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dyndns.php3
-rw-r--r--usr/local/www/services_dyndns_edit.php12
2 files changed, 5 insertions, 10 deletions
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php
index 9b359f4..950733b 100755
--- a/usr/local/www/services_dyndns.php
+++ b/usr/local/www/services_dyndns.php
@@ -159,7 +159,8 @@ include("head.inc");
<td colspan="3" class="list"><p class="vexpl"><span class="red"><strong>
<?=gettext("Note:");?><br>
</strong></span>
- <?=gettext("IP addresses appearing in green are up to date with Dynamic DNS provider.");?>
+ <?=gettext("IP addresses appearing in green are up to date with Dynamic DNS provider.");?><br>
+ <?=gettext("You can force an update for an IP address on the edit page for that service.");?>
</td>
<td class="list">&nbsp;</td>
</tr>
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index 136d654..f09b9f6 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -104,6 +104,7 @@ if ($_POST) {
$dyndns['enable'] = $_POST['enable'] ? false : true;
$dyndns['interface'] = $_POST['interface'];
$dyndns['descr'] = $_POST['descr'];
+ $dyndns['force'] = isset($_POST['force']);
if($dyndns['username'] == "none")
$dyndns['username'] = "";
@@ -115,15 +116,7 @@ if ($_POST) {
write_config();
- $retval = 0;
-
- conf_mount_rw();
-
- unlink("{$g['conf_path']}/dyndns_{$dyndns['interface']}{$dyndns['type']}{$dyndns['host']}.cache");
-
- $retval = services_dyndns_configure_client($dyndns);
-
- conf_mount_ro();
+ services_dyndns_configure_client($dyndns);
header("Location: services_dyndns.php");
exit;
@@ -237,6 +230,7 @@ include("head.inc");
<a href="services_dyndns.php"><input name="cancel" type="button" class="formbtn" value="<?=gettext("Cancel");?>"></a>
<?php if (isset($id) && $a_dyndns[$id]): ?>
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>">
+ <input name="force" type="submit" class="formbtn" value="<?=gettext("Save & Force Update");?>" onClick="enable_change(true)">
<?php endif; ?>
</td>
</tr>
OpenPOWER on IntegriCloud