setTimeout(\"showNotification('".$note."');\", 1000);
if (getCookie('pref_mute') != 'true') {
setTimeout(\"soundManager.setVolume('achieve', 40);\", 1340);
setTimeout(\"soundManager.play('achieve');\", 1350);
}
";
}
}
?>
Site update complete!
If you find any problems/bugs please report them using our Feedback Page
Thank you!!
if ($accepted) {
if (!hasCompletedTutorial($userID)) {
echo "
Complete the tutorial to unlock a blue wall color:";
echo "";
}
}
$motd = MapOfTheDay(1);
$jmid[1] = $motd['id'];
$mapContent = displayMaze($motd, 1);
$motd = MapOfTheDay(2);
$jmid[2] = $motd['id'];
$mapContent .= displayMaze($motd, 2);
$motd = MapOfTheDay(3);
$jmid[3] = $motd['id'];
$mapContent .= displayMaze($motd, 3);
$motd = MapOfTheDay(4);
$jmid[4] = $motd['id'];
$mapContent .= displayMaze($motd, 4);
$special = $motd['map'][0][6];
if ($special == '') {
$special = 'Special';
}
$motd = MapOfTheDay(5);
$jmid[5] = $motd['id'];
$mapContent .= displayMaze($motd, 5);
$special2 = $motd['map'][0][6];
if ($special2 == '') {
$special2 = 'Special';
}
?>
echo $mapContent; ?>
function displayMaze($motd, $mapType) {
global $accepted, $userID;
//Gather data for map;
$mapID = $motd['id'];
$map = $motd['map'];
$width = $map[0][0];
//data for the topscores
//$topscores = topScores($motd['id'], 30);
//$topscorediv = "
\n$topscores\n
";
$topscorediv = "
";
$mysolution = '';
$mymoves = '';
if ($accepted) {
$sol = getSolution($userID, $mapID);
$mysolution = $sol['solution'];
//TODO: implement mymoves
$mymoves = $sol['moves'];
}
if (isset($_SESSION[$mapID.'sol']) && $mysolution == '') {
$mysolution = $_SESSION[$mapID.'sol'];
$mymoves = $_SESSION[$mapID.'moves'];
}
$r = "
";
$r .= "
";
$r .= "
";
$r .= "
";
$r .= $topscorediv;
$r .= '
';
$r .= '
';
$r .= '
';
$mapSolDiv = "";
$r .= $mapSolDiv;
//Clear our floatingness
$r .= '
';
return $r;
}
$timerem = strtotime("tomorrow") - strtotime("now");
?>
New maps in: 00:00:00