blob: e7ade3cba0cd08f22e8ff4aba4f1c14ec6d74d3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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 © 2011-2012 pathery.com
</div>
<?php
htmlFooter();
?>
<?php
/**
* Outputs the list of all challenges to the page
*/
function displayChallengeList($challengeListResultset)
{
//TODO: implement
}
?>
|