Gazelle/sections/questions/take_remove_question.php

19 lines
236 B
PHP
Raw Normal View History

2013-10-13 08:01:01 +00:00
<?
authorize();
if (!check_perms("users_mod")) {
error(404);
}
$ID = $_POST['question_id'];
if (!is_number($ID)) {
error(404);
}
2013-10-14 08:00:53 +00:00
G::$DB->query("
DELETE FROM user_questions
WHERE ID = '$ID'");
2013-10-13 08:01:01 +00:00
header("Location: questions.php");