summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dyndns.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-19 18:24:58 +0000
committerErmal <eri@pfsense.org>2010-11-19 18:24:58 +0000
commit37c8e07d0c25daf6ea603277d21ee65f610dbfae (patch)
tree528df87a1ad3fe4ec06145985f52482b632721d0 /usr/local/www/services_dyndns.php
parente39243843f16d4c8908bf0726e68e65887774f0d (diff)
downloadpfsense-37c8e07d0c25daf6ea603277d21ee65f610dbfae.zip
pfsense-37c8e07d0c25daf6ea603277d21ee65f610dbfae.tar.gz
Fix reading the ip from the right file for dyndns.
Diffstat (limited to 'usr/local/www/services_dyndns.php')
-rwxr-xr-xusr/local/www/services_dyndns.php18
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));
OpenPOWER on IntegriCloud