diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-07 03:00:04 -0600 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-07 03:00:04 -0600 |
commit | 534566ca37d8da800188b073652003671fc9671a (patch) | |
tree | cd14d9353d19a365a80b519a21feeefe9152efcd /pages/share.php | |
parent | ef912adeeac6be3d623d602ce17f69b15ce65aa8 (diff) | |
parent | ee270d30697914e322dd1256e2e3e0b60df0ced5 (diff) | |
download | pathery-534566ca37d8da800188b073652003671fc9671a.tar.xz |
Merge branch 'master' of git.raylu.net:pathery
Conflicts:
includes/db.inc.php
Diffstat (limited to 'pages/share.php')
-rw-r--r-- | pages/share.php | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/pages/share.php b/pages/share.php index 098c281..3c72c11 100644 --- a/pages/share.php +++ b/pages/share.php @@ -6,10 +6,12 @@ htmlHeader(array('stats')); <body>
<?php
+echo soundManager2();
topbar($Links);
include('./includes/maps.php');
+include('./includes/mapclass.php');
@@ -18,18 +20,28 @@ if (is_int($_GET['mapid'] + 0)) $mapcode = getMapCode($mapID);
//New code:
-if ($_GET['mapcode'])
- $mapcode = $_GET['mapcode'];
+if ($_GET['mapcode']) $mapcode = $_GET['mapcode'];
-$map = GenerateMapByCode($mapcode);
+//$map = GenerateMapByCode($mapcode);
+$map = new map($mapcode);
+$map->ID = 0;
+
+echo "<div class='wrapper'>";
+echo "<script>";
+echo "document.write(mapAsHTML(";
+echo json_encode($map);
+echo "))";
+echo "</script>";
+echo "</div>";
//echo DisplayMap($map, 1, 'example', 1);
-echo DisplayMap($map, 1);
+//echo DisplayMap($map, 1);
?>
+
<script>
loadSol('1:<? echo $_GET[solution]; ?>');
</script>
|