Subversion Repositories taios

Rev

Rev 276 | Go to most recent revision | 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
 
11
if ($page->isUserAdmin($page->getLoggedInUser()))
12
{
484 muzer 13
    $page->query('DELETE FROM ForumCategories WHERE ID = "' . $id . '"');
276 tom 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