diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-02-09 14:16:37 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-02-09 14:16:37 -0800 |
commit | 9462f29413dc1320b3899f7fbbbb75be64fbaede (patch) | |
tree | 0f534c8ef712d519aea7ed6e919f0277af654088 /includes/datas.php | |
parent | 357e548fef7f73338e8c3e7415f2407c7dbb7ac7 (diff) | |
download | pathery-9462f29413dc1320b3899f7fbbbb75be64fbaede.tar.xz |
Huge changes; started deprecation of PHP's displayMap()
New JS function 'mapAsHTML(mapAsObject)'
getScores() will now return solutions if the map has expired.
Homepage now uses mapAsHTML.
Removed some padding on scoreboard.
scoresFormatPage() supports solutions if available. (This can be row-specific)
And tons of CSS - deprecating old CSS.
Diffstat (limited to 'includes/datas.php')
-rw-r--r-- | includes/datas.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/datas.php b/includes/datas.php index c6a0788..3f65466 100644 --- a/includes/datas.php +++ b/includes/datas.php @@ -905,8 +905,12 @@ function getScores($mapID, $pageNumber = 1, $pageDivide = 10) { $result = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_assoc($result); $myBestMoves = $row['moves']; - // echo "XX $myBestMoves XX "; - // echo "XX $userID XX "; + } + + $requestSolutions = ''; + $currentMap = isCurrentMap($mapID); + if (!$currentMap) { + $requestSolutions = 'solutions.solution,'; } $sql = " @@ -918,6 +922,7 @@ function getScores($mapID, $pageNumber = 1, $pageDivide = 10) { users.displayColor, users.wallColor, users.wallEmblem, + $requestSolutions solutions.dateModified as cdate FROM `users` |