(root)/admin/all-accounts.php - Rev 522
Rev 502 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<?php
require '../_taios.php';
$page = new Taios_Page
('Manage All Accounts', '../');
$page->drawHeader();
$page->drawMiddle();
$page->checkLoggedIn();
if ($page->isUserAdmin($page->getLoggedInUser()))
{
write
('<p class="bold">Use this to manage all the accounts on the Tim32 Website.</p><br />');
write
('<table>');
write
('<tr>');
write
('<td class="bold">ID</td>');
write
('<td class="bold">AccessID</td>');
write
('<td class="bold">Username</td>');
write
('<td class="bold">Salt and Burned Password</td>');
write
('<td class="bold">Name</td>');
write
('<td class="bold">Email Address</td>');
write
('<td class="bold">Challenge ID</td>');
write
('</tr>');
$ids = $page->findIDs('Users');
for ($i = 0; $i < count($ids); $i++)
{
$user = $page->getUserByID($ids[$i]);
write
('<tr>');
write
('<td><a href="account.php?id=' . $user->ID . '">' . $user->ID . '</a></td>');
write
('<td>' . $user->accessID . '</td>');
write
('<td>' . htmlentities($user->username, ENT_QUOTES) . '</td>');
write
('<td>' . $user->password . '</td>');
write
('<td>' . htmlentities($user->name, ENT_QUOTES) . '</td>');
write
('<td>' . htmlentities($user->emailAddress, ENT_QUOTES) . '</td>');
write
('<td>' . $user->challengeID . '</td>');
write
('</tr>');
}
write
('</table>');
}
else
{
$page->drawError('You do not have permission to access this page.');
}
$page->drawFooter();
?>