enforce_login(); if(!check_perms('site_moderate_forums')) { error(403); } $ForumID = $_GET['forumid']; if(!is_number($ForumID)) { error(404); } if(!empty($_POST['add']) || (!empty($_POST['del']))) { if(!empty($_POST['add'])) { if(is_number($_POST['new_thread'])) { $DB->query("INSERT INTO forums_specific_rules (ForumID, ThreadID) VALUES (".$ForumID.", ".$_POST['new_thread'].")"); } } if(!empty($_POST['del'])) { if(is_number($_POST['threadid'])) { $DB->query("DELETE FROM forums_specific_rules WHERE ForumID = ".$ForumID." AND ThreadID = ".$_POST['threadid']); } } $Cache->delete_value('forums_list'); } $DB->query("SELECT ThreadID FROM forums_specific_rules WHERE ForumID = ".$ForumID); $ThreadIDs = $DB->collect('ThreadID'); show_header(); ?>
Thread ID | |
=$ThreadID?> |