diff options
Diffstat (limited to 'do.php')
-rw-r--r-- | do.php | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -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));
}
|