2019-09-01 13:55:33 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class Log extends Template
|
|
|
|
{
|
|
|
|
function __construct()
|
|
|
|
{
|
|
|
|
global $userManager;
|
|
|
|
global $lang;
|
|
|
|
|
|
|
|
if (!$userManager->isLogin()){
|
|
|
|
header('Location: ./login');
|
|
|
|
}
|
|
|
|
|
|
|
|
$template = new Template('log');
|
|
|
|
$template->prepare('title', 'Log');
|
|
|
|
|
|
|
|
$result = array();
|
2019-09-19 12:48:31 +00:00
|
|
|
$cdir = scandir('./app/logs/');
|
2019-09-01 13:55:33 +00:00
|
|
|
foreach ($cdir as $key => $value)
|
|
|
|
{
|
2019-09-23 19:11:06 +00:00
|
|
|
if (!in_array($value,array(".","..", ".gitkeep")))
|
2019-09-01 13:55:33 +00:00
|
|
|
{
|
|
|
|
$result[$value] = $value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$template->prepare('logsFiles', $result);
|
|
|
|
$template->prepare('lang', $lang);
|
|
|
|
|
|
|
|
$template->render();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|