(root)/admin/all-accounts.php - Rev 512
Rev 306 |
Go to most recent revision |
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>' . $user->username . '</td>');
write
('<td>' . $user->password . '</td>');
write
('<td>' . $user->name . '</td>');
write
('<td>' . $user->emailAddress . '</td>');
write
('<td>' . $user->challengeID . '</td>');
write
('</tr>');
}
write
('</table>');
}
else
{
$page->drawError('You do not have permission to access this page.');
}
$page->drawFooter();
?>