summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php
index 0e5bb2e..43a26d6 100644
--- a/index.php
+++ b/index.php
@@ -226,6 +226,14 @@ switch ($request) {
require 'pages/mapeditor.php';
break;
+ case "challengeeditor":
+ if ($_SESSION['isAdmin'] == true) {
+ require 'pages/challengeeditor.php';
+ } else {
+ require 'pages/home.php';
+ }
+ break;
+
case "admin":
if ($_SESSION['isAdmin'] == true) {
require 'pages/admin.php';