diff options
author | Ermal <eri@pfsense.org> | 2010-11-19 18:24:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-11-19 18:24:58 +0000 |
commit | 37c8e07d0c25daf6ea603277d21ee65f610dbfae (patch) | |
tree | 528df87a1ad3fe4ec06145985f52482b632721d0 | |
parent | e39243843f16d4c8908bf0726e68e65887774f0d (diff) | |
download | pfsense-37c8e07d0c25daf6ea603277d21ee65f610dbfae.zip pfsense-37c8e07d0c25daf6ea603277d21ee65f610dbfae.tar.gz |
Fix reading the ip from the right file for dyndns.
-rwxr-xr-x | usr/local/www/services_dyndns.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php index c1a25d4..c6939d7 100755 --- a/usr/local/www/services_dyndns.php +++ b/usr/local/www/services_dyndns.php @@ -114,21 +114,21 @@ include("head.inc"); </td> <td class="listlr"> <?php - $types = explode(",", "DNS-O-Matic, DynDNS (dynamic),DynDNS (static),DynDNS (custom),DHS,DyNS,easyDNS,No-IP,ODS.org,ZoneEdit,Loopia,freeDNS, DNSexit, OpenDNS, Namecheap"); - $vals = explode(" ", "dnsomatic dyndns dyndns-static dyndns-custom dhs dyns easydns noip ods zoneedit loopia freedns dnsexit opendns namecheap"); - $j = 0; for ($j = 0; $j < count($vals); $j++) - if ($vals[$j] == $dyndns['type']) { - echo htmlspecialchars($types[$j]); - break; - } - ?> + $types = explode(",", "DNS-O-Matic, DynDNS (dynamic),DynDNS (static),DynDNS (custom),DHS,DyNS,easyDNS,No-IP,ODS.org,ZoneEdit,Loopia,freeDNS, DNSexit, OpenDNS, Namecheap"); + $vals = explode(" ", "dnsomatic dyndns dyndns-static dyndns-custom dhs dyns easydns noip ods zoneedit loopia freedns dnsexit opendns namecheap"); + $j = 0; for ($j = 0; $j < count($vals); $j++) + if ($vals[$j] == $dyndns['type']) { + echo htmlspecialchars($types[$j]); + break; + } + ?> </td> <td class="listr"> <?=htmlspecialchars($dyndns['host']);?> </td> <td class="listlr"> <?php - $filename = "{$g['conf_path']}/dyndns_{$if}{$dyndns['type']}.cache"; + $filename = "{$g['conf_path']}/dyndns_{$if}{$dyndns['type']}" . escapeshellarg($dyndns['host']) . ".cache"; $ipaddr = dyndnsCheckIP($if); if(file_exists($filename)) { $cached_ip_s = split(":", file_get_contents($filename)); |