* @copyright 2017 MyAAC
* @version 0.2.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Logs viewer';
?>
Log name
| Last updated
|
Logs are not available on this server.';
return;
}
foreach(scandir($server_path_logs) as $f) {
if($f[0] == '.' || $f == '..')
continue;
if(is_dir($server_path_logs . $f)) {
foreach(scandir($server_path_logs . $f) as $f2) {
if($f2[0] == '.' || $f2 == '..')
continue;
$files[] = array($f . '/' . $f2, $server_path_logs);
}
continue;
}
$files[] = array($f, $server_path_logs);
}
$i = 0;
foreach($files as $f) {
?>
|
|
', 3) . '' . $file . ':
' . nl2br(file_get_contents($aac_path_logs . $file));
else if(file_exists($server_path_logs . $file))
echo str_repeat('
', 3) . '' . $file . ':
' . nl2br(file_get_contents($server_path_logs . $file));
else
echo 'Specified file does not exist.';
}
else
echo 'Invalid file name specified.';
}
?>