query("SELECT * FROM vc_user_groups ORDER BY user_group_weight ASC"); $user_groups = array(); while ($user_group = $user_groups_data->fetch_assoc()) { array_push($user_groups, $user_group); $last_weight = $user_group['user_group_weight']; } # get all the admins $stmt = $GLOBALS['conn']->query("SELECT * FROM vc_users INNER JOIN vc_user_groups ON vc_users.user_group_uuid = vc_user_groups.user_group_uuid WHERE user_group_type = 'admin'"); $administrators = array(); while ($row = $stmt->fetch_assoc()) { array_push($administrators, $row); } $stmt = $GLOBALS['conn']->query("SELECT * FROM vc_permissions INNER JOIN system_modules ON vc_permissions.module_uuid = system_modules.module_uuid WHERE system_modules.module_enabled = 1"); $permissions = array(); while ($row = $stmt->fetch_assoc()) { array_push($permissions, $row); } # Set breadcrumb data # Start page output ?>