2011-03-28 14:21:28 +00:00
|
|
|
<?
|
2012-08-12 08:00:16 +00:00
|
|
|
if (!check_perms('users_view_email')) { error(403);
|
|
|
|
}
|
2011-03-28 14:21:28 +00:00
|
|
|
|
|
|
|
show_header('Manage email blacklist');
|
2012-08-12 08:00:16 +00:00
|
|
|
$DB -> query("SELECT
|
2011-03-28 14:21:28 +00:00
|
|
|
eb.ID,
|
|
|
|
eb.UserID,
|
|
|
|
eb.Time,
|
|
|
|
eb.Email,
|
2012-04-23 08:00:43 +00:00
|
|
|
eb.Comment
|
2011-03-28 14:21:28 +00:00
|
|
|
FROM email_blacklist AS eb
|
|
|
|
ORDER BY eb.Time DESC");
|
|
|
|
?>
|
2012-08-19 08:00:19 +00:00
|
|
|
<div class="header">
|
|
|
|
<h2>Email Blacklist</h2>
|
|
|
|
</div>
|
2011-03-28 14:21:28 +00:00
|
|
|
<table>
|
|
|
|
<tr class="colhead">
|
|
|
|
<td>Email</td>
|
|
|
|
<td>Comment</td>
|
|
|
|
<td>Added</td>
|
|
|
|
<td>Submit</td>
|
|
|
|
</tr>
|
2012-09-01 08:00:24 +00:00
|
|
|
<tr class="colhead">
|
2012-09-23 08:00:25 +00:00
|
|
|
<td colspan="4">Add Email or Domain to Blacklist</td>
|
2012-08-12 08:00:16 +00:00
|
|
|
</tr>
|
|
|
|
<tr class="rowa">
|
2012-09-15 08:00:25 +00:00
|
|
|
<form class="add_form" name="email_blacklist" action="tools.php" method="post">
|
2012-08-12 08:00:16 +00:00
|
|
|
<input type="hidden" name="action" value="eb_alter" />
|
|
|
|
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
2011-03-28 14:21:28 +00:00
|
|
|
<td>
|
2012-09-23 08:00:25 +00:00
|
|
|
<input type="text" name="email" size="30" />
|
2012-08-12 08:00:16 +00:00
|
|
|
</td>
|
|
|
|
<td colspan="2">
|
2012-09-23 08:00:25 +00:00
|
|
|
<input type="text" name="comment" size="60" />
|
2011-03-28 14:21:28 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2012-09-23 08:00:25 +00:00
|
|
|
<input type="submit" value="Create" />
|
2012-08-12 08:00:16 +00:00
|
|
|
</td>
|
|
|
|
</form>
|
|
|
|
</tr>
|
|
|
|
<? while(list($ID, $UserID, $Time, $Email, $Comment) = $DB->next_record()) {
|
|
|
|
?>
|
|
|
|
<tr>
|
2012-09-15 08:00:25 +00:00
|
|
|
<form class="manage_form" name="email_blacklist" action="tools.php" method="post">
|
2012-08-12 08:00:16 +00:00
|
|
|
<td>
|
2012-09-23 08:00:25 +00:00
|
|
|
<input type="hidden" name="action" value="eb_alter" />
|
|
|
|
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
|
|
|
<input type="hidden" name="id" value="<?=$ID?>" />
|
|
|
|
<input type="text" name="email" value="<?=display_str($Email)?>" size="30" />
|
2011-03-28 14:21:28 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2012-09-23 08:00:25 +00:00
|
|
|
<input type="text" name="comment" value="<?=display_str($Comment)?>" size="60" />
|
2012-08-12 08:00:16 +00:00
|
|
|
</td>
|
|
|
|
<td><?=format_username($UserID, false, false, false)
|
|
|
|
?><br /><?=time_diff($Time, 1)
|
|
|
|
?></td>
|
2011-03-28 14:21:28 +00:00
|
|
|
<td>
|
2012-09-23 08:00:25 +00:00
|
|
|
<input type="submit" name="submit" value="Edit" />
|
|
|
|
<input type="submit" name="submit" value="Delete" />
|
2011-03-28 14:21:28 +00:00
|
|
|
</td>
|
|
|
|
</form>
|
|
|
|
</tr>
|
2012-08-12 08:00:16 +00:00
|
|
|
<? }?>
|
2011-03-28 14:21:28 +00:00
|
|
|
</table>
|
2012-09-23 08:00:25 +00:00
|
|
|
<? show_footer();?>
|