getAttributes(); $pdo = new \PDO($dbDsn, $dbUser, $dbPass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $userManager = new \pvv\admin\UserManager($pdo); require_once(__DIR__ . '/../../../vendor/simplesamlphp/simplesamlphp/lib/_autoload.php'); $as = new SimpleSAML_Auth_Simple('default-sp'); $as->requireAuth(); $attrs = $as->getAttributes(); $uname = $attrs['uid'][0]; if(!$userManager->isAdmin($uname)){ echo 'Her har du ikke lov\'t\'å\'værra!!!'; exit(); } $users = $userManager->getAllUserData(); ?>
Bruker­administrasjon

Brukeradministrasjon


$data){ $uname = $data['name']; $groupFlag = $userManager->getUsergroups($uname); if(!$users_value){ $users_value = $uname; }else{ $users_value = $users_value . '_' . $uname; } ?> usergroups as $name => $group){ echo ''; } ?> '; ?> usergroups as $name => $group){ echo ''; } ?>
BrukernavnBrukergrupper
' . $name . '
' . $name . '