asdasd
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_auth();
|
||||
require_admin();
|
||||
|
||||
if (!defined('APP_DEBUG_TOOL') || !APP_DEBUG_TOOL) {
|
||||
echo '<div class="card">Debug-Tool ist deaktiviert.</div>';
|
||||
@@ -36,6 +36,11 @@ if (isset($_GET['list']) && $_GET['list'] === '1') {
|
||||
|
||||
if (isset($_GET['raw']) && $_GET['raw'] === '1') {
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
$tail = isset($_GET['tail']) ? (int)$_GET['tail'] : 0;
|
||||
if ($tail > 0 && $content !== null) {
|
||||
$lines = preg_split('/\\R/', $content) ?: [];
|
||||
$content = implode(PHP_EOL, array_slice($lines, -$tail));
|
||||
}
|
||||
echo $content ?? '';
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user