blob: 64eeccc0de20ca0a3591cc5daa9e0e66fcd44c81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?
ob_start("ob_gzhandler");
if ($_GET[r] == 'solution') {
solutionRespond();
exit;
}
function solutionRespond() {
session_start();
session_write_close();
if ($_SESSION['accepted'] != 1) exit;
include_once('../includes/maps.php');
$userID = $_SESSION['userID'];
$mapID = $_GET['mapid'] * 1;
if (!is_int($mapID)) exit;
$solution = getSolution($userID, $mapID);
echo json_encode($solution);
exit;
}
?>
|