Added support for Streamdeck Pedal and updated UI to better fit the Packed UI style

This commit is contained in:
2026-02-27 22:47:08 +01:00
committed by erik
parent 5a70f775f1
commit 93faae5cc8
1463 changed files with 306917 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
require_once __DIR__ . '/../src/config.php';
require_once __DIR__ . '/../src/auth.php';
require_once __DIR__ . '/../src/expense_functions.php';
require_login();
$id = (int)($_GET['id'] ?? 0);
$expense = get_expense($id);
if (!$expense || empty($expense['attachment_path'])) {
http_response_code(404);
echo 'Datei nicht gefunden.';
exit;
}
$fsPath = __DIR__ . '/' . $expense['attachment_path'];
if (!is_readable($fsPath)) {
http_response_code(404);
echo 'Datei nicht gefunden.';
exit;
}
header('Content-Type: application/pdf');
header('Content-Disposition: inline; filename="Ausgabe-' . $id . '.pdf"');
header('Content-Length: ' . filesize($fsPath));
readfile($fsPath);
exit;