diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-03-16 17:31:22 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-03-16 17:31:22 -0400 |
commit | 9abce23013d15faf2d4544b50035274c935ff07a (patch) | |
tree | 44f4aa17c9b7760eef3d25196df867ecb2cf7e2f /usr/local/www/services_dyndns.php | |
parent | c89b51109709c2fec78e3a361cabda74f1b347f3 (diff) | |
download | pfsense-9abce23013d15faf2d4544b50035274c935ff07a.zip pfsense-9abce23013d15faf2d4544b50035274c935ff07a.tar.gz |
Correct colspan, show green cached ip when correct, red when not correct.
Diffstat (limited to 'usr/local/www/services_dyndns.php')
-rwxr-xr-x | usr/local/www/services_dyndns.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php index ef0eff0..7e44636 100755 --- a/usr/local/www/services_dyndns.php +++ b/usr/local/www/services_dyndns.php @@ -103,15 +103,21 @@ include("head.inc"); <td class="listr"> <?=htmlspecialchars($dyndns['host']);?> </td> - <td class="listbg"> + <td class="listlr"> <?php $int = strtolower($if); + $real_int = filter_translate_type_to_real_interface($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]; - + $int_ip = find_interface_ip($real_int); + if($int_ip <> $cached_ip) + echo "<font color='red'>"; + else + echo "<font color='green'>"; echo htmlspecialchars($cached_ip); + echo "</font>"; } else { echo "N/A"; } @@ -125,7 +131,7 @@ include("head.inc"); </tr> <?php $i++; endforeach; ?> <tr> - <td class="list" colspan="4"></td> + <td class="list" colspan="5"></td> <td class="list"> <a href="services_dyndns_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td> </tr> <tr> |