diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-02-09 15:37:46 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-02-09 15:37:46 -0800 |
commit | b40457114a6f5796229357555c80dfef74937a40 (patch) | |
tree | 21669b29bba7c64a0a030cf50aaabad92cc11a27 /do.php | |
parent | 519b360a15bfdeb1aa5cc560281f97def797050a (diff) | |
download | pathery-b40457114a6f5796229357555c80dfef74937a40.tar.xz |
Code cleanup / deletions.
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));
}
|