diff options
-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> |