mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
17 lines
271 B
PHP
17 lines
271 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 staff_answers WHERE QuestionID = '$ID' AND UserID = '$LoggedUser[ID]'");
|
|
|
|
header("Location: questions.php");
|