foreach ($userremove as $id => $remove) { if (!$posmgmt->DeleteUser($id)) { $eve->RedirectUrl('admin.php'); } unset($useraccess[$id]); unset($usertrust[$id]); } foreach ($UserList as $id => $uaccess) { if ($SubAdminAccess[$id] != 6) { $AccessArray = array($UserEnabled[$id], $CorpAccess[$id], $OtherCorpAccess[$id], $OutpostAccess[$id], $JobAccess[$id], $ProdAccess[$id], $TrustAccess[$id], $SubAdminAccess[$id]); $uaccess = implode(".", array_filter($AccessArray)); } elseif ($SubAdminAccess[$id] == 6) { $uaccess = 6; } $uinfo = array('id' => $id, 'access' => $uaccess); if (!$posmgmt->UpdateUserAccess($uinfo)) { $eve->RedirectUrl('admin.php'); } } $eve->SessionSetVar('statusmsg', 'Information Saved!'); $eve->RedirectUrl('admin.php'); } elseif ($action == 'moons') { $additional_header[] = '<script type="text/javascript" src="javascript/admin.js"></script>'; $do = $eve->VarCleanFromInput('do'); if ($do) { echo $do(); exit; } $regions = $posmgmt->GetAllRegions(); $regionID = $eve->VarCleanFromInput('regionID'); $eveRender->Assign('regions', $regions);