summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dyndns.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-03-16 16:55:38 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-03-16 16:55:38 -0400
commitc89b51109709c2fec78e3a361cabda74f1b347f3 (patch)
tree04b9e973e10e85d1778c61dd4d949c776b7a89a2 /usr/local/www/services_dyndns.php
parent2ff9980b7f0474c7598d7ca56f39c9feaa1af9a9 (diff)
downloadpfsense-c89b51109709c2fec78e3a361cabda74f1b347f3.zip
pfsense-c89b51109709c2fec78e3a361cabda74f1b347f3.tar.gz
Show cached IP address on summary page
Diffstat (limited to 'usr/local/www/services_dyndns.php')
-rwxr-xr-xusr/local/www/services_dyndns.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php
index 2f72871..ef0eff0 100755
--- a/usr/local/www/services_dyndns.php
+++ b/usr/local/www/services_dyndns.php
@@ -76,6 +76,7 @@ include("head.inc");
<td width="5%" class="listhdrr"></td>
<td width="15%" class="listhdrr">Service</td>
<td width="20%" class="listhdrr">Hostname</td>
+ <td width="20%" class="listhdrr">Cached IP</td>
<td width="50%" class="listhdr">Description</td>
<td width="10%" class="list"></td>
</tr>
@@ -103,6 +104,20 @@ include("head.inc");
<?=htmlspecialchars($dyndns['host']);?>
</td>
<td class="listbg">
+ <?php
+ $int = strtolower($if);
+ $filename = "{$g['conf_path']}/dyndns_{$int}dyndns.cache";
+ if(file_exists($filename)) {
+ $cached_ip_s = split(":", file_get_contents($filename));
+ $cached_ip = $cached_ip_s[0];
+
+ echo htmlspecialchars($cached_ip);
+ } else {
+ echo "N/A";
+ }
+ ?>
+ </td>
+ <td class="listbg">
<?=htmlspecialchars($dyndns['descr']);?>&nbsp;
</td>
<td valign="middle" nowrap class="list"> <a href="services_dyndns_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a>
OpenPOWER on IntegriCloud