From bf1cd3d12fefbb68443e3c2b24ef25db97af3693 Mon Sep 17 00:00:00 2001 From: Git Date: Tue, 7 Aug 2012 08:00:17 +0000 Subject: [PATCH] Empty commit --- sections/error/index.php | 5 ++- sections/tools/index.php | 1 - sections/tools/misc/countries.php | 67 +++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 sections/tools/misc/countries.php diff --git a/sections/error/index.php b/sections/error/index.php index c6343f87..6c39fc5d 100644 --- a/sections/error/index.php +++ b/sections/error/index.php @@ -21,7 +21,10 @@ function notify ($Channel, $Message) { break; case '404': $Title = "Error 404"; - $Description = "You just tried to go to a page that doesn't really exist."; + if(check_perms('users_mod')) { + $LogLink = " View Log"; + } + $Description = "You just tried to go to a page that doesn't really exist.".$LogLink; break; case '0': $Title = "Invalid Input"; diff --git a/sections/tools/index.php b/sections/tools/index.php index 6658f68b..8c89101a 100644 --- a/sections/tools/index.php +++ b/sections/tools/index.php @@ -285,7 +285,6 @@ case 'invite_pool': include('data/invite_pool.php'); break; - case 'torrent_stats': include('data/torrent_stats.php'); break; diff --git a/sections/tools/misc/countries.php b/sections/tools/misc/countries.php new file mode 100644 index 00000000..cbd6cfa0 --- /dev/null +++ b/sections/tools/misc/countries.php @@ -0,0 +1,67 @@ + 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'"); + } +} +?> + + +

IRC highlight on (fishy) invites sent to countries

+ + + + + + + + + + + + + + query("SELECT ID, Country FROM country_invites ORDER BY Country"); +while (list($ID, $Country) = $DB->next_record()) { + ?> + + + + + + + + + +
CountrySubmit
+ + + +
+ + + + +
+