mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
* fix #47
This commit is contained in:
parent
5f1392e9f4
commit
ecd865f275
@ -28,14 +28,11 @@ foreach(scandir($aac_path_logs) as $f) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$server_path_logs = $config['server_path'] . 'logs/';
|
$server_path_logs = $config['server_path'] . 'logs/';
|
||||||
if(!file_exists($server_path_logs))
|
|
||||||
$server_path_logs = $config['data_path'] . 'logs/';
|
|
||||||
|
|
||||||
if(!file_exists($server_path_logs)) {
|
if(!file_exists($server_path_logs)) {
|
||||||
echo '</table>Logs are not available on this server.';
|
$server_path_logs = $config['data_path'] . 'logs/';
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(file_exists($server_path_logs)) {
|
||||||
foreach(scandir($server_path_logs) as $f) {
|
foreach(scandir($server_path_logs) as $f) {
|
||||||
if($f[0] == '.' || $f == '..')
|
if($f[0] == '.' || $f == '..')
|
||||||
continue;
|
continue;
|
||||||
@ -52,6 +49,7 @@ foreach(scandir($server_path_logs) as $f) {
|
|||||||
|
|
||||||
$files[] = array($f, $server_path_logs);
|
$files[] = array($f, $server_path_logs);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach($files as $f) {
|
foreach($files as $f) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user