* */ require_once('../../src/base.inc.php'); // Verify User is admin if (!$_SESSION['currentUser']->isAdmin()) { header('Location: ' . buildUrl('moderate/')); exit; } $error = ''; require_once('../src/header.inc.php'); echo "

Users

"; echo "

Create User

"; $ui = new UserIterator(); $ui->query(); echo "
" . "Name" . " Email" . " Admin" . " Actions
"; foreach ($ui as $user) { printf("
" . "%s" . " %s" . " %s" . " " . " edit" . " delete
", $user->getName(), $user->getEmail(), $user->getEmail(), $user->isAdmin() ? 'Yes' : 'No', $user->getId(), $user->getId() ); } require_once('../src/footer.inc.php'); ?>