summaryrefslogtreecommitdiffstats
path: root/includes/datas.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-05-15 11:20:40 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-05-15 11:20:40 -0700
commit7d2ce170b02d3fa0f7006084c92f6ec56dfbf9f1 (patch)
treea708f686265774740f564400910a09cafb615a2c /includes/datas.php
parentf7d2bffb4f3600757e28494d0556d5162d9fe024 (diff)
downloadpathery-7d2ce170b02d3fa0f7006084c92f6ec56dfbf9f1.tar.xz
Pronoun adjustment, and other minor fixes.
Diffstat (limited to 'includes/datas.php')
-rw-r--r--includes/datas.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/datas.php b/includes/datas.php
index 86fbb54..3ac6984 100644
--- a/includes/datas.php
+++ b/includes/datas.php
@@ -5,7 +5,7 @@
include_once('db.inc.php');
//Select Stats/Scores.
-function topScores($mapid, $top = 5) {
+function topScores($mapid, $top = 5, $bottom = 0) {
$sql = "
SELECT
timediff(solutions.dateModified, TIMESTAMP(CURDATE())) as diff,
@@ -24,7 +24,7 @@ function topScores($mapid, $top = 5) {
ON users.ID = userData.userID
WHERE solutions.mapID = '$mapid'
ORDER BY solutions.moves DESC, solutions.dateModified ASC
- LIMIT $top
+ LIMIT $bottom, $top
";
$result = mysql_query($sql);
$utime = date("g:i A (T)");
@@ -492,6 +492,7 @@ function getMazeMasteryArray() {
$r[6] = array(75, 2, 'CrossXL_B.png', 'Dark Large Present', 0);
$r[7] = array(100, 2, 'CircleLargeDonut_W.png', 'Light Annulated Circle', 0);
$r[8] = array(150, 2, 'CrossXL_W_I.png', 'Inverted Bright Large Present', 0);
+ $r[9] = array(225, 2, 'CircleLarge_W_I.png', 'Inverted Bright Large Circle', 0);
return $r;
}