summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-01-08 01:53:05 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-01-08 01:53:05 -0800
commit6b8c58ac2d4de502421acef48f4434bee605633f (patch)
treeb6ed4553388d0058952a987734a317ecfaea13f9 /index.php
parenta431308aa3c6c698d23b45bf5e1f905123e0cba5 (diff)
downloadpathery-6b8c58ac2d4de502421acef48f4434bee605633f.tar.xz
Challenges Implementation. LOTS of stuff
Fixed an issue with loading best solution from logged out to logged in state. Commented out a lot of firephp stuff; feel free to uncomment.
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/index.php b/index.php
index 60cd81a..9175b30 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,16 @@
<?PHP
ob_start("ob_gzhandler");
+
+//TODO: !! Make sure updating.php exists, and that the images in images/btns/ are uploaded.
+//Show updating page?
+//$showUpdatePage = true;
+$showUpdatePage = false;
+
+if ($showUpdatePage AND $_GET['cu'] !== "true") {
+ require("updating.php");
+ exit;
+}
+
//globe will start the session.
include_once("globe.php");
include_once("./includes/header.php");
@@ -48,6 +59,7 @@ if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin'] == true) {
//Links appear in order.
$Links['home'] = "Home";
$Links['leaderboard'] = "Scores";
+$Links['challengelist'] = "Challenges <i>BETA!</i>";
//$Links['howtoplay'] = "How to Play";
//$Links['tutorial'] = "Tutorial";