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'"); + } +} +?> + + +
Country | +Submit | +