Rev 484 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 276 | tom | 1 | <?php |
| 2 | |||
| 3 | require '../_taios.php'; |
||
| 4 | |||
| 5 | $page = new Taios_Page('Delete Category', '../'); |
||
| 6 | |||
| 7 | $page->checkLoggedIn(); |
||
| 8 | |||
| 9 | $id = $page->getGetID(); |
||
| 10 | |||
| 493 | tom | 11 | if ($page->isUserAdmin($page->getLoggedInUser())) { |
| 12 | $page->query("DELETE FROM ForumCategories WHERE ID = ?", array($id)); |
||
| 276 | tom | 13 | $page->redirect('index.php'); |
| 493 | tom | 14 | } else { |
| 276 | tom | 15 | $page->drawError('You do not have permission to access this page.'); |
| 16 | } |
||
| 17 | |||
| 18 | ?> |
||
| 19 |