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.

Login URL: https://teledrama.ebc.lk/

Username: $username

Password: $plain_pass

For security purposes, we kindly request that you change your password after your first login.

If you experience any issues accessing your account, please feel free to contact us for assistance.

Best regards,
EBC Teledrama Committee

"; sendSystemEmail($email, $subject_private, $html_private); // B. Announcement to Existing Members $stmt_all = $pdo->query("SELECT email FROM users WHERE role = 'member' AND email != '$email'"); $existing_emails = $stmt_all->fetchAll(PDO::FETCH_COLUMN); if (!empty($existing_emails)) { $subject_ann = "EBC Teledrama Ratings Portal - New Committee Member"; $html_announcement = "

Dear Committee Members,

Please join us in welcoming a new member to the EBC Teledrama Committee.

Name: $full_name

Joined Date: $joinDate

You may access the portal using the link below:

Login URL: https://teledrama.ebc.lk/

Best regards,
EBC Teledrama Committee


"; 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'; ?>

Committee Members

Member registered successfully and emails sent!
Member updated successfully!
Profile Full Name Contact Info Username Actions