2012-08-27 08:00:24 +00:00
|
|
|
<?php
|
2013-05-05 08:00:31 +00:00
|
|
|
|
|
|
|
if (!check_perms('users_warn')) {
|
|
|
|
error(404);
|
|
|
|
}
|
2012-10-11 08:00:15 +00:00
|
|
|
Misc::assert_isset_request($_POST, array('postid', 'userid', 'key'));
|
2013-10-30 08:01:19 +00:00
|
|
|
$PostID = (int)$_POST['postid'];
|
2012-08-29 08:00:17 +00:00
|
|
|
$UserID = (int)$_POST['userid'];
|
|
|
|
$Key = (int)$_POST['key'];
|
2012-10-11 08:00:15 +00:00
|
|
|
$UserInfo = Users::user_info($UserID);
|
2013-06-10 08:01:05 +00:00
|
|
|
$DB->query("
|
|
|
|
SELECT p.Body, t.ForumID
|
2013-11-17 08:00:47 +00:00
|
|
|
FROM forums_posts AS p
|
|
|
|
JOIN forums_topics AS t ON p.TopicID = t.ID
|
2013-06-10 08:01:05 +00:00
|
|
|
WHERE p.ID = '$PostID'");
|
2012-08-27 08:00:24 +00:00
|
|
|
list($PostBody, $ForumID) = $DB -> next_record();
|
2012-10-11 08:00:15 +00:00
|
|
|
View::show_header('Warn User');
|
2012-08-27 08:00:24 +00:00
|
|
|
?>
|
|
|
|
<div class="thin">
|
|
|
|
<div class="header">
|
|
|
|
<h2>Warning <a href="user.php?id=<?=$UserID?>"><?=$UserInfo['Username']?></a></h2>
|
|
|
|
</div>
|
|
|
|
<div class="thin box pad">
|
2013-10-30 08:01:19 +00:00
|
|
|
<form class="send_form" name="warning" action="" onsubmit="quickpostform.submit_button.disabled = true;" method="post">
|
2012-09-19 08:00:35 +00:00
|
|
|
<input type="hidden" name="postid" value="<?=$PostID?>" />
|
|
|
|
<input type="hidden" name="userid" value="<?=$UserID?>" />
|
|
|
|
<input type="hidden" name="key" value="<?=$Key?>" />
|
|
|
|
<input type="hidden" name="action" value="take_warn" />
|
2012-09-01 08:00:24 +00:00
|
|
|
<table class="layout" align="center">
|
2012-08-27 08:00:24 +00:00
|
|
|
<tr>
|
|
|
|
<td class="label">Reason:</td>
|
|
|
|
<td>
|
2013-11-13 08:00:59 +00:00
|
|
|
<input type="text" name="reason" size="60" />
|
2012-08-27 08:00:24 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-04-17 08:00:58 +00:00
|
|
|
<td class="label">Length:</td>
|
|
|
|
<td>
|
2013-11-13 08:00:59 +00:00
|
|
|
<select name="length">
|
|
|
|
<option value="verbal">Verbal</option>
|
|
|
|
<option value="1">1 week</option>
|
|
|
|
<option value="2">2 weeks</option>
|
|
|
|
<option value="4">4 weeks</option>
|
2013-06-04 08:00:34 +00:00
|
|
|
<? if (check_perms('users_mod')) { ?>
|
2013-11-13 08:00:59 +00:00
|
|
|
<option value="8">8 weeks</option>
|
2013-04-17 08:00:58 +00:00
|
|
|
<? } ?>
|
2013-11-13 08:00:59 +00:00
|
|
|
</select>
|
|
|
|
</td>
|
2013-04-17 08:00:58 +00:00
|
|
|
</tr>
|
2012-08-27 08:00:24 +00:00
|
|
|
<tr>
|
2013-05-05 08:00:31 +00:00
|
|
|
<td class="label">Private message:</td>
|
2012-08-31 08:00:22 +00:00
|
|
|
<td>
|
2013-11-13 08:00:59 +00:00
|
|
|
<textarea id="message" style="width: 95%;" tabindex="1" onkeyup="resize('message');" name="privatemessage" cols="90" rows="4"></textarea>
|
2012-08-31 08:00:22 +00:00
|
|
|
</td>
|
2012-08-27 08:00:24 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-05-05 08:00:31 +00:00
|
|
|
<td class="label">Edit post:</td>
|
2012-08-27 08:00:24 +00:00
|
|
|
<td>
|
|
|
|
<textarea id="body" style="width: 95%;" tabindex="1" onkeyup="resize('body');" name="body" cols="90" rows="8"><?=$PostBody?></textarea>
|
|
|
|
<br />
|
2013-06-04 08:00:34 +00:00
|
|
|
<input type="submit" id="submit_button" value="Warn user" tabindex="1" />
|
2012-08-27 08:00:24 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
2012-10-06 08:00:19 +00:00
|
|
|
</div>
|
2012-10-11 08:00:15 +00:00
|
|
|
<? View::show_footer(); ?>
|