diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-03-16 16:55:38 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-03-16 16:55:38 -0400 |
commit | c89b51109709c2fec78e3a361cabda74f1b347f3 (patch) | |
tree | 04b9e973e10e85d1778c61dd4d949c776b7a89a2 /usr/local/www | |
parent | 2ff9980b7f0474c7598d7ca56f39c9feaa1af9a9 (diff) | |
download | pfsense-c89b51109709c2fec78e3a361cabda74f1b347f3.zip pfsense-c89b51109709c2fec78e3a361cabda74f1b347f3.tar.gz |
Show cached IP address on summary page
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/services_dyndns.php | 15 |
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']);?> </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> |