diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-07 03:00:04 -0600 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-07 03:00:04 -0600 |
commit | 534566ca37d8da800188b073652003671fc9671a (patch) | |
tree | cd14d9353d19a365a80b519a21feeefe9152efcd /index.php | |
parent | ef912adeeac6be3d623d602ce17f69b15ce65aa8 (diff) | |
parent | ee270d30697914e322dd1256e2e3e0b60df0ced5 (diff) | |
download | pathery-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.php | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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';
|