/home1/kilifi/public_html/admin
NameSizeModeActions
add_blog.php63500644editdlrm
add_carousel.php31670644editdlrm
add_doc.php29920644editdlrm
add_event.php35220644editdlrm
add_leader.php32730644editdlrm
add_partner.php25150644editdlrm
admin_footer.php1520644editdlrm
admin_header.php58390644editdlrm
analytics.php52960644editdlrm
edit_blog.php74050644editdlrm
edit_carousel.php48600644editdlrm
edit_doc.php40600644editdlrm
edit_event.php48060644editdlrm
edit_leader.php44610644editdlrm
edit_partner.php34690644editdlrm
error_log13590644editdlrm
index.php105440644editdlrm
login.php29660644editdlrm
logout.php900644editdlrm
manage_blog.php33700644editdlrm
manage_carousel.php37100644editdlrm
manage_categories.php72100644editdlrm
manage_docs.php31640644editdlrm
manage_events.php35870644editdlrm
manage_leadership.php29870644editdlrm
manage_media.php103920644editdlrm
manage_messages.php99660644editdlrm
manage_newsletter.php243030644editdlrm
manage_partners.php38600644editdlrm
manage_users.php129220644editdlrm
manage_volunteers.php62270644editdlrm
settings.php125160644editdlrm
test_smtp_ajax.php24820644editdlrm
Edit: /home1/kilifi/public_html/admin/manage_users.php (12922B)
alert('User added successfully'); window.location='manage_users.php';"; } else { echo ""; } } // Handle User Update if (isset($_POST['update_user'])) { $id = mysqli_real_escape_string($con, $_POST['user_id']); $username = mysqli_real_escape_string($con, $_POST['username']); $email = mysqli_real_escape_string($con, $_POST['email']); $role = mysqli_real_escape_string($con, $_POST['role']); // Prevent deactivating or changing role of the main 'admin' account if it's the one being edited $check_main = mysqli_query($con, "SELECT username FROM admins WHERE id='$id'"); $user_data = mysqli_fetch_assoc($check_main); if ($user_data['username'] == 'admin' && $role != 'superadmin') { echo ""; exit(); } $query = "UPDATE admins SET username='$username', email='$email', role='$role' WHERE id='$id'"; if (!empty($_POST['password'])) { $password = password_hash($_POST['password'], PASSWORD_DEFAULT); $query = "UPDATE admins SET username='$username', email='$email', role='$role', password='$password' WHERE id='$id'"; } if (mysqli_query($con, $query)) { echo ""; } else { echo ""; } } // Handle User Deletion if (isset($_GET['delete'])) { $id = mysqli_real_escape_string($con, $_GET['delete']); $check_main = mysqli_query($con, "SELECT username FROM admins WHERE id='$id'"); $user_data = mysqli_fetch_assoc($check_main); if ($id == $_SESSION['admin_id']) { echo ""; } elseif ($user_data['username'] == 'admin') { echo ""; } else { $query = "DELETE FROM admins WHERE id='$id'"; if (mysqli_query($con, $query)) { echo ""; } else { echo ""; } } } $users = mysqli_query($con, "SELECT * FROM admins ORDER BY created_at DESC"); ?>

User & Roles Management

Username Email Role Created At Actions
System Roles

Defined roles and their permissions in the KCCF system.

Role Name Permissions Description
Superadmin Full access to all modules, including user management, site settings, and all content management.
Editor Access to manage blog posts, events, media, and volunteers. Cannot manage users or critical site settings.