This commit is contained in:
2025-12-27 02:49:04 +01:00
parent 03bb9de416
commit c0558ec6b8
4 changed files with 18 additions and 6 deletions

View File

@@ -17,5 +17,5 @@
}
// Matomo Einstellungen
define('MATOMO_URL', 'https://matomo.my-statistics.info/');
define('MATOMO_ENABLED', false);
define('MATOMO_ENABLED', true);
define('MATOMO_SITE_ID', 2);

View File

@@ -18,5 +18,5 @@
}
// Matomo Einstellungen
define('MATOMO_URL', 'https://matomo.my-statistics.info/');
define('MATOMO_ENABLED', false);
define('MATOMO_ENABLED', true);
define('MATOMO_SITE_ID', 3);

View File

@@ -88,11 +88,16 @@ if ($debugEnabled) {
select.addEventListener('change', ()=>{
const file = select.value;
if (!file) { content.innerHTML = '<p class="muted">Log auswählen, um Inhalt zu sehen.</p>'; return; }
fetch('/debug?file=' + encodeURIComponent(file))
fetch('/debug?file=' + encodeURIComponent(file) + '&raw=1')
.then(r => r.text())
.then(html => {
// naive extract content from /debug page: we just display raw text
content.innerHTML = '<pre>'+html.replace(/</g,'&lt;')+'</pre>';
.then(text => {
const escape = (s) => s
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#039;');
content.innerHTML = '<pre>'+escape(text)+'</pre>';
})
.catch(()=> content.innerHTML = '<p class="muted">Konnte Log nicht laden.</p>');
});

View File

@@ -23,6 +23,13 @@ $content = '';
if ($selected && in_array($selected, $files, true)) {
$content = @file_get_contents($base . '/' . $selected) ?: '';
}
// Raw delivery for AJAX view (no layout, plain text)
if (isset($_GET['raw']) && $_GET['raw'] === '1') {
header('Content-Type: text/plain; charset=utf-8');
echo $content;
exit;
}
?>
<main class="container" style="padding: 32px 0;">
<div class="card" style="padding: 16px;">