initial commit

This commit is contained in:
2026-07-22 01:12:45 +02:00
commit 124f2746ac
357 changed files with 159669 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
/* Database credentials. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
define('DB_SERVER', '192.168.1.91');
define('DB_USERNAME', 'anjuma');
define('DB_PASSWORD', '+HhuL6kq5iC7t');
define('DB_NAME', 'anjuma-dashboard');
/* Attempt to connect to MySQL database */
try{
$pdo = new PDO("mysql:host=" . DB_SERVER . ";dbname=" . DB_NAME, DB_USERNAME, DB_PASSWORD);
// Set the PDO error mode to exception
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e){
die("ERROR: Could not connect. " . $e->getMessage());
}
?>
+35
View File
@@ -0,0 +1,35 @@
<?php
return [
// Aussteller (euer Rechnungskopf)
'issuer' => [
'name' => 'ANJUMA CREW', // z.B. ANJUMA / DJ-Service Justin Bosker
'street' => 'Musterstraße 1',
'zip' => '31582',
'city' => 'Nienburg',
'country' => 'Deutschland',
'tax_no' => '12/345/67890', // Steuernummer
'email' => 'itzanjuma@gmail.com',
'phone' => '+49 ',
],
// Zahlung
'payment' => [
'iban' => 'DE00 0000 0000 0000 0000 00',
'bic' => 'XXXXXXXXXXX',
'bank' => 'Musterbank',
'pay_within_days' => 14,
],
// Kleinunternehmer-Hinweis (§19)
'kleinunternehmer_text' => 'Gemäß § 19 UStG wird keine Umsatzsteuer berechnet und ausgewiesen.',
// Speicherort für PDFs (muss schreibbar sein!)
// Empfehlung: außerhalb Webroot oder per .htaccess schützen
'pdf_dir' => __DIR__ . '/../storage/invoices',
'branding' => [
'logo_path' => __DIR__ . '/../assets/logo.png', // <- Dateiname anpassen!
'accent' => '#111111',
],
];
+9
View File
@@ -0,0 +1,9 @@
<?php
return [
'host' => '192.168.1.100', // IP/Host vom Proxmox
'node' => 'pve',
'token_id' => 'anjuma@pam!flx4februar', // user@realm!tokenid
'token_secret' => 'e5d73e3e-30e7-48d7-b176-2f7591e50964', // secret
'timeout' => 15,
'verify_tls' => false, // in prod true lassen
];
+16
View File
@@ -0,0 +1,16 @@
<?php
$secure = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off';
session_set_cookie_params([
'lifetime' => 0,
'path' => '/',
'domain' => '',
'secure' => $secure,
'httponly' => true,
'samesite' => 'Lax',
]);
if (session_status() === PHP_SESSION_NONE) {
session_start();
}