summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_vpn.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-05-26 22:50:36 +0545
committerPhil Davis <phil.davis@inf.org>2015-05-26 22:50:36 +0545
commit4e3b667ceb8818babf58025e15e89f4703d9d606 (patch)
treed81fc8b8e9e14a9eb150910241b8303565b26077 /usr/local/www/diag_logs_vpn.php
parent8882e40f519424186f56663a43756b127d81c85b (diff)
downloadpfsense-4e3b667ceb8818babf58025e15e89f4703d9d606.zip
pfsense-4e3b667ceb8818babf58025e15e89f4703d9d606.tar.gz
Code style diag logs again
while making a fix today I noticed that I had done these early-on and had not tabbed out the HTML nicely...
Diffstat (limited to 'usr/local/www/diag_logs_vpn.php')
-rwxr-xr-xusr/local/www/diag_logs_vpn.php73
1 files changed, 42 insertions, 31 deletions
diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php
index be2de56..d1dc748 100755
--- a/usr/local/www/diag_logs_vpn.php
+++ b/usr/local/www/diag_logs_vpn.php
@@ -126,7 +126,8 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="logs vpn">
- <tr><td class="tabnavtbl">
+ <tr>
+ <td class="tabnavtbl">
<?php
$tab_array = array();
$tab_array[] = array(gettext("System"), false, "diag_logs.php");
@@ -142,8 +143,10 @@ include("head.inc");
$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php");
display_top_tabs($tab_array);
?>
- </td></tr>
- <tr><td class="tabnavtbl">
+ </td>
+ </tr>
+ <tr>
+ <td class="tabnavtbl">
<?php
$tab_array = array();
$tab_array[] = array(gettext("PPTP Logins"),
@@ -166,34 +169,42 @@ include("head.inc");
"/diag_logs_vpn.php?vpntype=l2tp&amp;mode=raw");
display_top_tabs($tab_array);
?>
- </td></tr>
- <tr>
- <td class="tabcont">
- <form action="diag_logs_vpn.php" method="post">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area">
- <tr>
- <td colspan="4" class="listtopic">
- <?php printf(gettext('Last %1$s %2$s VPN log entries'),$nentries,$vpns[$vpntype]);?></td>
- </tr>
- <?php if ($mode != "raw"): ?>
- <tr>
- <td class="listhdrr"><?=gettext("Time");?></td>
- <td class="listhdrr"><?=gettext("Action");?></td>
- <td class="listhdrr"><?=gettext("User");?></td>
- <td class="listhdrr"><?=gettext("IP address");?></td>
- </tr>
- <?php dump_clog_vpn("/var/log/vpn.log", $nentries); ?>
- <?php else:
- dump_clog("/var/log/{$logname}.log", $nentries);
- endif; ?>
- </table>
- <br />
- <input type="hidden" name="vpntype" id="vpntype" value="<?=$vpntype;?>" />
- <input type="hidden" name="mode" id="mode" value="<?=$mode;?>" />
- <input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" />
- </form>
- </td>
- </tr>
+ </td>
+ </tr>
+ <tr>
+ <td class="tabcont">
+ <form action="diag_logs_vpn.php" method="post">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area">
+ <tr>
+ <td colspan="4" class="listtopic">
+ <?php printf(gettext('Last %1$s %2$s VPN log entries'), $nentries, $vpns[$vpntype]);?>
+ </td>
+ </tr>
+ <?php
+ if ($mode != "raw"):
+ ?>
+ <tr>
+ <td class="listhdrr"><?=gettext("Time");?></td>
+ <td class="listhdrr"><?=gettext("Action");?></td>
+ <td class="listhdrr"><?=gettext("User");?></td>
+ <td class="listhdrr"><?=gettext("IP address");?></td>
+ </tr>
+ <?php
+ dump_clog_vpn("/var/log/vpn.log", $nentries);
+ ?>
+ <?php
+ else:
+ dump_clog("/var/log/{$logname}.log", $nentries);
+ endif;
+ ?>
+ </table>
+ <br />
+ <input type="hidden" name="vpntype" id="vpntype" value="<?=$vpntype;?>" />
+ <input type="hidden" name="mode" id="mode" value="<?=$mode;?>" />
+ <input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" />
+ </form>
+ </td>
+ </tr>
</table>
<?php include("fend.inc"); ?>
</body>
OpenPOWER on IntegriCloud