mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-18 07:03:12 -04:00
15 lines
340 B
PHP
15 lines
340 B
PHP
<?php
|
|
|
|
$postId = (int)$_POST['id'];
|
|
if (!($postId && $Viewer->permitted('site_moderate_forums'))) {
|
|
json_error('no post id');
|
|
}
|
|
|
|
Gazelle\DB::DB()->prepared_query("
|
|
UPDATE reports SET
|
|
Notes = ?
|
|
WHERE ID = ?
|
|
", str_replace("<br />", "\n", trim($_POST['notes'])), $postId
|
|
);
|
|
print json_encode(['status' => 'success']);
|