Subversion Repositories taios

Rev

Rev 484 | Go to most recent revision | Details | 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
 
11
if ($page->isUserAdmin($page->getLoggedInUser()))
12
{
13
    $page->query('DELETE FROM ForumCategories WHERE ID = ' . $id);
14
    $page->redirect('index.php');
15
}
16
else
17
{
18
    $page->drawError('You do not have permission to access this page.');
19
}
20
 
21
?>
22