2012-08-27 08:00:24 +00:00
|
|
|
<?php
|
|
|
|
if (!check_perms('users_warn')) { error(404);}
|
2012-08-29 08:00:17 +00:00
|
|
|
isset_request($_POST, array('groupid', 'postid', 'userid', 'key'));
|
2012-08-27 08:00:24 +00:00
|
|
|
|
2012-08-29 08:00:17 +00:00
|
|
|
$GroupID = (int) $_POST['groupid'];
|
|
|
|
$PostID = (int) $_POST['postid'];
|
|
|
|
$UserID = (int) $_POST['userid'];
|
|
|
|
$Key = (int) $_POST['key'];
|
2012-08-27 08:00:24 +00:00
|
|
|
$UserInfo = user_info($UserID);
|
|
|
|
$DB -> query("SELECT
|
|
|
|
tc.Body,
|
|
|
|
tc.AddedTime
|
|
|
|
FROM torrents_comments AS tc
|
|
|
|
WHERE tc.ID='" . db_string($PostID) . "'");
|
|
|
|
list($PostBody) = $DB -> next_record();
|
|
|
|
|
|
|
|
show_header('Warn User');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="thin">
|
|
|
|
<div class="header">
|
|
|
|
<h2>Warning <a href="user.php?id=<?=$UserID?>"><?=$UserInfo['Username']?></a></h2>
|
|
|
|
</div>
|
|
|
|
<div class="thin box pad">
|
2012-09-15 08:00:25 +00:00
|
|
|
<form class="create_form" name="warning" action="" onsubmit="quickpostform.submit_button.disabled=true;" method="post">
|
2012-09-19 08:00:35 +00:00
|
|
|
<input type="hidden" name="groupid" value="<?=$GroupID?>" />
|
|
|
|
<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>
|
2012-09-19 08:00:35 +00:00
|
|
|
<input type="text" name="reason" size="30" />
|
2012-08-27 08:00:24 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">Length:</td>
|
|
|
|
<td>
|
|
|
|
<select name="length">
|
|
|
|
<option value="verbal">Verbal</option>
|
|
|
|
<option value="1">1 week</option>
|
2012-09-19 08:00:35 +00:00
|
|
|
<option value="2">2 weeks</option>
|
|
|
|
<option value="4">4 weeks</option>
|
2012-08-31 08:00:22 +00:00
|
|
|
<? if(check_perms("users_mod")) { ?>
|
2012-09-19 08:00:35 +00:00
|
|
|
<option value="8">8 weeks</option>
|
2012-08-31 08:00:22 +00:00
|
|
|
<? } ?>
|
2012-08-27 08:00:24 +00:00
|
|
|
</select></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">Private Message:</td>
|
2012-08-31 08:00:22 +00:00
|
|
|
<td>
|
2012-08-27 08:00:24 +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>
|
|
|
|
<td class="label">Edit Post:</td>
|
2012-08-31 08:00:22 +00:00
|
|
|
<td>
|
|
|
|
<textarea id="body" style="width: 95%;" tabindex="1" onkeyup="resize('body');" name="body" cols="90" rows="8"><?=$PostBody?></textarea>
|
|
|
|
<br />
|
|
|
|
<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-09-19 08:00:35 +00:00
|
|
|
<? show_footer(); ?>
|