adasd
This commit is contained in:
@@ -17,5 +17,5 @@
|
|||||||
}
|
}
|
||||||
// Matomo Einstellungen
|
// Matomo Einstellungen
|
||||||
define('MATOMO_URL', 'https://matomo.my-statistics.info/');
|
define('MATOMO_URL', 'https://matomo.my-statistics.info/');
|
||||||
define('MATOMO_ENABLED', false);
|
define('MATOMO_ENABLED', true);
|
||||||
define('MATOMO_SITE_ID', 2);
|
define('MATOMO_SITE_ID', 2);
|
||||||
@@ -18,5 +18,5 @@
|
|||||||
}
|
}
|
||||||
// Matomo Einstellungen
|
// Matomo Einstellungen
|
||||||
define('MATOMO_URL', 'https://matomo.my-statistics.info/');
|
define('MATOMO_URL', 'https://matomo.my-statistics.info/');
|
||||||
define('MATOMO_ENABLED', false);
|
define('MATOMO_ENABLED', true);
|
||||||
define('MATOMO_SITE_ID', 3);
|
define('MATOMO_SITE_ID', 3);
|
||||||
|
|||||||
@@ -88,11 +88,16 @@ if ($debugEnabled) {
|
|||||||
select.addEventListener('change', ()=>{
|
select.addEventListener('change', ()=>{
|
||||||
const file = select.value;
|
const file = select.value;
|
||||||
if (!file) { content.innerHTML = '<p class="muted">Log auswählen, um Inhalt zu sehen.</p>'; return; }
|
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(r => r.text())
|
||||||
.then(html => {
|
.then(text => {
|
||||||
// naive extract content from /debug page: we just display raw text
|
const escape = (s) => s
|
||||||
content.innerHTML = '<pre>'+html.replace(/</g,'<')+'</pre>';
|
.replace(/&/g, '&')
|
||||||
|
.replace(/</g, '<')
|
||||||
|
.replace(/>/g, '>')
|
||||||
|
.replace(/"/g, '"')
|
||||||
|
.replace(/'/g, ''');
|
||||||
|
content.innerHTML = '<pre>'+escape(text)+'</pre>';
|
||||||
})
|
})
|
||||||
.catch(()=> content.innerHTML = '<p class="muted">Konnte Log nicht laden.</p>');
|
.catch(()=> content.innerHTML = '<p class="muted">Konnte Log nicht laden.</p>');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -23,6 +23,13 @@ $content = '';
|
|||||||
if ($selected && in_array($selected, $files, true)) {
|
if ($selected && in_array($selected, $files, true)) {
|
||||||
$content = @file_get_contents($base . '/' . $selected) ?: '';
|
$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;">
|
<main class="container" style="padding: 32px 0;">
|
||||||
<div class="card" style="padding: 16px;">
|
<div class="card" style="padding: 16px;">
|
||||||
|
|||||||
Reference in New Issue
Block a user