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
prepare("SELECT * FROM dramas WHERE id = ?");
$stmt->execute([$drama_id]);
$drama = $stmt->fetch();
if (!$drama) { die("Teledrama not found."); }
// 2. Mandrill Notification Function (Replaced old Mailchimp logic)
function notifyEpMandrill($pdo, $dName, $epNo) {
$mandrill_key = 'md-Vjza4GhgRIEoal3e-KKkmw'; // Your verified key
$url = "https://mandrillapp.com/api/1.0/messages/send.json";
$members = $pdo->query("SELECT email FROM users WHERE role = 'member' AND email IS NOT NULL")->fetchAll(PDO::FETCH_COLUMN);
if (empty($members)) return;
$recipients = array_map(function($email) {
return ["email" => $email, "type" => "bcc"];
}, $members);
$html = "
New Episode Available
Episode $epNo of $dName has been uploaded to the portal for evaluation.
Please log in to the dashboard to submit your ratings.