From b40457114a6f5796229357555c80dfef74937a40 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sat, 9 Feb 2013 15:37:46 -0800 Subject: Code cleanup / deletions. --- do.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'do.php') 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)); } -- cgit v1.2.3