Commit 452a6010 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) style cleanup diag_logs_gateways.php

parent d5e9e0ea
...@@ -42,7 +42,7 @@ if (isset($config['syslog']['nentries'])) { ...@@ -42,7 +42,7 @@ if (isset($config['syslog']['nentries'])) {
$nentries = $config['syslog']['nentries']; $nentries = $config['syslog']['nentries'];
} }
if ($_POST['clear']) { if (!empty($_POST['clear'])) {
clear_clog($system_logfile); clear_clog($system_logfile);
} }
...@@ -50,47 +50,41 @@ if (isset($_POST['filtertext'])) { ...@@ -50,47 +50,41 @@ if (isset($_POST['filtertext'])) {
$filtertext = htmlspecialchars($_POST['filtertext']); $filtertext = htmlspecialchars($_POST['filtertext']);
} }
$pgtitle = array(gettext('System'), gettext('Log Files'), gettext('Gateways'));
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">
<tr><td colspan="2"> <tr>
<td colspan="2">
<form id="clearform" name="clearform" action="diag_logs_gateways.php" method="post" class="__mt"> <form id="clearform" name="clearform" action="diag_logs_gateways.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($system_logfile, $nentries, $filtertext); ?> <?php dump_clog($system_logfile, $nentries, $filtertext); ?>
<tr><td colspan="2"> <tr>
<td colspan="2">
<form action="diag_logs_gateways.php" method="post"> <form action="diag_logs_gateways.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>
</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