summaryrefslogtreecommitdiffstats
path: root/do.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-02-09 15:37:46 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-02-09 15:37:46 -0800
commitb40457114a6f5796229357555c80dfef74937a40 (patch)
tree21669b29bba7c64a0a030cf50aaabad92cc11a27 /do.php
parent519b360a15bfdeb1aa5cc560281f97def797050a (diff)
downloadpathery-b40457114a6f5796229357555c80dfef74937a40.tar.xz
Code cleanup / deletions.
Diffstat (limited to 'do.php')
-rw-r--r--do.php15
1 files changed, 2 insertions, 13 deletions
diff --git a/do.php b/do.php
index d822541..758ee7d 100644
--- a/do.php
+++ b/do.php
@@ -104,17 +104,6 @@ if ($_GET['r'] == 'reqScorePage') {
die($encoded);
}
-if ($_GET['r'] == 'getscores') {
- $mapID = $_GET['mapid'] + 0;
- if (!is_int($mapID))
- return;
- $topscores = topScores($mapID, 30);
- $json['scores'] = $topscores;
- $json['mapid'] = $mapID;
- $encoded = json_encode($json);
- die($encoded);
-}
-
if ($_GET['r'] == 'getsol') {
$mapID = $_GET['mapID'] + 0;
//echo "working...";
@@ -289,8 +278,8 @@ if ($_GET['r'] == 'getpath') {
$_SESSION['preCompletedTutorial'] = true;
$_SESSION['preCompletedTutorialNotified'] = false;
}
- if ($accepted == false)
- die(json_encode($json));
+ if ($accepted == false) die(json_encode($json));
+ //TODO: Where's $paths coming from?
getCompletedChallenges($userID, $mapID, $solution, $moves, $paths);
die(json_encode($json));
}