Update: 2026-05-15 15:26:05

This commit is contained in:
Hamza-Ayed
2026-05-15 15:26:05 +03:00
parent efe7919ce5
commit 0d9709d292

View File

@@ -51,6 +51,7 @@ if ($providedKey !== $expectedApiKey) {
}
// Extra Security: App Signature Fingerprint Validation (Optional)
/*
$expectedSignatures = $_ENV['APP_SIGNATURE_SHA256'] ?? null;
if (!empty($expectedSignatures)) {
$providedSignature = $headers['X-App-Signature'] ?? ($headers['x-app-signature'] ?? null);
@@ -68,6 +69,7 @@ if (!empty($expectedSignatures)) {
exit;
}
}
*/
$host = $_ENV['DB_HOST'] ?? 'localhost';
$dbname = $_ENV['DB_NAME'] ?? 'jordan_bot_db';