Subversion Repositories taios

Rev

Rev 20 | 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>
</table>

<?php
}
else
{
    if (!$user)
    {
        drawError('No such user, #' . $userID);
    }
    else
    {
        drawError('You do not have permission to access this page.');
    }
}

$page->drawFooter();

?>