mirror of
https://github.com/BillyOutlast/Gazelle-Porn.git
synced 2026-02-04 11:01:19 +01:00
54 lines
1.8 KiB
PHP
54 lines
1.8 KiB
PHP
<?
|
|
Text::$TOC = true;
|
|
if (!check_perms("users_mod")) {
|
|
error(403);
|
|
}
|
|
|
|
$ID = $_GET['id'];
|
|
|
|
if (!is_number($ID)) {
|
|
error(404);
|
|
}
|
|
|
|
$DB->query("
|
|
SELECT ID, Question, UserID, Date
|
|
FROM user_questions
|
|
WHERE ID = '$ID'");
|
|
$Question = $DB->next_record();
|
|
|
|
View::show_header('Ask the Staff', 'bbcode', 'PageQuestionAnswer');
|
|
?>
|
|
<div class="LayoutBody">
|
|
<h2>
|
|
Answer Question
|
|
</h2>
|
|
<div class="BodyNavLinks">
|
|
<a class="brackets" href="questions.php">View questions</a>
|
|
<a class="brackets" href="questions.php?action=answers">View staff answers</a>
|
|
<a class="brackets" href="questions.php?action=popular_questions">Popular questions</a>
|
|
<div class="box box2">
|
|
<div class="head">
|
|
<span>
|
|
#<?= $Question['ID'] ?>
|
|
<?= Users::format_username($Question['UserID']) ?> - <?= time_diff($Question['Date']) ?>
|
|
</span>
|
|
</div>
|
|
<div class="pad HtmlText">
|
|
<?= Text::full_format($Question['Question']) ?>
|
|
</div>
|
|
</div>
|
|
<div class="Box center">
|
|
<form class="Box-body" method="post">
|
|
<input type="hidden" name="action" value="take_answer_question" />
|
|
<input type="hidden" name="auth" value="<?= $LoggedUser['AuthKey'] ?>" />
|
|
<input type="hidden" name="id" value="<?= $ID ?>" />
|
|
<textarea class="Input" id="answer" class="required" onkeyup="resize('answer');" name="answer" cols="90" rows="8"></textarea>
|
|
<div id="buttons" class="center">
|
|
<input class="Button" type="submit" id="submit_button" value="Answer" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<?
|
|
View::show_footer();
|