Empty commit

This commit is contained in:
Git 2012-08-07 08:00:17 +00:00
parent a5bf601bbd
commit bf1cd3d12f
3 changed files with 71 additions and 2 deletions

View File

@ -21,7 +21,10 @@ function notify ($Channel, $Message) {
break; break;
case '404': case '404':
$Title = "Error 404"; $Title = "Error 404";
$Description = "You just tried to go to a page that doesn't really exist."; if(check_perms('users_mod')) {
$LogLink = "<a href='log.php'> View Log</a>";
}
$Description = "You just tried to go to a page that doesn't really exist.".$LogLink;
break; break;
case '0': case '0':
$Title = "Invalid Input"; $Title = "Invalid Input";

View File

@ -285,7 +285,6 @@
case 'invite_pool': case 'invite_pool':
include('data/invite_pool.php'); include('data/invite_pool.php');
break; break;
case 'torrent_stats': case 'torrent_stats':
include('data/torrent_stats.php'); include('data/torrent_stats.php');
break; break;

View File

@ -0,0 +1,67 @@
<?php
if (!check_perms('users_mod')) { error(403);
}
show_header('Fishy Invites');
if (isset($_POST['newcountry'])) {
$country = mysql_escape_string(strtoupper($_POST['country']));
$DB -> query("INSERT INTO country_invites (Country) VALUES ('$country')");
}
if (isset($_POST['changecountry'])) {
$id = $_POST['id'];
$country = mysql_escape_string(strtoupper($_POST['country']));
if ($_POST['save']) {
$DB -> query("UPDATE country_invites SET Country = '$country' WHERE ID = '$id'");
}
if ($_POST['delete']) {
$DB -> query("DELETE FROM country_invites WHERE ID = '$id'");
}
}
?>
<h2>IRC highlight on (fishy) invites sent to countries</h2>
<table width="100%">
<tr class="colhead">
<td>Country</td>
<td>Submit</td>
</tr>
<tr/>
<tr>
<form method="post">
<input type="hidden" name="newcountry" value="1" />
<td>
<input type="text" name="country"/>
</td>
<td>
<input type="submit" value="Add Country"/>
</td>
</form>
</tr>
<?
$DB->query("SELECT ID, Country FROM country_invites ORDER BY Country");
while (list($ID, $Country) = $DB->next_record()) {
?>
<tr>
<form method="post">
<input type="hidden" name="changecountry" value="1" />
<input type="hidden" name="id" value="<?=$ID?>" />
<td>
<input type="text" name="country" value="<?=$Country?>"/>
</td>
<td>
<input type="submit" name="save" value="Save Country"/>
<input type="submit" name="delete" value="Delete Country"/>
</td>
</form>
</tr>
<? }?>
</table>
<?
show_footer();
?>