summaryrefslogtreecommitdiffstats
path: root/pages/challengelist.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2012-10-01 14:50:10 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2012-10-01 14:50:10 -0500
commit7a60127a4b17e74860a80a62cdfc53ca37cbff19 (patch)
treeb305eae77397d71dc1f3dd6c6519f5a261887fa2 /pages/challengelist.php
parent526f8dc4b3ce81b5589d2f8a9bdcfab14151dfaf (diff)
downloadpathery-7a60127a4b17e74860a80a62cdfc53ca37cbff19.tar.xz
Added a challenge-listing page, and skeleton code for the listing itself
Diffstat (limited to 'pages/challengelist.php')
-rw-r--r--pages/challengelist.php63
1 files changed, 63 insertions, 0 deletions
diff --git a/pages/challengelist.php b/pages/challengelist.php
new file mode 100644
index 0000000..e7ade3c
--- /dev/null
+++ b/pages/challengelist.php
@@ -0,0 +1,63 @@
+<?php
+ob_start("ob_gzhandler");
+htmlHeader(
+ array('tutorial', 'challenge'), 'Pathery Challenges',
+ 'Challenges', array('scores', 'dateformat')
+);
+
+include_once ('./includes/maps.php');
+include_once ('./includes/mapoftheday.php');
+include_once ('./includes/db.inc.php');
+include_once ('./includes/datas.php');
+
+topbar($Links);
+?>
+
+<div id="challengelist_wrapper" class="wrapper">
+
+<?
+
+//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>";
+ htmlFooter();
+ return;
+}
+
+//TODO: Uncomment
+//if (!hasCompletedTutorial($userID)) {
+// echo "<center>Please <a href='tutorial'>complete the tutorial</a> to unlock Challenge mode!</div>";
+// htmlFooter();
+// return;
+//}
+
+?>
+ <noscript>Sorry, this game requires scripts to run. Please enable javascript and <a href='home'>Reload this site</a>
+ <br />This game is best viewed in <a href='http://www.google.com/chrome'>Google Chrome</a>
+ </noscript>
+<?
+
+//Display the actual challenge list
+$challengeListResultset = loadChallengeListing($userID);
+displayChallengeList($challengeListResultset);
+
+?>
+</div>
+
+<div id="copy" style='width:100%;clear: both'>
+ Copyright &copy; 2011-2012 pathery.com
+</div>
+
+<?php
+htmlFooter();
+?>
+
+<?php
+/**
+ * Outputs the list of all challenges to the page
+ */
+function displayChallengeList($challengeListResultset)
+{
+ //TODO: implement
+}
+?> \ No newline at end of file