Subversion Repositories taios

Rev

Rev 484 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

require '../_taios.php';

$page = new Taios_Page('Delete Category', '../');

$page->checkLoggedIn();

$id = $page->getGetID();

if ($page->isUserAdmin($page->getLoggedInUser())) {
    $page->query("DELETE FROM ForumCategories WHERE ID = ?", array($id));
    $page->redirect('index.php');
} else {
    $page->drawError('You do not have permission to access this page.');
}

?>