summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2011-02-23 22:00:38 +0700
committergnhb <gnoahb@gmail.com>2011-02-23 22:00:38 +0700
commit740f745922549283e29d3d964c7a60266d7dbf0a (patch)
treeba7cf32253cf3370fbc1750fec820c255ab6451f /usr
parentb877803194700f75cb264e7343695acf971fa07e (diff)
downloadpfsense-740f745922549283e29d3d964c7a60266d7dbf0a.zip
pfsense-740f745922549283e29d3d964c7a60266d7dbf0a.tar.gz
Prevent GUI from giving error for freeDNS service since username and password
aren't required. Also add a note for freeDNS users to enter "Authentication Token" in Hostname field. Zero out fake username and password before writing to config so they don't show up in the GUI when you edit the record again.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/services_dyndns_edit.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index 9ff0f22..aa81b45 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -76,6 +76,10 @@ if ($_POST) {
unset($input_errors);
$pconfig = $_POST;
+ if($pconfig['type'] == "freedns") {
+ $_POST['username'] = "free";
+ $_POST['password'] = "dns";
+ }
/* input validation */
$reqdfields = array();
@@ -106,6 +110,11 @@ if ($_POST) {
$dyndns['interface'] = $_POST['interface'];
$dyndns['descr'] = $_POST['descr'];
+ if($dyndns['type'] == "freedns") {
+ $dyndns['username'] = "";
+ $dyndns['password'] = "";
+ }
+
if (isset($id) && $a_dyndns[$id])
$a_dyndns[$id] = $dyndns;
else
@@ -187,6 +196,8 @@ include("head.inc");
<span class="red"><strong><?=gettext("Note:");?><br></strong>
</span>
<?=gettext("Enter the complete host/domain name. example: myhost.dyndns.org");?>
+ <br/>
+ <?=gettext("FreeDNS (freedns.afraid.org): Enter your \"Authentication Token\" provided by FreeDNS.");?>
</span>
</td>
</tr>
OpenPOWER on IntegriCloud