Users does, or - * with no email set up yet - shown once for you to give them. Their own copy * of the vault key is made under it, so they set their own once signed in. */ defined('FROM_GETTING_STARTED') || die("Direct file access is not allowed"); $gs_agents = mysqli_query($mysqli, "SELECT user_id, user_name, user_email, role_name, role_is_admin FROM users LEFT JOIN user_roles ON role_id = user_role_id WHERE user_type = 1 AND user_status = 1 AND user_archived_at IS NULL ORDER BY user_name ASC"); $gs_roles = userRoles(); // Technician, when there is one - most people added are - or the first role that isn't an admin one $gs_role_default = ''; foreach ($gs_roles as $gs_role_id => $gs_role) { if (!intval($gs_role['role_is_admin']) && ($gs_role_default === '' || strcasecmp($gs_role['role_name'], 'Technician') === 0)) { $gs_role_default = (string) $gs_role_id; } } $gs_role_options = ''; foreach ($gs_roles as $gs_role_id => $gs_role) { $gs_role_options .= ''; } $gs_mail_ready = emailReady(); $gs_limit = agentUserLimitReached(); ?>