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'])) { ...@@ -39,7 +39,7 @@ if (isset($config['syslog']['nentries'])) {
$nentries = $config['syslog']['nentries']; $nentries = $config['syslog']['nentries'];
} }
if ($_POST['clear']) { if (!empty($_POST['clear'])) {
clear_clog($routing_logfile); clear_clog($routing_logfile);
} }
...@@ -47,48 +47,41 @@ if (isset($_POST['filtertext'])) { ...@@ -47,48 +47,41 @@ if (isset($_POST['filtertext'])) {
$filtertext = htmlspecialchars($_POST['filtertext']); $filtertext = htmlspecialchars($_POST['filtertext']);
} }
$pgtitle = array(gettext('System'), gettext('Log Files'), gettext('Routing'));
$shortcut_section = "routing"; $shortcut_section = "routing";
include("head.inc"); include("head.inc");
?> ?>
<body> <body>
<?php include("fbegin.inc"); ?> <?php include("fbegin.inc"); ?>
<section class="page-content-main"> <section class="page-content-main">
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<?php if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?> <?php if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?>
<section class="col-xs-12"> <section class="col-xs-12">
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-sort"> <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"> <form id="clearform" name="clearform" action="diag_logs_routing.php" method="post" class="__mt">
<input id="filtertext" name="filtertext" value="<?=$filtertext;?>"/> <input id="filtertext" name="filtertext" value="<?=$filtertext;?>"/>
<input id="filtersubmit" name="filtersubmit" type="submit" class="btn btn-primary" value="<?=gettext("Filter");?>" /> <input id="filtersubmit" name="filtersubmit" type="submit" class="btn btn-primary" value="<?=gettext("Filter");?>" />
</form> </form>
</td></tr> </td>
</tr>
<?php dump_clog($routing_logfile, $nentries, $filtertext); ?> <?php dump_clog($routing_logfile, $nentries, $filtertext); ?>
<tr><td colspan="2"> <tr>
<td colspan="2">
<form action="diag_logs_routing.php" method="post"> <form action="diag_logs_routing.php" method="post">
<input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" /> <input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" />
</form> </form>
</td></tr> </td>
</tr>
</table> </table>
</div> </div>
</div> </div>
</section> </section>
</div> </div>
</div> </div>
</section> </section>
<?php include("foot.inc"); ?> <?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