v1.0.1
v1.0.1
This commit is contained in:
parent
accb18b059
commit
6cc33515e7
|
@ -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 = "";
|
||||
|
||||
?>
|
BIN
images/map.gif
Normal file
BIN
images/map.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
|
@ -1,5 +1,6 @@
|
|||
<?php // index.php :: Primary program script, evil alien overlord, you decide.
|
||||
|
||||
if (file_exists('install.php')) { die("Please delete <b>install.php</b> from your Dragon Knight directory before continuing."); }
|
||||
include('lib.php');
|
||||
include('login.php');
|
||||
$link = opendb();
|
||||
|
@ -227,7 +228,7 @@ function showmap() {
|
|||
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
|
||||
|
||||
$page = $xml . gettemplate("minimal");
|
||||
$array = array("content"=>"Map coming soon.", "title"=>"Map");
|
||||
$array = array("content"=>"<center><img src=\"images/map.gif\" alt=\"Map\" /></center>", "title"=>"Map");
|
||||
echo parsetemplate($page, $array);
|
||||
die();
|
||||
|
||||
|
|
33
install.php
33
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 = <<<END
|
|||
Your admin account was created successfully. Installation is complete.<br /><br />
|
||||
Be sure to delete install.php from your Dragon Knight directory for security purposes.<br /><br />
|
||||
You are now ready to <a href="index.php">play the game</a>. 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.<br /><br/>
|
||||
Thank you for using Dragon Knight!
|
||||
Thank you for using Dragon Knight!<br /><br />-----<br /><br />
|
||||
<b>Optional:</b> 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
|
||||
<a href="install.php?page=5">click here</a>.
|
||||
</body>
|
||||
</html>
|
||||
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 <a href=\"index.php\">the game</a>."); }
|
||||
|
||||
$page = <<<END
|
||||
<html>
|
||||
<head>
|
||||
<title>Dragon Knight Installation</title>
|
||||
</head>
|
||||
<body>
|
||||
<b>Dragon Knight Installation: Page Five</b><br /><br />
|
||||
Thank you for submitting your URL!<br /><br />
|
||||
You are now ready to <a href="index.php">play the game</a>. 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.
|
||||
</body>
|
||||
</html>
|
||||
END;
|
||||
|
||||
echo $page;
|
||||
die();
|
||||
|
||||
}
|
||||
|
||||
?>
|
|
@ -5,7 +5,8 @@ $template = <<<THEVERYENDOFYOU
|
|||
<tr><td>
|
||||
Currently: {{currentaction}}<br />
|
||||
Latitude: {{latitude}}<br />
|
||||
Longitude: {{longitude}}<br /><br />
|
||||
Longitude: {{longitude}}<br />
|
||||
<a href="javascript:openmappopup()">View Map</a><br /><br />
|
||||
<form action="index.php?do=move" method="post">
|
||||
<center>
|
||||
<input name="north" type="submit" value="North" /><br />
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body><center>
|
||||
|
|
Loading…
Reference in New Issue
Block a user