Rev 19 | Rev 21 | Go to most recent revision | Details | Compare with Previous | 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> |
||
20 | tom | 19 | <tr><td class="bold">ID: </td><td><?php echo $user->ID; ?></td></tr> |
20 | <tr><td class="bold">AccessID: </td><td><?php echo $user->accessID; ?></td></tr> |
||
21 | <tr><td class="bold">Username: </td><td><?php echo $user->username; ?></td></tr> |
||
22 | <tr><td class="bold">Password: </td><td><?php echo $user->password; ?></td></tr> |
||
23 | <tr><td class="bold">Email Address: </td><td><?php echo $user->emailAddress; ?></td></tr> |
||
24 | <tr><td class="bold">Name: </td><td><?php echo $user->name; ?></td></tr> |
||
19 | tom | 25 | </table> |
26 | |||
27 | <?php |
||
28 | } |
||
29 | else |
||
30 | { |
||
31 | if (!$user) |
||
32 | { |
||
33 | drawError('No such user, #' . $userID); |
||
34 | } |
||
35 | else |
||
36 | { |
||
37 | drawError('You do not have permission to access this page.'); |
||
38 | } |
||
39 | } |
||
40 | |||
41 | $page->drawFooter(); |
||
42 | |||
43 | ?> |