Update admin_posts.php

This commit is contained in:
2025-11-25 23:10:44 +00:00
parent cef27cf6d6
commit f26058c0ba

View File

@@ -22,10 +22,10 @@ session_start();
$adminPassword = $_ENV['MK_ADMIN_PASSWORD'] ?? 'change_this_password'; $adminPassword = $_ENV['MK_ADMIN_PASSWORD'] ?? 'change_this_password';
// --- DB CONFIG (match index.php) --- // --- DB CONFIG (match index.php) ---
$dbHost = $_ENV['DB_HOST'] ?? 'localhost'; $dbHost = $_ENV['DB_HOST'] ?? 'mariadb';
$dbName = $_ENV['DB_NAME'] ?? 'mediakor'; $dbName = $_ENV['DB_NAME'] ?? 'appdb';
$dbUser = $_ENV['DB_USER'] ?? 'mediakor'; $dbUser = $_ENV['DB_USER'] ?? 'appuser';
$dbPass = $_ENV['DB_PASS'] ?? 'mediakor_password'; $dbPass = $_ENV['DB_PASS'] ?? 'apppass';
$pdo = null; $pdo = null;
$dbError = null; $dbError = null;