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 created_at FROM dramas WHERE id = ?");
$stmt->execute([$drama_id]);
$created_at = $stmt->fetchColumn();
if (strtotime($created_at) > strtotime('-24 hours')) {
$overall_score = (float)$_POST['overall_score'];
$pic_q = (float)$_POST['pic_q'];
$snd_q = (float)$_POST['snd_q'];
$comments = htmlspecialchars($_POST['comments']);
$sql = "INSERT INTO ratings (user_id, drama_id, episode_id, score, picture_quality, sound_quality, review_text)
VALUES (?, ?, NULL, ?, ?, ?, ?)
ON DUPLICATE KEY UPDATE
score = VALUES(score),
picture_quality = VALUES(picture_quality),
sound_quality = VALUES(sound_quality),
review_text = VALUES(review_text)";
$stmt = $pdo->prepare($sql);
$stmt->execute([$user_id, $drama_id, $overall_score, $pic_q, $snd_q, $comments]);
$success_msg = "Overall Evaluation Submitted Successfully!";
} else {
$error_msg = "Error: The 24-hour review window for this teledrama has expired.";
}
}
// Fetch all dramas
$stmt = $pdo->query("SELECT * FROM dramas ORDER BY created_at DESC");
$dramas = $stmt->fetchAll();
include '../includes/header.php';
?>
Committee Dashboard
Reviews are open for 24 hours only from the time a production is added.
= $success_msg ?>
= $error_msg ?>
Active Evaluation Windows
prepare("SELECT score FROM ratings WHERE user_id = ? AND drama_id = ? AND episode_id IS NULL");
$check->execute([$user_id, $drama['id']]);
$existing_score = $check->fetchColumn();
// --- EXPIRATION LOGIC ---
$created_time = strtotime($drama['created_at']);
$expiry_time = $created_time + (24 * 3600);
$current_time = time();
$is_expired = ($current_time > $expiry_time);
$time_left = $expiry_time - $current_time;
?>