getUser(end($bigtree["commands"])); // Stop if this is a 404 or the user is editing someone higher than them. if (!$user || $user["level"] > $admin->Level) { ?>

Error

The user you are trying to edit no longer exists or you are not allowed to edit this user.

stop(); } $bigtree["gravatar"] = $user["email"]; BigTree::globalizeArray($user); // Add a nice audit trail quick link if ($admin->Level > 1) { $bigtree["subnav_extras"][] = array("link" => ADMIN_ROOT."developer/audit/search/?user=".$user["id"]."&".$admin->CSRFTokenField."=".urlencode($admin->CSRFToken),"icon" => "trail","title" => "View Audit Trail"); $bigtree["subnav_extras"][] = array("link" => ADMIN_ROOT."developer/security/remove-2fa/?user=".$user["id"]."&".$admin->CSRFTokenField."=".urlencode($admin->CSRFToken),"icon" => "delete","title" => "Remove Two Factor Authentication"); } if (!$permissions) { $permissions = array( "page" => array(), "module" => array(), "resources" => array(), "module_gbp" => array() ); } else { if (!is_array($permissions["module_gbp"])) { $permissions["module_gbp"] = array(); } } // We need to gather all the page levels that should be expanded (anything that isn't "inherit" should have its parents pre-opened) $page_ids = array(); if (is_array($permissions["page"])) { foreach ($permissions["page"] as $id => $permission) { if ($permission != "i") { $page_ids[] = $id; } } } if (is_array($alerts)) { foreach ($alerts as $id => $on) { $page_ids[] = $id; } } $page_ids = array_unique($page_ids); $pre_opened_parents = array(); foreach ($page_ids as $id) { $pre_opened_parents = array_merge($pre_opened_parents,$admin->getPageLineage($id)); } // Gather up the parents for resource folders that should be open by default. $pre_opened_folders = array(); if (is_array($permissions["resources"])) { foreach ($permissions["resources"] as $id => $permission) { if ($permission != "i") { $folder = $admin->getResourceFolder($id); $pre_opened_folders[] = $folder["parent"]; } } } function _local_userDrawNavLevel($parent,$depth,$alert_above = false,$children = false) { global $permissions,$alerts,$admin,$user,$pre_opened_parents; if (!$children) { $children = $admin->getPageChildren($parent); } if (count($children)) { ?> getResourceFolderChildren($parent); } if (count($children)) { ?> getModuleGroups("name ASC"); ?>
drawCSRFToken() ?>

style="display: none;">Errors found! Please fix the highlighted fields before submitting.

class="form_error" style="position: relative;"> style="display: block;">