mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-12 18:36:29 +00:00
19 lines
236 B
PHP
19 lines
236 B
PHP
<?
|
|
|
|
authorize();
|
|
|
|
if (!check_perms("users_mod")) {
|
|
error(404);
|
|
}
|
|
$ID = $_POST['question_id'];
|
|
|
|
if (!is_number($ID)) {
|
|
error(404);
|
|
}
|
|
|
|
G::$DB->query("
|
|
DELETE FROM user_questions
|
|
WHERE ID = '$ID'");
|
|
|
|
header("Location: questions.php");
|