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 * FROM users WHERE id = ? AND role = 'member'"); $stmt->execute([$user_id]); $user = $stmt->fetch(); if (!$user) { die("Member not found."); } if (isset($_POST['update_user'])) { $full_name = htmlspecialchars($_POST['full_name']); $username = htmlspecialchars($_POST['username']); $email = htmlspecialchars($_POST['email']); $phone = htmlspecialchars($_POST['phone']); $profile_pic = $user['profile_pic']; // Keep old one by default // Update Profile Picture if uploaded if (!empty($_FILES["profile_pic"]["name"])) { $target_dir = "../uploads/profiles/"; $file_name = "user_" . time() . "_" . basename($_FILES["profile_pic"]["name"]); if (move_uploaded_file($_FILES["profile_pic"]["tmp_name"], $target_dir . $file_name)) { $profile_pic = $file_name; } } try { $sql = "UPDATE users SET username = ?, full_name = ?, email = ?, phone = ?, profile_pic = ? WHERE id = ?"; $pdo->prepare($sql)->execute([$username, $full_name, $email, $phone, $profile_pic, $user_id]); header("Location: manage_users.php?updated=1"); exit(); } catch (PDOException $e) { $error_msg = "Error: Username or Email already exists."; } } include '../includes/header.php'; ?>

Edit Member

Back

Current Profile Picture