(root)/forums/delete-category-do.php @ 452 - Rev 493
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.');
}
?>