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

@@ -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;">