Rev 258 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
169 | 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 | $user = $page->getLoggedInUser(); |
||
11 | |||
471 | muzer | 12 | if ($page->isUserNormal($user)) |
13 | { |
||
14 | write('<h4><a href="account.php?id=' . $user->ID. '">Manage Account</a></h4>'); |
||
15 | } |
||
16 | else |
||
17 | { |
||
18 | $page->drawError('You do not have permission to access this page.'); |
||
19 | } |
||
169 | tom | 20 | |
21 | if ($page->isUserAdmin($user)) |
||
22 | { |
||
23 | write('<h4><a href="all-accounts.php">Manage All Accounts</a></h4>'); |
||
24 | write('<h4><a href="all-blog-posts.php">Manage All Blog Posts</a></h4>'); |
||
25 | write('<h4><a href="all-projects.php">Manage All Projects</a></h4>'); |
||
26 | write('<h4><a href="all-forum-categories.php">Manage All Forum Categories</a></h4>'); |
||
27 | write('<h4><a href="all-forum-posts.php">Manage All Forum Posts</a></h4>'); |
||
28 | } |
||
29 | |||
30 | $page->drawFooter(); |
||
31 | |||
32 | ?> |
||
33 |