summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2012-08-18 19:50:47 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2012-08-18 19:50:47 -0500
commitd2b27af54e560591e44393de0d22fd8621c3320c (patch)
tree2d8809d4594e0a3b548451e34ab15fdd6ebbf059 /pages
parent55656d931a05f533e11b8a3860c5dce4c66c88ca (diff)
parent4f00fc760a2d01542d70a5f3cbafea360b3766d6 (diff)
downloadpathery-d2b27af54e560591e44393de0d22fd8621c3320c.tar.xz
Merge branch 'master' of git.raylu.net:pathery
Diffstat (limited to 'pages')
-rw-r--r--pages/home.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/pages/home.php b/pages/home.php
index 7e5e401..2b59bc2 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -109,6 +109,15 @@ if ($special == '') {
$special = 'Special';
}
+$motd = MapOfTheDay(5);
+$jmid[5] = $motd['id'];
+$mapContent .= displayMaze($motd, 5);
+
+$special2 = $motd['map'][0][6];
+if ($special2 == '') {
+ $special2 = 'Special';
+}
+
?>
<div id="difficulties">
@@ -116,6 +125,7 @@ if ($special == '') {
<a href="javascript:showStats(2)" id="dl-2">Normal</a>
<a href="javascript:showStats(3)" id="dl-3">Complex</a>
<a href="javascript:showStats(4)" id="dl-4"><? echo $special; ?></a>
+ <a href="javascript:showStats(5)" id="dl-5"><? echo $special2; ?></a>
</div>
<div style="clear: both"></div>
@@ -247,7 +257,7 @@ $timerem = strtotime("tomorrow") - strtotime("now");
<script>
function showStats(type) {
- for (var i = 1; i <= 4; i++) {
+ for (var i = 1; i <= 5; i++) {
var elem = document.getElementById("yms-" + i);
elem.className = elem.className.replace('shown-maps', 'hidden-maps');
elem = document.getElementById("dl-" + i);
@@ -268,6 +278,7 @@ function showStats(type) {
jmid[2] = '$jmid[2]';
jmid[3] = '$jmid[3]';
jmid[4] = '$jmid[4]';
+ jmid[5] = '$jmid[5]';
";
?>
scoresRequestPage(jmid[type], currentPage[jmid[type]]);