2019-09-01 13:55:33 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<?php
|
|
|
|
$partial = new Partial('head');
|
2019-10-11 14:38:20 +00:00
|
|
|
$partial->prepare('baseDir', $BASEDIR);
|
2019-09-01 13:55:33 +00:00
|
|
|
$partial->render();
|
|
|
|
?>
|
|
|
|
<title><?php echo $TITLE ?></title>
|
|
|
|
</head>
|
|
|
|
<body class="no-transitions">
|
|
|
|
<div class="row no-gutters main">
|
|
|
|
<div class="col-md-3 d-sm-none"></div>
|
|
|
|
<div class="col-md-3 nav-container">
|
2019-09-19 12:48:31 +00:00
|
|
|
<?php
|
|
|
|
$partial = new Partial('menu');
|
|
|
|
$partial->prepare('item', 'log');
|
2019-10-11 12:12:05 +00:00
|
|
|
$partial->prepare('langMng',$LANGMNG);
|
2020-01-17 09:27:51 +00:00
|
|
|
$partial->prepare('debugMod',$DEBUGMOD);
|
2019-09-19 12:48:31 +00:00
|
|
|
$partial->render();
|
|
|
|
?>
|
2019-09-01 13:55:33 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-md-9 main-body">
|
|
|
|
<div class="col-12 col-sm-9 mx-auto mt-4">
|
2020-02-13 12:57:22 +00:00
|
|
|
<label><?php echo $LANGMNG->get('l_logMaxLiveTime') . " " . $LOGTOLIVETIME . " days";?></label>
|
2019-09-01 13:55:33 +00:00
|
|
|
<form method="post" action="">
|
|
|
|
<div class="field">
|
|
|
|
<select class="input" name="LogFile">
|
|
|
|
<?php foreach ($LOGSFILES as $key => $value) { ?>
|
|
|
|
<option value="<?php echo $value; ?>"><?php echo $value; ?></option>
|
|
|
|
<?php } ?>
|
|
|
|
</select>
|
2019-10-11 15:04:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2019-10-11 12:12:05 +00:00
|
|
|
<input type="submit" class="button" name="selectFile" value="<?php $LANGMNG->echo('b_select');?>"/>
|
2019-09-01 13:55:33 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2020-01-17 09:27:51 +00:00
|
|
|
<?php
|
2019-10-11 14:38:20 +00:00
|
|
|
if (isset($_POST['LogFile'])) {
|
|
|
|
$file_lines = file('./app/logs/' . $_POST['LogFile']);
|
|
|
|
echo '<pre style="overflow: auto;">';
|
|
|
|
foreach ($file_lines as $line) {
|
|
|
|
echo $line;
|
2019-09-01 13:55:33 +00:00
|
|
|
}
|
2019-10-11 14:38:20 +00:00
|
|
|
echo '</pre>';
|
|
|
|
}
|
|
|
|
?>
|
2019-09-01 13:55:33 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-01-17 09:27:51 +00:00
|
|
|
|
2019-09-01 13:55:33 +00:00
|
|
|
<?php
|
|
|
|
$partial = new Partial('footer');
|
|
|
|
$partial->render();
|
|
|
|
//TODO js do main.js
|
|
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|