Files
newznab-tmux/public/pages/topic_delete.php
T

16 lines
219 B
PHP

<?php
use nntmux\Forum;
if (!$page->users->isLoggedIn()) {
$page->show403();
}
$forum = new Forum();
$id = $_GET['id'] + 0;
if (isset($id))
{
$forum->deleteParent($id);
header("Location:" . WWW_TOP . "/forum");
}