diff --git a/config.php b/config.php index 70a431e..28c05fe 100644 --- a/config.php +++ b/config.php @@ -10,7 +10,7 @@ $dbsettings = Array( // These are used for display purposes only. Technically you could change them, but it's not going to // do anything special. And I'd prefer if you didn't, just to keep things all nice and standardized. -$version = "1.0.0"; +$version = "1.0.1"; $build = ""; ?> \ No newline at end of file diff --git a/images/map.gif b/images/map.gif new file mode 100644 index 0000000..d89ca9d Binary files /dev/null and b/images/map.gif differ diff --git a/index.php b/index.php index 6e54306..2ba4283 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,6 @@ install.php from your Dragon Knight directory before continuing."); } include('lib.php'); include('login.php'); $link = opendb(); @@ -227,7 +228,7 @@ function showmap() { . "\n"; $page = $xml . gettemplate("minimal"); - $array = array("content"=>"Map coming soon.", "title"=>"Map"); + $array = array("content"=>"
\"Map\"
", "title"=>"Map"); echo parsetemplate($page, $array); die(); diff --git a/install.php b/install.php index 8ec40ca..3263419 100644 --- a/install.php +++ b/install.php @@ -10,6 +10,7 @@ if (isset($_GET["page"])) { if ($page == 2) { second(); } elseif ($page == 3) { third(); } elseif ($page == 4) { fourth(); } + elseif ($page == 5) { fifth(); } else { first(); } } else { first(); } @@ -766,7 +767,12 @@ $page = <<
Be sure to delete install.php from your Dragon Knight directory for security purposes.

You are now ready to play the game. Note that you must log in through the public section before being allowed into the control panel. Once logged in, an "Admin" link will appear in the Functions box of the left sidebar panel.

-Thank you for using Dragon Knight! +Thank you for using Dragon Knight!

-----

+Optional: Dragon Knight is a free product, and does not require registration of any sort. However, there is an +optional "call home" function in the installer, which notifies the author of your game installation. The ONLY information +transmitted with this function is the URL to your game. This is included mainly to satisfy the author's curiosity about +how many copies of the game are being installed and used. If you choose to submit your URL to the author, please +click here. END; @@ -774,6 +780,29 @@ END; echo $page; die(); -} +} + +function fifth() { // Call Home function. + + $url = "http://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"]; + if (mail("jamin@se7enet.com", "Dragon Knight Call Home", "$url") != true) { die("Dragon Knight was unable to send your URL. Please go back and try again, or just continue on to the game."); } + +$page = << + +Dragon Knight Installation + + +Dragon Knight Installation: Page Five

+Thank you for submitting your URL!

+You are now ready to play the game. Note that you must log in through the public section before being allowed into the control panel. Once logged in, an "Admin" link will appear in the Functions box of the left sidebar panel. + + +END; + + echo $page; + die(); + +} ?> \ No newline at end of file diff --git a/templates/leftnav.php b/templates/leftnav.php index 4f13737..d583a52 100644 --- a/templates/leftnav.php +++ b/templates/leftnav.php @@ -5,7 +5,8 @@ $template = << Currently: {{currentaction}}
Latitude: {{latitude}}
-Longitude: {{longitude}}

+Longitude: {{longitude}}
+View Map


diff --git a/templates/primary.php b/templates/primary.php index 3d50017..6b6b072 100644 --- a/templates/primary.php +++ b/templates/primary.php @@ -64,6 +64,10 @@ function opencharpopup(){ var popurl="index.php?do=showchar" winpops=window.open(popurl,"","width=210,height=500,scrollbars") } +function openmappopup(){ +var popurl="index.php?do=showmap" +winpops=window.open(popurl,"","width=520,height=520,scrollbars") +}