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 Swarnavahini Ratings - Your Account Details"; $html_private = "

Welcome, $full_name!

Your committee member account has been created. Use the credentials below to log in:

Login URL: $loginUrl

Username: $username

Password: $plain_pass

Please change your password after your first login.

"; 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 = "New Committee Member: $full_name"; $html_announcement = "

New Team Member

Hi Team, please welcome our newest member to the ratings board.

Name: $full_name

Joined Date: $joinDate

"; sendSystemEmail($existing_emails, $subject_ann, $html_announcement); } $success_msg = "Member registered and SMTP notifications sent!"; } } 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 /10

Member updated successfully!
Profile Full Name Contact Info Username Actions