summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php4
-rw-r--r--pages/share.php34
2 files changed, 38 insertions, 0 deletions
diff --git a/index.php b/index.php
index 82bceaf..bdb2754 100644
--- a/index.php
+++ b/index.php
@@ -25,6 +25,10 @@ switch (strtolower($_GET[page])) {
require("pages/test.php");
break;
+ case "share":
+ require("pages/share.php");
+ break;
+
case "tutorial":
require("pages/tutorial.php");
break;
diff --git a/pages/share.php b/pages/share.php
new file mode 100644
index 0000000..1193bb6
--- /dev/null
+++ b/pages/share.php
@@ -0,0 +1,34 @@
+<?php
+htmlHeader(array('stats'));
+?>
+
+
+<body>
+
+<?php
+topbar($Links);
+
+
+include('./includes/maps.php');
+
+
+
+if (is_int($_GET['mapid'] + 0))
+ $mapID = $_GET['mapid'] + 0;
+
+$mapcode = getMapCode($mapID);
+$map = GenerateMapByCode($mapcode);
+
+
+
+echo DisplayMap($map, 1, 'example', 1);
+?>
+
+<script>
+loadSol('1:<? echo $_GET[solution]; ?>');
+</script>
+
+
+<?php
+htmlFooter();
+?> \ No newline at end of file