diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-01-25 20:31:34 -0600 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-01-25 20:31:34 -0600 |
commit | 1e65273d68ffdec07f49c14e929499af21f7776a (patch) | |
tree | b96bc71d1645a66cc2754996fcecba71dfcd596c /pages/challenge.php | |
parent | f20d2221d1da6f7e1d3b7126261ee320ed0158b2 (diff) | |
parent | 8a276a1857bc28677ac43c083d44a0ce5bf63343 (diff) | |
download | pathery-1e65273d68ffdec07f49c14e929499af21f7776a.tar.xz |
Merge branch 'doin_shit_on_laptop'
Conflicts:
includes/datas.php
also fixed some stuffs
Diffstat (limited to 'pages/challenge.php')
-rw-r--r-- | pages/challenge.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pages/challenge.php b/pages/challenge.php index 4e5c50c..84b401b 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["challengeMapID"]) OR !is_int($_GET["challengeMapID"] + 0))
{
|