Rev 19 |
Rev 21 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<?php
require '../_taios.php';
$page = new Taios_Page('Administration', '../');
$page->drawHeader();
$page->drawMiddle();
$page->checkLoggedIn();
$userID = $page->getGetID();
$user = $page->getUserByID($userID);
if (($page->getLoggedInUser()->ID == $userID || $page->isUserAdmin($page->getLoggedInUser())) && $user)
{
?>
<table>
<tr><td class="bold">ID: </td><td><?php echo $user->ID; ?></td></tr>
<tr><td class="bold">AccessID: </td><td><?php echo $user->accessID; ?></td></tr>
<tr><td class="bold">Username: </td><td><?php echo $user->username; ?></td></tr>
<tr><td class="bold">Password: </td><td><?php echo $user->password; ?></td></tr>
<tr><td class="bold">Email Address: </td><td><?php echo $user->emailAddress; ?></td></tr>
<tr><td class="bold">Name: </td><td><?php echo $user->name; ?></td></tr>
</table>
<?php
}
else
{
if (!$user)
{
drawError('No such user, #' . $userID);
}
else
{
drawError('You do not have permission to access this page.');
}
}
$page->drawFooter();
?>