Subversion Repositories taios

Rev

Rev 20 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
19 tom 1
<?php
2
 
3
require '../_taios.php';
4
 
5
$page = new Taios_Page('Administration', '../');
6
$page->drawHeader();
7
$page->drawMiddle();
8
 
9
$page->checkLoggedIn();
10
 
11
$userID = $page->getGetID();
12
$user = $page->getUserByID($userID);
13
 
14
if (($page->getLoggedInUser()->ID == $userID || $page->isUserAdmin($page->getLoggedInUser())) && $user)
15
{
16
?>
17
 
18
<table>
19
<tr>
20
<td class="bold">ID: </td>
21
<td><?php echo $user->ID; ?></td>
22
</tr>
23
</table>
24
 
25
<?php
26
}
27
else
28
{
29
    if (!$user)
30
    {
31
        drawError('No such user, #' . $userID);
32
    }
33
    else
34
    {
35
        drawError('You do not have permission to access this page.');
36
    }
37
}
38
 
39
$page->drawFooter();
40
 
41
?>