diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-01 01:32:05 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-01 01:32:05 +0000 |
commit | baf888d1a0d6a5d234b42244566eff3103432277 (patch) | |
tree | d669e903dcfd4ae6572d5240136a686f296fd479 | |
parent | c6279195d6c740e1819ea65d432c66b92100783e (diff) | |
download | pfsense-baf888d1a0d6a5d234b42244566eff3103432277.zip pfsense-baf888d1a0d6a5d234b42244566eff3103432277.tar.gz |
Tighten up column sizes. Do not show a port : seperator if the entry does not contain a port.
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index f171877..8e10a5c 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -120,7 +120,10 @@ function conv_clog($logfile, $tail) { function convert_port_period_to_colon($addr) { $addr_split = split("\.", $addr); - $newvar = $addr_split[0] . "." . $addr_split[1] . "." . $addr_split[2] . "." . $addr_split[3] . ":" . $addr_split[4]; + if($addr_split[4] == "") + $newvar = $addr_split[0] . "." . $addr_split[1] . "." . $addr_split[2] . "." . $addr_split[3]; + else + $newvar = $addr_split[0] . "." . $addr_split[1] . "." . $addr_split[2] . "." . $addr_split[3] . ":" . $addr_split[4]; return $newvar; } @@ -166,11 +169,11 @@ function format_ipf_ip($ipfip) { </tr> <tr> <td width="10%" class="listhdrr">Act</td> - <td width="20%" class="listhdrr">Time</td> - <td width="10%" class="listhdrr">If</td> - <td width="20%" class="listhdrr">Source</td> - <td width="20%" class="listhdrr">Destination</td> - <td width="10%" class="listhdrr">Proto</td> + <td width="10%" class="listhdrr">Time</td> + <td width="15%" class="listhdrr">If</td> + <td width="25%" class="listhdrr">Source</td> + <td width="25%" class="listhdrr">Destination</td> + <td width="15%" class="listhdrr">Proto</td> </tr><?php foreach ($filterlog as $filterent): ?> <tr> <td class="listlr" nowrap> |