Move of LOG folder from /app/front/log to app/log

This commit is contained in:
jokob-sk
2024-12-08 21:06:44 +11:00
parent cd9c4a2176
commit a7e35c4697
24 changed files with 90 additions and 60 deletions

View File

@@ -20,12 +20,12 @@ function renderLogArea($params) {
$content = file_get_contents($filePath);
}
// Prepare the download button HTML if filePath starts with /app/front
// Prepare the download button HTML if filePath starts with /app
$downloadButtonHtml = '';
if (strpos($filePath, '/app/front') === 0) {
if (strpos($filePath, '/app') === 0) {
$downloadButtonHtml = '
<span class="span-padding">
<a href="' . htmlspecialchars(str_replace('/app/front', '', $filePath)) . '" target="_blank">
<a href="' . htmlspecialchars(str_replace('/app/log/', '/php/server/query_logs.php?file=', $filePath)) . '" target="_blank">
<i class="fa fa-download"></i>
</a>
</span>';