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
window.location.href='../login.php';"; exit; } $message = ""; // --- LOGIC: CREATE USER ACCOUNT --- if (isset($_POST['create_user'])) { $name = mysqli_real_escape_string($conn, $_POST['full_name']); $email = mysqli_real_escape_string($conn, $_POST['email']); $phone = mysqli_real_escape_string($conn, $_POST['phone']); $password = password_hash($_POST['password'], PASSWORD_BCRYPT); // Using standard secure BCrypt $role = $_POST['role']; $team = ($role == 'Scheduler' || $role == 'Admin') ? 'None' : $_POST['team']; try { $sql = "INSERT INTO users (full_name, email, phone, password, role, team) VALUES ('$name', '$email', '$phone', '$password', '$role', '$team')"; if (mysqli_query($conn, $sql)) { $message = "
✅ Staff account created successfully for $name
"; } } catch (mysqli_sql_exception $e) { if ($e->getCode() == 1062) { $message = "
Registration Failed: The email $email is already registered.
"; } else { $message = "
Something went wrong. Please try again.
"; } } } // --- LOGIC: ADD NEW PLATFORM INTEGRATION --- if (isset($_POST['add_platform'])) { $plat_name = mysqli_real_escape_string($conn, trim($_POST['platform_name'])); if (!empty($plat_name)) { try { $sql = "INSERT INTO platforms (name, status) VALUES ('$plat_name', 'Active')"; if (mysqli_query($conn, $sql)) { $message = "
✅ Dynamic platform $plat_name successfully registered!
"; } } catch (mysqli_sql_exception $e) { if ($e->getCode() == 1062) { $message = "
⚠️ Platform $plat_name is already registered.
"; } else { $message = "
Failed to integrate platform channel.
"; } } } } // --- LOGIC: TOGGLE PLATFORM STATUS --- if (isset($_GET['toggle_platform'])) { $p_id = (int)$_GET['toggle_platform']; $p_res = mysqli_query($conn, "SELECT status FROM platforms WHERE id = $p_id"); if ($p_row = mysqli_fetch_assoc($p_res)) { $new_status = ($p_row['status'] === 'Active') ? 'Inactive' : 'Active'; mysqli_query($conn, "UPDATE platforms SET status = '$new_status' WHERE id = $p_id"); echo ""; exit; } } // --- LOGIC: DELETE PLATFORM CHANNELS --- if (isset($_GET['delete_platform'])) { $p_id = (int)$_GET['delete_platform']; mysqli_query($conn, "DELETE FROM platforms WHERE id = $p_id"); echo ""; exit; } // --- LOGIC: DELETE USER ACCOUNT --- if (isset($_GET['delete'])) { $id = (int)$_GET['delete']; mysqli_query($conn, "DELETE FROM users WHERE id=$id"); echo ""; exit; } ?>
Staff Management
1. Add New Staff Member
2. Registered Staff Members
—' : htmlspecialchars($row['team']); ?>
NAME / CONTACT ROLE TEAM ACTIONS
Platforms
1. Add Live Media Platform
2. Active Distribution Channels
0): $plat_res = mysqli_query($conn, "SELECT * FROM platforms ORDER BY name ASC"); if(mysqli_num_rows($plat_res) > 0): while($p_row = mysqli_fetch_assoc($plat_res)): $statusBadge = ($p_row['status'] === 'Active') ? 'bg-success' : 'bg-secondary'; ?> No pipeline systems registered.
"; endif; else: echo "
System Error: The `platforms` base table structure has not yet been applied to phpMyAdmin.
"; endif; ?>