Gazelle/sections/questions/take_ignore_question.php

19 lines
242 B
PHP
Raw Normal View History

2013-10-14 08:00:53 +00:00
<?
2013-10-28 08:01:14 +00:00
authorize();
2013-10-14 08:00:53 +00:00
if (!check_perms("users_mod")) {
error(404);
}
2013-10-28 08:01:14 +00:00
$ID = $_POST['id'];
2013-10-14 08:00:53 +00:00
if (!is_number($ID)) {
error(404);
}
G::$DB->query("
INSERT INTO staff_ignored_questions
(QuestionID, UserID)
VALUES
('$ID', '$LoggedUser[ID]')");