main
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user