summaryrefslogtreecommitdiffstats
path: root/pages/challenge.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-01-25 19:27:51 -0600
committerBlueRaja <BlueRaja.admin@gmail.com>2013-01-25 19:27:51 -0600
commitaeacdd6ac410d4b576cf9e804d709cd64fa00384 (patch)
tree44fd65a626b44eb5e099e2cf2525ef11cef20def /pages/challenge.php
parentfed89ebc174dda0963856f992f6f9a26bbe1b182 (diff)
downloadpathery-aeacdd6ac410d4b576cf9e804d709cd64fa00384.tar.xz
Tiers are now unlocked as the user players through challenges; challenges left to next tier displayed on challengelist page
(untested)
Diffstat (limited to 'pages/challenge.php')
-rw-r--r--pages/challenge.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/pages/challenge.php b/pages/challenge.php
index ceefebe..e5fcd45 100644
--- a/pages/challenge.php
+++ b/pages/challenge.php
@@ -69,16 +69,16 @@ topbar($Links);
//Check that the user is allowed to do the challenges
if (!$accepted) {
- echo "<center>Please <a href='login'>login</a> to do the challenges!</div>";
+ echo "<center>Please <a href='login'>login</a> to do the challenges!</center></div>";
+ htmlFooter();
+ return;
+}
+
+if (!hasCompletedTutorial($userID)) {
+ echo "<center>Please <a href='tutorial'>complete the tutorial</a> to unlock Challenge mode!</div>";
htmlFooter();
return;
}
-//TODO: Uncomment
-//if (!hasCompletedTutorial($userID)) {
-// echo "<center>Please <a href='tutorial'>complete the tutorial</a> to unlock Challenge mode!</div>";
-// htmlFooter();
-// return;
-//}
if(!isset($_GET["mapID"]))
{