This commit is contained in:
2026-07-19 18:27:27 +08:00
parent fe4b286ce1
commit 0febcf69f4
170 changed files with 19490 additions and 11878 deletions
+2 -14
View File
@@ -1,18 +1,4 @@
<?php
/**
* PiStar-Keeper logbook download.
*
* Sends /var/pistar-keeper/pistar-keeper.log as a binary download.
* Linked from /admin/admin.php's PiStar-Keeper Logbook panel
* (which only renders if pistar-keeper is running).
*
* NOTE for the security pass: no setSecurityHeaders() call, no auth
* check, no PHP_SELF guard. Coverage gap.
*/
require_once($_SERVER['DOCUMENT_ROOT'] . '/config/security_headers.php');
setSecurityHeaders();
$file = '/var/pistar-keeper/pistar-keeper.log';
@@ -29,3 +15,5 @@ if (file_exists($file)) {
readfile($file);
exit;
}
?>