require("include/top.php");
if (!canEditBBSCategories()) die("AEGRHGAKEAHG!N!!!!!!!");
if($_POST) {
$submitok = mysql_query(sprintf("update bbs_topics set category=%d where id=%d",$_POST["category"],$_POST["which"]));
logGloperatorAction("topic_edit_category",$_POST["which"]);
}
$r = mysql_query(sprintf("select * from bbs_topics where id=%d",$_REQUEST["which"]));
$o = mysql_fetch_object($r);
?>