diff options
author | Phil Davis <phil.davis@inf.org> | 2016-12-06 09:02:53 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-12-06 09:02:53 +0545 |
commit | be17e3720e1b89540faccc1befd16f7e2dc6bcce (patch) | |
tree | caefd8884bf5f3f76a232b1f2548788e6c49363d /src/usr/local/www/widgets | |
parent | 74213edf66d656b23724f3e779409533d8a77f59 (diff) | |
download | pfsense-be17e3720e1b89540faccc1befd16f7e2dc6bcce.zip pfsense-be17e3720e1b89540faccc1befd16f7e2dc6bcce.tar.gz |
Backport Cloudflare and Gratis plus passwords in base64 DynDNS changes
Note: corresponding change to upgrade_config.inc to come in master to
correctly implement the upgrade_155_to_156 code, that is master only and
will become upgrade_158_to_159
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php index cbbb005..099b03c 100644 --- a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php +++ b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php @@ -53,6 +53,7 @@ */ $nocsrf = true; +global $dyndns_split_domain_types; require_once("guiconfig.inc"); require_once("pfsense-utils.inc"); @@ -83,7 +84,7 @@ if ($_REQUEST['getdyndnsstatus']) { echo "|"; } $cache_sep = ":"; - if ($dyndns['type'] == "namecheap") { + if (in_array($dyndns['type'], $dyndns_split_domain_types)) { $hostname = $dyndns['host'] . "." . $dyndns['domainname']; } elseif (empty($dyndns['type'])) { /* RFC2136, add some dummy values */ @@ -144,7 +145,7 @@ if ($_REQUEST['getdyndnsstatus']) { <tbody> <?php $dyndnsid = 0; foreach ($all_dyndns as $dyndns): - if ($dyndns['type'] == "namecheap") { + if (in_array($dyndns['type'], $dyndns_split_domain_types)) { $hostname = $dyndns['host'] . "." . $dyndns['domainname']; } elseif (empty($dyndns['type'])) { /* RFC2136, add some dummy values */ |