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($sql);
if ($stmt->execute([$username, $full_name, $email, $phone, $password, $profile_pic])) {
// --- SMTP NOTIFICATIONS (Amazon SES) ---
$loginUrl = BASE_URL . "index.php";
$joinDate = date("F j, Y");
// A. Private Email to the New Member
$subject_private = "Welcome to EBC Teledrama Ratings Portal - Login Details";
$html_private = "
Dear $full_name,
Welcome to the EBC Teledrama Ratings Portal. Your committee member account has been successfully created. Please use the login credentials below to access the system.
";
// sendSystemEmail($existing_emails, $subject_ann, $html_announcement);
// }
header("Location: manage_users.php?added=1");
exit();
}
} catch (PDOException $e) {
$error_msg = "Error: Username or Email already exists.";
}
}
// --- 3. HANDLE DELETE ---
if (isset($_GET['delete'])) {
$id = (int)$_GET['delete'];
$pdo->prepare("DELETE FROM users WHERE id = ? AND role = 'member'")->execute([$id]);
header("Location: manage_users.php?deleted=1");
exit();
}
$members = $pdo->query("SELECT * FROM users WHERE role = 'member' ORDER BY id DESC")->fetchAll();
include '../includes/header.php';
?>