Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/monara/public_html/test.athavaneng.com/themes.php on line 99

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230

Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Set default fetch mode to associative array for cleaner code $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { die("Connection failed: " . $e->getMessage()); } // 2. Path Management (Fixed for HTTPS and Subfolders) $protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ? "https://" : "http://"; $domain = $_SERVER['HTTP_HOST'] ?? 'test.athavaneng.com'; // Detects if running via Web or CLI (Cron) $base_url = $protocol . $domain . "/teledrama_rating/"; if (!defined('BASE_URL')) define('BASE_URL', $base_url); // 3. Mailchimp Notification Settings // Replace 'YOUR_MAILCHIMP_API_KEY' with your actual key in the live file define('MAILCHIMP_API_KEY', '6ff1a7ee5cac8415f36f2b89565b0ea3-us20'); define('MAILCHIMP_SERVER', 'us20'); define('ADMIN_EMAIL', 'teldramaratings@test.athavaneng.com'); // 4. Helper Functions function checkLogin() { if (!isset($_SESSION['user_id'])) { header("Location: " . BASE_URL . "index.php"); exit(); } } ?>