summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--css/page.css7
-rw-r--r--includes/mapoftheday.php2
-rw-r--r--includes/maps.php30
-rw-r--r--index.php10
-rw-r--r--js/mapspecs.js42
-rw-r--r--pages/about.php16
-rw-r--r--pages/admin.php153
-rw-r--r--pages/leaderboard.php9
8 files changed, 149 insertions, 120 deletions
diff --git a/css/page.css b/css/page.css
index 3421113..0237797 100644
--- a/css/page.css
+++ b/css/page.css
@@ -147,3 +147,10 @@ table.score th {
vertical-align: text-bottom;
overflow: hidden;
}
+#facebook {
+ border: none;
+ width: 95px;
+ height: 21px;
+ vertical-align: text-bottom;
+ overflow: hidden;
+}
diff --git a/includes/mapoftheday.php b/includes/mapoftheday.php
index 62b44a4..4112f94 100644
--- a/includes/mapoftheday.php
+++ b/includes/mapoftheday.php
@@ -1 +1 @@
-<?PHP include_once('maps.php'); include_once('db.inc.php'); //Select from current day. function getMapOfTheDay() { $sql = " select `ID`, `code` from `maps` WHERE ( DAY(dateCreated) = DAY(NOW()) AND MONTH(dateCreated) = MONTH(NOW()) AND YEAR(dateCreated) = YEAR(NOW()) ) "; $result = mysql_query($sql); //No map for today? if (mysql_num_rows($result) == 0) { // If you want to modify the maps created! This is the line $map = GenerateMap(rand(13, 18), rand(10, 14), rand(6, 9)); $code = GenerateMapCode($map); $sql = "INSERT INTO `maps` (`code`) VALUES ('$code')"; mysql_query($sql); $r['code'] = $code; $r['map'] = $map; $r['id'] = mysql_insert_id(); return $r; } $r['code'] = mysql_result($result, 0, 'code'); $r['map'] = GenerateMapByCode($r['code']); $r['id'] = mysql_result($result, 0, 'ID'); return $r; } function mapOfTheDay($type = 1) { $sql = " select maps.ID, maps.code FROM `mapOfTheDay`, `maps` WHERE `mapDate` = CURDATE() AND `mapType` = $type AND mapID = maps.ID "; $result = mysql_query($sql); //No map for today? if (mysql_num_rows($result) == 0) { // If you want to modify the maps created! This is the line //GenerateMap($rows, $cols, $rockchance, $numBlocks = -1, $cp = -1, $tp = -1) { switch ($type) { case 1: //Easy $map = GenerateMap(13, 7, 12, rand(7,10), rand(0, 2), 0); break; case 2: //Normal $map = GenerateMap(15, 9, 7, rand(11,13), rand(1,2) + rand(0,1), rand(0,1)); break; case 3: //Hard $map = GenerateMap(19, 9, rand(7, 9), rand(13,16), rand(2,5), rand(1,2)); break; case 4: //Full random map //Get the current day as int. $numday = date('w'); $numday = intval($numday); switch ($numday) { case 0: //Sunday //Thirty $map = GenerateMap( 18, 14, 20 , //width, height, rocks weight(30) , //Walls weight(1) , //Checkpoints weight(1) //Teleports ); break; case 1: //Monday //Simple $map = GenerateMap( 18, 9, 7 , //width, height, rocks weight(15,16,17) , //Walls weight(0) , //Checkpoints weight(0) //Teleports ); break; case 2: //Tuesday //ABC's $map = GenerateMap( 19, 11, 12 , //width, height, rocks weight(20,21,22,22,23) , //Walls weight(3) , //Checkpoints weight(0) //Teleports ); break; case 3: //Wednesday //Tele Madness $map = GenerateMap( 17, 12, 10 , //width, height, rocks weight(17,18) , //Walls weight(1) , //Checkpoints weight(5) //Teleports ); break; case 4: //Thursday //Rocky Maze $map = GenerateMap( 19, 15, 5 , //width, height, rocks weight(16,17,18) , //Walls weight(1,2,2,2,3,3) , //Checkpoints weight(0) //Teleports ); break; case 5: //Friday //Side to Side $map = GenerateMap( 26, 6, 12 , //width, height, rocks weight(17,18,19) , //Walls weight(2,2,2,3,3) , //Checkpoints weight(3,3,3,4) //Teleports ); break; case 6: //Saturday //Dual map $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "oqqqqqqqqqqqqqqqqqqqq"; $dualmapa[] = "oqqqqqqqqqqqqqqqqqqqq"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapa = insertPoint($dualmapa, 'abc'); $dualmapb = insertPoint($dualmapb, 'abc'); $dualmap = array_merge($dualmapa, $dualmapb); $dualmap = insertPoint($dualmap, 'tu'); $myparams['checkpoints'] = 3; $myparams['teleports'] = 1; $myparams['rockchance'] = 9; $myparams['walls'] = weight(20, 20, 21, 21, 22, 23); $map = GenerateShapedMap($dualmap, $myparams); break; } break; default: $map = GenerateMap(rand(13, 18), rand(10, 14), rand(6, 9)); break; } $code = GenerateMapCode($map); $sql = "INSERT INTO `maps` (`code`) VALUES ('$code')"; mysql_query($sql); $mapID = mysql_insert_id(); $r['code'] = $code; $r['map'] = $map; $r['id'] = $mapID; $sql = "INSERT INTO `mapOfTheDay` (`mapID`, `mapType`, `mapDate`) VALUES ('$mapID', '$type', CURDATE()) "; mysql_query($sql); return $r; } $r['code'] = mysql_result($result, 0, 'code'); $r['map'] = GenerateMapByCode($r['code']); $r['id'] = mysql_result($result, 0, 'ID'); return $r; } // RMA # CT1160811 // 97686 //Select from yesterday function getYesterdaysMap() { $sql = " select `ID`, `code` from `maps` WHERE ( DAY(dateCreated) = DAY(NOW()) - 1 AND MONTH(dateCreated) = MONTH(NOW()) AND YEAR(dateCreated) = YEAR(NOW()) ) "; $result = mysql_query($sql); //No map for today? if (mysql_num_rows($result) == 0) { return -1; } $r['code'] = mysql_result($result, 0, 'code'); $r['id'] = mysql_result($result, 0, 'ID'); return $r; } ?> \ No newline at end of file
+<?PHP include_once('maps.php'); include_once('db.inc.php'); //Select from current day. function getMapOfTheDay() { $sql = " select `ID`, `code` from `maps` WHERE ( DAY(dateCreated) = DAY(NOW()) AND MONTH(dateCreated) = MONTH(NOW()) AND YEAR(dateCreated) = YEAR(NOW()) ) "; $result = mysql_query($sql); //No map for today? if (mysql_num_rows($result) == 0) { // If you want to modify the maps created! This is the line $map = GenerateMap(rand(13, 18), rand(10, 14), rand(6, 9)); $code = GenerateMapCode($map); $sql = "INSERT INTO `maps` (`code`) VALUES ('$code')"; mysql_query($sql); $r['code'] = $code; $r['map'] = $map; $r['id'] = mysql_insert_id(); return $r; } $r['code'] = mysql_result($result, 0, 'code'); $r['map'] = GenerateMapByCode($r['code']); $r['id'] = mysql_result($result, 0, 'ID'); return $r; } function mapOfTheDay($type = 1) { $sql = " select maps.ID, maps.code FROM `mapOfTheDay`, `maps` WHERE `mapDate` = CURDATE() AND `mapType` = $type AND mapID = maps.ID "; $result = mysql_query($sql); //No map for today? if (mysql_num_rows($result) == 0) { // If you want to modify the maps created! This is the line //GenerateMap($rows, $cols, $rockchance, $numBlocks = -1, $cp = -1, $tp = -1) { switch ($type) { case 1: //Easy $map = GenerateMap(13, 7, 12, rand(7,10), rand(0, 2), 0); break; case 2: //Normal $map = GenerateMap(15, 9, 7, rand(11,13), rand(1,3) + rand(0,1), 0); break; case 3: //Hard $map = GenerateMap(19, 9, rand(7, 9), rand(14,16), rand(2,5), rand(1,2)); break; case 4: //Full random map //Get the current day as int. $numday = date('w'); $numday = intval($numday); switch ($numday) { case 0: //Sunday //Thirty $map = GenerateMap( 18, 14, 20 , //width, height, rocks weight(30) , //Walls weight(1) , //Checkpoints weight(1) //Teleports ); break; case 1: //Monday //Simple $map = GenerateMap( 18, 9, 7 , //width, height, rocks weight(15,16,17) , //Walls weight(0) , //Checkpoints weight(0) //Teleports ); break; case 2: //Tuesday //ABC's $map = GenerateMap( 19, 11, 12 , //width, height, rocks weight(20,21,22,22,23) , //Walls weight(3) , //Checkpoints weight(0) //Teleports ); break; case 3: //Wednesday //Tele Madness $map = GenerateMap( 17, 12, 10 , //width, height, rocks weight(17,18) , //Walls weight(1) , //Checkpoints weight(5) //Teleports ); break; case 4: //Thursday //Rocky Maze $map = GenerateMap( 19, 15, 5 , //width, height, rocks weight(16,17,18) , //Walls weight(1,2,2,2,3,3) , //Checkpoints weight(0) //Teleports ); break; case 5: //Friday //Side to Side $map = GenerateMap( 26, 6, 12 , //width, height, rocks weight(17,18,19) , //Walls weight(2,2,2,3,3) , //Checkpoints weight(3,3,3,4) //Teleports ); break; case 6: //Saturday //Dual map $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "s???????????????????f"; $dualmapa[] = "oqqqqqqqqqqqqqqqqqqqq"; $dualmapa[] = "oqqqqqqqqqqqqqqqqqqqq"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapb[] = "s???????????????????f"; $dualmapa = insertPoint($dualmapa, 'abc'); $dualmapb = insertPoint($dualmapb, 'abc'); $dualmap = array_merge($dualmapa, $dualmapb); $dualmap = insertPoint($dualmap, 'tu'); $myparams['checkpoints'] = 3; $myparams['teleports'] = 1; $myparams['rockchance'] = 9; $myparams['walls'] = weight(20, 20, 21, 21, 22, 23); $map = GenerateShapedMap($dualmap, $myparams); break; } break; default: $map = GenerateMap(rand(13, 18), rand(10, 14), rand(6, 9)); break; } $code = GenerateMapCode($map); $sql = "INSERT INTO `maps` (`code`) VALUES ('$code')"; mysql_query($sql); $mapID = mysql_insert_id(); $r['code'] = $code; $r['map'] = $map; $r['id'] = $mapID; $sql = "INSERT INTO `mapOfTheDay` (`mapID`, `mapType`, `mapDate`) VALUES ('$mapID', '$type', CURDATE()) "; mysql_query($sql); return $r; } $r['code'] = mysql_result($result, 0, 'code'); $r['map'] = GenerateMapByCode($r['code']); $r['id'] = mysql_result($result, 0, 'ID'); return $r; } // RMA # CT1160811 // 97686 //Select from yesterday function getYesterdaysMap() { $sql = " select `ID`, `code` from `maps` WHERE ( DAY(dateCreated) = DAY(NOW()) - 1 AND MONTH(dateCreated) = MONTH(NOW()) AND YEAR(dateCreated) = YEAR(NOW()) ) "; $result = mysql_query($sql); //No map for today? if (mysql_num_rows($result) == 0) { return -1; } $r['code'] = mysql_result($result, 0, 'code'); $r['id'] = mysql_result($result, 0, 'ID'); return $r; } ?> \ No newline at end of file
diff --git a/includes/maps.php b/includes/maps.php
index 2e80eb1..1f350ad 100644
--- a/includes/maps.php
+++ b/includes/maps.php
@@ -141,13 +141,25 @@ function DisplayMap($mapMatrix, $idprefix = 1, $style = 'normal', $speed = NULL)
if ($example) {
$output = $maptable;
- $output .= "<input id='$idprefix,btn' type='button' onclick='doSend($idprefix)' value='Test' />";
$output .= "
- <div style='display:none;'>
- <input type='checkbox' id='$idprefix,mute' checked='checked' />
- <select id='$idprefix,speed'>
- $rOption
- </select>
+ <div style='display:none'>
+ <select id='$idprefix,speed'>
+ $rOption
+ </select>
+ </div>
+
+ <div class='grid_dsp_left dsp_16'>
+ <input id='$idprefix,btn' type='button' onclick='doSend($idprefix)' value='Test' />
+ </div>
+
+ <div class='grid_dsp_mid dsp_16'>
+ $mutebutton
+ </div>
+
+ <div id='$idprefix,dspbr' class='grid_dsp_right dsp_60'>
+ <div id='$idprefix,dspCount' class='grid_dsp_data'>
+ 0 moves
+ </div>
</div>
";
$output .= $mapdatadiv;
@@ -167,23 +179,19 @@ function DisplayMap($mapMatrix, $idprefix = 1, $style = 'normal', $speed = NULL)
<div style='display:none;'>
<div id='$idprefix,dspID' title='MapID: $idprefix'>
</div>
-
-
</div>
-
<div id='$idprefix,dspbr' class='grid_dsp_left dsp_60'>
<div id='$idprefix,dspCount' class='grid_dsp_data'>
0 moves
</div>
</div>
-
+
<div id='$idprefix,dsptr' class='grid_dsp_right dsp_32'>
<span id='$idprefix,dspWalls' class='grid_dsp_data'>
".$mapdata['walls']." walls
</span>
</div>
-
$maptable
diff --git a/index.php b/index.php
index a14249f..82bceaf 100644
--- a/index.php
+++ b/index.php
@@ -72,7 +72,7 @@ switch (strtolower($_GET[page])) {
if ($_SESSION['isAdmin'] == true)
require 'pages/memberlist.php';
else
- require 'pages/memberlist.php';
+ require 'pages/about.php';
break;
case "logout":
@@ -84,7 +84,15 @@ switch (strtolower($_GET[page])) {
session_destroy();
header("Location: $mydomain");
break;
+
+ case "users":
+ require 'pages/users.php';
+ break;
+ case "challenge":
+ require 'pages/challenge.php';
+ break;
+
case "home":
//No break here
Default:
diff --git a/js/mapspecs.js b/js/mapspecs.js
index 00bde30..8659b7a 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -104,12 +104,12 @@ function grid_click(obj) {
function updateDsp(mapid, element, data) {
if (mapdata[mapid] == undefined)
return;
- if (mapdata[mapid].example != true) {
- if (document.getElementById(mapid+','+element) != undefined) {
- handle = document.getElementById(mapid+','+element);
- handle.innerHTML = data;
- }
+ //if (mapdata[mapid].example != true) {
+ if (document.getElementById(mapid+','+element) != undefined) {
+ handle = document.getElementById(mapid+','+element);
+ handle.innerHTML = data;
}
+ //}
}
function getmapdata(mapid) {
@@ -405,25 +405,7 @@ function doanimate(x, y, p, c, mapid) {
case 'g':
case 'i':
case 'k':
- //case 'n':
- // if (t == "u" || t == "n") {
- //alert("teleport");
- //if (checkSound(mapid)) {
- //soundManager.play('bling');
- //soundManager.play('sc');
- //soundManager.play('ufoblip');
- //soundManager.play('002');
- //soundManager.play('003');
- //soundManager.setVolume('click', 50);
- //soundManager.play('click');
- //soundManager.play('charm');
- //}
- //flashelement(eid, 4);
-
- // } else {
- // break;
- // }
- //Targets
+
case 'q': //Teleport out;
case 'b':
case 'c':
@@ -446,9 +428,8 @@ function doanimate(x, y, p, c, mapid) {
//Sound effects
if (c == 'r') {
if (checkSound(mapid)) {
+ soundManager.setVolume('bling', 50);
soundManager.play('bling');
- //soundManager.play('blip');
- //soundManager.play('charm');
}
}
@@ -484,6 +465,9 @@ function doanimate(x, y, p, c, mapid) {
//if anything worth mentioning happend let them know.
if (disptext != "") {
if (checkSound(mapid)) {
+ soundManager.setVolume('charm', 50);
+ soundManager.setVolume('bling', 50);
+ soundManager.setVolume('sc', 50);
soundManager.play('charm');
soundManager.play('bling');
soundManager.play('sc');
@@ -586,15 +570,13 @@ function doanimate(x, y, p, c, mapid) {
//Teleport Element ID
tpEid = mapid+','+x+','+y;
if (checkSound(mapid)) {
+ soundManager.setVolume('ufoblip', 50);
soundManager.play('ufoblip');
- //soundManager.play('002');
- //soundManager.play('003');
}
document.getElementById(eid).style.backgroundColor='#CCCCCC';
document.getElementById(tpEid).style.backgroundColor='#CCCCCC';
- //flashelement(eid, 7);
- flashelement(tpEid, 8, snake[mapid]['color']);
+ flashelement(tpEid, 8, snake[mapid]['color']);
//The path once teleported - and an r to indicate to gray the teleport-out too.
p = 'q'+tmp[2];
diff --git a/pages/about.php b/pages/about.php
index 9181a87..ab46c57 100644
--- a/pages/about.php
+++ b/pages/about.php
@@ -2,14 +2,26 @@
htmlHeader(array());
?>
+<link href="https://plus.google.com/105148482605711831543" rel="publisher" />
+
<body>
<?php
topbar($Links);
?>
<div class="wrapper">
- Email us: <a href='mailto:snapems@gmail.com'>snapems@gmail.com</a>
- <br />
+ Email us: <a href='mailto:snap@pathery.com'>snap@pathery.com</a>
+ <br /><br />Follow us on twitter:
+<a href="https://twitter.com/Pathery" class="twitter-follow-button" data-show-count="false">Follow @Pathery</a>
+<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
+ <br /><br />Like us on facebook:
+
+ <iframe id='facebook' src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com/pages/Pathery/176985129018434&amp;layout=button_count&amp;show_faces=false&amp;width=90&amp;action=like&amp;font&amp;colorscheme=dark&amp;height=21"></iframe>
+
+ <br />Follow us on Google Plus:
+ <a href="https://plus.google.com/105148482605711831543?prsrc=3" style="text-decoration:none;"><img src="https://ssl.gstatic.com/images/icons/gplus-32.png" alt="" style="border:0;width:32px;height:32px;"/></a>
+
+ <br /><br />
<h3>Created by:</h3>
Patrick Davison (Snap) and Rex Ounekeo
diff --git a/pages/admin.php b/pages/admin.php
index d825ebc..90060c2 100644
--- a/pages/admin.php
+++ b/pages/admin.php
@@ -10,84 +10,89 @@ include('./includes/maps.php');
include('./includes/mapoftheday.php');
include('./includes/db.inc.php');
-//$motd = MapOfTheDay(3);
-//$mapID = $motd['id'];
-
-$pastMap = pastMap(3, 1);
-$mapID = $pastMap;
-
-echo $mapID;
-
-//$mapID = '38';
-$mapcode = getMapCode($mapID);
-$map = GenerateMapByCode($mapcode);
-
-$sql = "SELECT `moves`, `displayName`, `solution`
- FROM `solutions`, `users`
- WHERE `mapID` = '$mapID' AND
- `userID` = users.ID
- ORDER BY `moves` DESC, `dateModified` ASC
- LIMIT 1";
-
-$result = mysql_query($sql) or die(mysql_error());
-if (mysql_num_rows($result) > 0) {
- list($bestMoves, $byName, $solution) = mysql_fetch_row($result);
- echo "<br />Best solution for this map: $bestMoves by $byName";
-
- //$map = MergeMapSolution($motd['map'], $solution);
- $map = MergeMapSolution($map, $solution);
- echo DisplayMap($map, $mapID);
-
- echo "<br />";
- echo "<br />Is Current:";
- $is = isCurrentMap(77);
- echo "<br />$is";
- $is = isCurrentMap(20);
- echo "<br />$is";
- $is = isCurrentMap(76);
- echo "<br />$is";
- $is = isCurrentMap(75);
- echo "<br />$is";
- $is = isCurrentMap(74);
- echo "<br />$is";
- echo "<br />";
-
-}
-function isCurrentMap($mapID) {
- include_once('./includes/db.inc.php');
- $sql = "SELECT `ID` FROM `mapOfTheDay`
- WHERE `mapDate` = CURDATE() AND
- `mapID` = '$mapID'
- ";
- $result = mysql_query($sql) or die(mysql_error());
- if (mysql_num_rows($result) == 0)
- return false;
- else
- return true;
+$sql = "SELECT `ID`, `displayName`, `dateJoined`, `dateLogin`, `email`, `isAdmin` FROM `users`";
+$result = mysql_query($sql);
+
+echo "
+<center>
+<h3>Administrators Page</h3>
+<p>News:</p>
+<p>Hello admins, this is our current userlist.</p>
+</center>
+<table style='padding-left:20px;'>
+<tr>
+<th>ID</th><th>Display name:</th><th>Joined On:</th><th>Last Logon</th><th>Email</th><th>Administrator</th>
+</tr>
+";
+
+while (list($CUID, $CUsername, $Joined, $LastLogon, $email, $isAdmin) = mysql_fetch_row($result)) {
+
+ //$Joined = Date("d/m/y - g:ia", $Joined);
+ $Joined = strtotime($Joined);
+ //$Joined = relative_date($Joined);
+ $Joined = date("Y-m-d", $Joined);
+
+ $LastLogon = strtotime($LastLogon);
+ //$LastLogon = relative_date($LastLogon);
+ $LastLogon = date("Y-m-d", $LastLogon);
+
+ if ($isAdmin == 1)
+ $isAdmin = "Yes";
+ else
+ $isAdmin = "No";
+
+
+ Echo "<tr>
+<td>$CUID</td>
+<td><a href='javascript:;'>$CUsername</a></td>
+<td>$Joined</td>
+<td>$LastLogon</td>
+<td>$email</td>
+<td>$isAdmin</td>
+</tr>";
+
}
+Echo "
+ </table>
+ <br />
+ <br />
+ </td>
+ </tr>
+</table>
+";
+
+
+//Thank you:
+//http://snippets.dzone.com/posts/show/196
+function relative_date($time) {
+ $today = strtotime(date('M j, Y'));
+ $reldays = ($time - $today)/86400;
+ if ($reldays >= 0 && $reldays < 1) {
+ return 'Today';
+ } else if ($reldays >= 1 && $reldays < 2) {
+ return 'Tomorrow';
+ } else if ($reldays >= -1 && $reldays < 0) {
+ return 'Yesterday';
+ }
+ if (abs($reldays) < 7) {
+ if ($reldays > 0) {
+ $reldays = floor($reldays);
+ return 'in ' . $reldays . ' day' . ($reldays != 1 ? 's' : '');
+ } else {
+ $reldays = abs(floor($reldays));
+ return $reldays . ' day' . ($reldays != 1 ? 's' : '') . ' ago';
+ }
+ }
+ if (abs($reldays) < 182) {
+ return date('l, F j',$time ? $time : time());
+ } else {
+ return date('l, F j, Y',$time ? $time : time());
+ }
+}
-echo "<br />";
-echo "<br />";
-echo "<br />Solution before";
-echo "<br />";
-echo $solution;
-echo "<br />";
-echo "<br />Solution after";
-echo "<br />";
-$solution = formSolution($solution);
-echo $solution;
-echo "<br />";
-echo "<br />";
-echo "<br />";
-// echo "<center><b> The map for today:
-// <br />Once logged in your best solutions for the map(s) are saved.
-// <br />- Soon i'll fix it so you can see those solutions, and compare them with others.
-// <br />- New maps are generated daily, at 9:00 PM Pacific Standard. (for now...)
-// </b></center>";
-// echo DisplayMap($motd['map'], $motd['id']);
@@ -226,4 +231,4 @@ function createThumbnail($mapMatrix, $idprefix, $width, $height) {
}
htmlFooter();
-?>
+?> \ No newline at end of file
diff --git a/pages/leaderboard.php b/pages/leaderboard.php
index d69d9fd..143188f 100644
--- a/pages/leaderboard.php
+++ b/pages/leaderboard.php
@@ -181,7 +181,7 @@ function displayPastMaze($mapType, $name, $daysago = 1) {
echo '<div class="col2">';
echo "Best solution for this map: <b>$bestMoves by $byName </b>";
- echo DisplayMap($map, $mapID, true, 2);
+ echo DisplayMap($map, $mapID, 'example', 2);
echo '</div>';
echo '</div>';
}
@@ -272,6 +272,13 @@ function showStats(type) {
showStats(0);
</script>
+<div id="copy">
+ Copyright &copy; 2011 pathery.com
+</div>
+
+<script src="sounds/script/soundmanager.js"></script>
+<script type="text/javascript">soundManagerInit();</script>
+
<?php
htmlFooter();
?>