summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-04-06 13:19:56 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-04-06 13:19:56 -0700
commitd7907b2889bda9926ebe9e2e574864d6b8d79fc3 (patch)
tree75ebf570c4f5863dc20340d572c32002a9f049bb /pages/home.php
parent54f2d89db19c85701a2d67a7cd72d0f28bbc2dcf (diff)
downloadpathery-d7907b2889bda9926ebe9e2e574864d6b8d79fc3.tar.xz
Brought back Special-map-names
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php44
1 files changed, 37 insertions, 7 deletions
diff --git a/pages/home.php b/pages/home.php
index cc4aca9..ff47634 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -22,7 +22,8 @@ if ($_SESSION[accepted] == 1) {
if ($result)
list($wallColor, $wallEmblem) = mysql_fetch_row($result);
- $note = getNotified($userID);
+ //$note = getNotified($userID);
+ $note = false;
if ($note !== false) {
//$note = str_replace("'", "\'", $note);
//Double your slashes double your fun (Required)
@@ -51,6 +52,36 @@ function tutorialComplete($userID) {
return false;
}
+//Get the current day as int.
+$numday = date('w');
+$numday = intval($numday);
+switch ($numday) {
+ case 0:
+ $mapstyle = 'Thirty';
+ break;
+ case 1:
+ $mapstyle = 'Simple';
+ break;
+ case 2:
+ $mapstyle = "ABC's";
+ break;
+ case 3:
+ $mapstyle = 'Teleport Madness';
+ break;
+ case 4:
+ $mapstyle = 'Rocky Maze';
+ break;
+ case 5: //Friday
+ $mapstyle = 'Side to Side';
+ break;
+ case 6: //Saturday
+ $mapstyle = "Seeing Double";
+ break;
+}
+
+
+
+
?>
@@ -67,10 +98,9 @@ topbar($Links);
?>
<div class="wrapper">
-<strong>Update in progress</strong>
-<p><strong>M</strong>any improvements including Achievements are being added!
-<br />During this testing phase, some achievements and unlocks may be removed or re-added for you.
-<br />Thank your for your patience! - Also please <a href='about'>email me or contact me</a> if you have suggestions or feedback.
+<strong>If you notice any issues, please press the Refresh button on your browser.</strong>
+<p><strong>M</strong>any improvements including Achievements have been added!
+<br />Please <a href='about'>email me or contact me</a> if you have suggestions!
</p>
<?
@@ -86,7 +116,7 @@ topbar($Links);
<a href="javascript:showStats(1)" id="dl-1">Simple</a>
<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">Special</a>
+ <a href="javascript:showStats(4)" id="dl-4"><? echo $mapstyle; ?></a>
</div>
<div style="clear: both"></div>
@@ -134,7 +164,7 @@ function displayMaze($mapType, $name) {
// echo ' </div>';
echo " <div style='text-align: center;'>";
echo " <div style='display:inline-block;margin: 0 auto;text-align: left;'>";
- echo " <a href='javascript:requestSol(\"$mapID\");'>Load your best solution</a><br />";
+ echo " <a href='javascript:requestSol(\"$mapID\");'><strong>Load your best solution</strong></a><br />";
echo DisplayMap($map, $mapID);
echo " </div></div>";