summaryrefslogtreecommitdiffstats
path: root/ajax
diff options
context:
space:
mode:
Diffstat (limited to 'ajax')
-rw-r--r--ajax/scores.ajax.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/ajax/scores.ajax.php b/ajax/scores.ajax.php
new file mode 100644
index 0000000..2b27ca2
--- /dev/null
+++ b/ajax/scores.ajax.php
@@ -0,0 +1,21 @@
+<?
+session_start();
+session_write_close();
+//Just doing this as evidence that $_SESSION as read-only is still available.
+$userID = $_SESSION['userID'];
+
+require('../includes/maps.php');
+require('../includes/mapclass.php');
+require('../includes/datas.php');
+
+
+
+$mapID = $_GET['mapID'];
+
+$code = getMapCode($mapID);
+$map = GenerateMapByCode($code);
+echo displaymap($map, $mapID);
+
+
+
+?> \ No newline at end of file