summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php26
1 files changed, 19 insertions, 7 deletions
diff --git a/pages/home.php b/pages/home.php
index 7898a3c..f8841b5 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -1,6 +1,7 @@
<?php
include_once ('./includes/maps.php');
+include_once ('./includes/mapclass.php');
include_once ('./includes/mapoftheday.php');
include_once ('./includes/sqlEmbedded.php');
include_once ('./includes/datas.php');
@@ -115,12 +116,10 @@ $adContent = "
<div class="wrapper">
-<center>12/12/12 - We're introducing a new map & mechanic!
-I'd like to hear what you think about it!
-<br />Send me a line at the <a href="feedback">Feedback Page</a>.
-<br />Wir f&#252;hren eine neue Map und einen ne&#252;n Mechanismus ein!
-Ich w&#252;sste gern, was du davon h&#228;ltst!
-Schick mir einfach eine Zeile auf der <a href="feedback">Feedback-Seite</a>.
+<center>
+Tutorial, FAQ, and Challenge maps are broken. ^_^.
+<br />Still working on <a href='scores'>The Scores Page</a>.
+<br />Leave feedback in <a href='chat'>The Chat</a> as per usual.
</center>
<br />
@@ -228,7 +227,20 @@ function displayMaze($motd, $mapType) {
$r .= " <div style='text-align: center;'>";
$r .= " <div style='display:inline-block;margin: 0 auto;text-align: left;'>";
$r .= " <a href='javascript:requestSol(\"$mapID\");'><strong>Load your best solution</strong></a><br />";
- $r .= DisplayMap($map, $mapID);
+ //TMP
+
+ $mapObj = new map(getMapCode($mapID), $mapID);
+ $mapJSON = json_encode($mapObj);
+
+ $r .= "<div id='innerMapDsp_$mapID'>";
+ $r .= "</div>";
+ $r .= "<script>";
+ $r .= "document.getElementById('innerMapDsp_$mapID').innerHTML = mapAsHTML(decryptJSON('$mapJSON'));";
+ $r .= "</script>";
+
+
+
+ //$r .= DisplayMap($map, $mapID);
$r .= " </div></div>";
$r .= " <div style='padding-top: 20px;'>";