summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-03-07 03:00:04 -0600
committerBlueRaja <BlueRaja.admin@gmail.com>2013-03-07 03:00:04 -0600
commit534566ca37d8da800188b073652003671fc9671a (patch)
treecd14d9353d19a365a80b519a21feeefe9152efcd /index.php
parentef912adeeac6be3d623d602ce17f69b15ce65aa8 (diff)
parentee270d30697914e322dd1256e2e3e0b60df0ced5 (diff)
downloadpathery-534566ca37d8da800188b073652003671fc9671a.tar.xz
Merge branch 'master' of git.raylu.net:pathery
Conflicts: includes/db.inc.php
Diffstat (limited to 'index.php')
-rw-r--r--index.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/index.php b/index.php
index 9a5f7d7..49793a0 100644
--- a/index.php
+++ b/index.php
@@ -99,8 +99,15 @@ switch ($request) {
break;
case "redirect":
- $to = $_GET['to'];
- DoRedirect("<strong>THIS URL COULD BE UNSAFE! Please confirm!</strong><br/>", $to, $duration = "8");
+ //Whitelist things?
+ if (true) {
+ require('redirect.php');
+ } else {
+ //Redirect instantly:
+ $to = $_GET['to'];
+ DoRedirect(NULL, $to, $duration = "0");
+ }
+ exit;
break;
case "hometutorial":
@@ -212,6 +219,10 @@ switch ($request) {
require 'pages/chat.php';
break;
+ case "mapeditor":
+ require 'pages/mapeditor.php';
+ break;
+
case "admin":
if ($_SESSION['isAdmin'] == true) {
require 'pages/admin.php';