From 6cc33515e71efb520405ae8b42043426c19c62e3 Mon Sep 17 00:00:00 2001 From: Jamin Blount Date: Sun, 5 Feb 2017 10:51:23 -0600 Subject: [PATCH] v1.0.1 v1.0.1 --- config.php | 2 +- images/map.gif | Bin 0 -> 4925 bytes index.php | 3 ++- install.php | 33 +++++++++++++++++++++++++++++++-- templates/leftnav.php | 3 ++- templates/primary.php | 4 ++++ 6 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 images/map.gif 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 0000000000000000000000000000000000000000..d89ca9d5b9adc14d0bf09f527078c6b00444b55c GIT binary patch literal 4925 zcmV-D6T<9ANk%w1Vf6v^0mJ|R{{R60h=~7pcmFdp|EjA0-QEB0?*CO){}B=YySx8H zME_=H|CyP9fPlZhzyBg4KtMnsARy1r&)?tQFfcIh@9z*05U;PVkB^UVaBxsiP+(wS zpP!!q00960{{R30A^8LV00000EC2ui0QCX&0RRR6U?+}bX`X1Ru59bRa4gSsZQppV z?|kq7CXaAPEE zZ4ev{&RFCV78TQ{-0kjX+3)i69v2aIMC9bW`wbfF^a2X35^tcvVYW7TxTns+u?iS8 zG@E3>6T5>LGk&_LvEwKWBs?VQkU>a>4)-SidXUh;qQ{p53&NbajU&yQ#bn~#`O7BH zpQ&^L9XiS<(W8ZgB3=5&DAT8CltP_K#wpdSU8G{&n#C&DuUEW+9os}K*|SKrqFrmm zEL*l}-@bJ#_iWs{XzAhwdw1_xy?(d$4a^lVVXA`~-T{9DpO<^MK;g#S z6;Do_`DNtJwLy<=Z8>#r)2|b=uKil}?mfSQ?col}}#^J$qm4--~iD|9t(I z^zXOVFFQW}K>q#LR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guVTwzYS%-s)fJ*k_o_+>A$umz?wrrjGQV4uZ(<{9SOue?b zz+uL}UGczW7QJa^z@+KHrU}BRslkLM!mvrglxD)ZiNfE+!Y8M~!0Ey)2gArI!|7zh z?}WoZN5jym!$!x$)(OPeDa6`I#N27b-igHEsl?*R#N_G3<_X2_UXmW3C8+K#{4P9@M*>Xs>T9}#`MX?1`5XrD#r@y#`sCc4vNPRs>c#) z$NtI377EB1D##j2$QnQw$PCKJQ0mAO3dt`;$u|YR1Q4`aP$X5txkduA zx$DNI7$y9(ibP-lJj1I0RS=3s_9ZMC$)S6xz%~FgdtS^)1t!atKGevue9A^!%SLdv zTHupJK&!AE!A8(HsW>j>h-$ewDEvbwP_~oE@-uF^0G-m8#kwfx^C>7($ZiZKMe_i{ z(qPI`l?|tmwv#ICg0|PgFUONRaiVRtbFho-#>2C&4x>J=B9Q1ak>EBgjdDKH!z|T9 zE%>r-*P(cD*LZT!glmV);MHp@izM1cLDb?S1H`M*0+H#+J_}@#5hO#@5qp$Jdx58S zG)Mu9pmrD>b4WmAjx&_j11KowDc7=YHXSJi`D;x{1jj-!73&<@=X>5qdYEu{F{pnM zotI5>05Ie{;`2PZ$I~#zQ!(hGF`~0CoVzC%b0xr>9Q;QC<>!93zyWs`(Gz^i1s5f$ zCMGQQLe>H$5(g(QLjcPHGYobBnesEVdL?|VGXlUfo~j)jXn^iFgAHJMp{LeDy2&Wml_9NpOe- va_9kRSOFPe0UbaAE)CnHjiSEYz(p0@jab~qecZ^M+{(S&%-!4~5CQ-@Xy@Dc literal 0 HcmV?d00001 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") +}