mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-19 04:31:36 +00:00
19 lines
273 B
PHP
19 lines
273 B
PHP
|
<?
|
||
|
|
||
|
if (!check_perms("users_mod")) {
|
||
|
error(404);
|
||
|
}
|
||
|
$ID = $_POST['question_id'];
|
||
|
|
||
|
if (!is_number($ID)) {
|
||
|
error(404);
|
||
|
}
|
||
|
|
||
|
G::$DB->query("
|
||
|
INSERT INTO staff_ignored_questions
|
||
|
(QuestionID, UserID)
|
||
|
VALUES
|
||
|
('$ID', '$LoggedUser[ID]')");
|
||
|
|
||
|
header("Location: questions.php");
|