Commit c806b622 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) style cleanup diag_logs_routing.php

parent 452a6010
......@@ -39,7 +39,7 @@ if (isset($config['syslog']['nentries'])) {
$nentries = $config['syslog']['nentries'];
}
if ($_POST['clear']) {
if (!empty($_POST['clear'])) {
clear_clog($routing_logfile);
}
......@@ -47,48 +47,41 @@ if (isset($_POST['filtertext'])) {
$filtertext = htmlspecialchars($_POST['filtertext']);
}
$pgtitle = array(gettext('System'), gettext('Log Files'), gettext('Routing'));
$shortcut_section = "routing";
include("head.inc");
?>
<body>
<?php include("fbegin.inc"); ?>
<section class="page-content-main">
<div class="container-fluid">
<div class="row">
<?php if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?>
<section class="col-xs-12">
<div class="tab-content content-box col-xs-12">
<div class="table-responsive">
<table class="table table-striped table-sort">
<tr><td colspan="2">
<tr>
<td colspan="2">
<form id="clearform" name="clearform" action="diag_logs_routing.php" method="post" class="__mt">
<input id="filtertext" name="filtertext" value="<?=$filtertext;?>"/>
<input id="filtersubmit" name="filtersubmit" type="submit" class="btn btn-primary" value="<?=gettext("Filter");?>" />
</form>
</td></tr>
</td>
</tr>
<?php dump_clog($routing_logfile, $nentries, $filtertext); ?>
<tr><td colspan="2">
<tr>
<td colspan="2">
<form action="diag_logs_routing.php" method="post">
<input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" />
</form>
</td></tr>
</td>
</tr>
</table>
</div>
</div>
</section>
</div>
</div>
</section>
<?php include("foot.inc"); ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment