mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-12 18:36:29 +00:00
18 lines
374 B
PHP
18 lines
374 B
PHP
<?
|
|
authorize();
|
|
|
|
if (!check_perms('site_moderate_forums')) {
|
|
error(403);
|
|
}
|
|
|
|
if (!isset($_POST['topicid'], $_POST['body']) || !is_number($_POST['topicid']) || $_POST['body'] == '') {
|
|
error(404);
|
|
}
|
|
|
|
$TopicID = (int)$_POST['topicid'];
|
|
|
|
Forums::add_topic_note($TopicID, $_POST['body']);
|
|
|
|
header("Location: forums.php?action=viewthread&threadid=$TopicID#thread_notes");
|
|
die();
|