🚚 replace "images" by "templates/assets/img"

Fixes #6
This commit is contained in:
Kazhnuz 2025-02-25 00:13:21 +01:00
parent 1e8ccdf24e
commit c1d91c4e94
58 changed files with 52 additions and 52 deletions

View file

@ -12,7 +12,7 @@ ob_start("ob_gzhandler");
<title><? echo $controlrow["gamename"]; ?> Help</title> <title><? echo $controlrow["gamename"]; ?> Help</title>
<style type="text/css"> <style type="text/css">
body { body {
background-image: url(images/background.jpg); background-image: url(templates/assets/img/background.jpg);
color: black; color: black;
font: 11px verdana; font: 11px verdana;
} }

View file

@ -12,7 +12,7 @@ ob_start("ob_gzhandler");
<title><? echo $controlrow["gamename"]; ?> Help</title> <title><? echo $controlrow["gamename"]; ?> Help</title>
<style type="text/css"> <style type="text/css">
body { body {
background-image: url(images/background.jpg); background-image: url(templates/assets/img/background.jpg);
color: black; color: black;
font: 11px verdana; font: 11px verdana;
} }
@ -99,7 +99,7 @@ while ($itemsrow = mysqli_fetch_array($itemsquery)) {
if ($special[1] > 0) { $stat = "+" . $special[1]; } else { $stat = $special[1]; } if ($special[1] > 0) { $stat = "+" . $special[1]; } else { $stat = $special[1]; }
$bigspecial = "$attr $stat"; $bigspecial = "$attr $stat";
} else { $bigspecial = "<span class=\"light\">None</span>"; } } else { $bigspecial = "<span class=\"light\">None</span>"; }
echo "<tr><td $color width=\"5%\"><img src=\"images/icon_$image.gif\" alt=\"$image\"></td><td $color width=\"30%\">".$itemsrow["name"]."</td><td $color width=\"20%\">".$itemsrow["buycost"]." Gold</td><td $color width=\"20%\">".$itemsrow["attribute"]." $power Power</td><td $color width=\"25%\">$bigspecial</td></tr>\n"; echo "<tr><td $color width=\"5%\"><img src=\"templates/assets/img/icon_$image.gif\" alt=\"$image\"></td><td $color width=\"30%\">".$itemsrow["name"]."</td><td $color width=\"20%\">".$itemsrow["buycost"]." Gold</td><td $color width=\"20%\">".$itemsrow["attribute"]." $power Power</td><td $color width=\"25%\">$bigspecial</td></tr>\n";
} }
?> ?>
</table> </table>

View file

@ -12,7 +12,7 @@ ob_start("ob_gzhandler");
<title><? echo $controlrow["gamename"]; ?> Help</title> <title><? echo $controlrow["gamename"]; ?> Help</title>
<style type="text/css"> <style type="text/css">
body { body {
background-image: url(images/background.jpg); background-image: url(templates/assets/img/background.jpg);
color: black; color: black;
font: 11px verdana; font: 11px verdana;
} }

View file

@ -12,7 +12,7 @@ ob_start("ob_gzhandler");
<title><? echo $controlrow["gamename"]; ?> Help</title> <title><? echo $controlrow["gamename"]; ?> Help</title>
<style type="text/css"> <style type="text/css">
body { body {
background-image: url(images/background.jpg); background-image: url(templates/assets/img/background.jpg);
color: black; color: black;
font: 11px verdana; font: 11px verdana;
} }

View file

@ -12,7 +12,7 @@ ob_start("ob_gzhandler");
<title><? echo $controlrow["gamename"]; ?> Help</title> <title><? echo $controlrow["gamename"]; ?> Help</title>
<style type="text/css"> <style type="text/css">
body { body {
background-image: url(images/background.jpg); background-image: url(templates/assets/img/background.jpg);
color: black; color: black;
font: 11px verdana; font: 11px verdana;
} }

View file

@ -121,7 +121,7 @@ function doexplore() { // Just spit out a blank exploring page.
$page = <<<END $page = <<<END
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/title_exploring.gif" alt="Exploring" /></td></tr> <tr><td class="title"><img src="templates/assets/img/title_exploring.gif" alt="Exploring" /></td></tr>
<tr><td> <tr><td>
You are exploring the map, and nothing has happened. Continue exploring using the direction buttons or the Travel To menus. You are exploring the map, and nothing has happened. Continue exploring using the direction buttons or the Travel To menus.
</td></tr> </td></tr>
@ -243,7 +243,7 @@ function showmap() {
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n"; . "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
$page = $xml . gettemplate("minimal"); $page = $xml . gettemplate("minimal");
$array = array("content"=>"<center><img src=\"images/map.gif\" alt=\"Map\" /></center>", "title"=>"Map"); $array = array("content"=>"<center><img src=\"templates/assets/img/map.gif\" alt=\"Map\" /></center>", "title"=>"Map");
echo parsetemplate($page, $array); echo parsetemplate($page, $array);
die(); die();

22
lib.php
View file

@ -177,9 +177,9 @@ function display($content, $title, $topnav=true, $leftnav=true, $rightnav=true,
if ($rightnav == true) { $rightnav = gettemplate("rightnav"); } else { $rightnav = ""; } if ($rightnav == true) { $rightnav = gettemplate("rightnav"); } else { $rightnav = ""; }
if ($leftnav == true) { $leftnav = gettemplate("leftnav"); } else { $leftnav = ""; } if ($leftnav == true) { $leftnav = gettemplate("leftnav"); } else { $leftnav = ""; }
if ($topnav == true) { if ($topnav == true) {
$topnav = "<a href=\"login.php?do=logout\"><img src=\"images/button_logout.gif\" alt=\"Log Out\" title=\"Log Out\" border=\"0\" /></a> <a href=\"help.php\"><img src=\"images/button_help.gif\" alt=\"Help\" title=\"Help\" border=\"0\" /></a>"; $topnav = "<a href=\"login.php?do=logout\"><img src=\"templates/assets/img/button_logout.gif\" alt=\"Log Out\" title=\"Log Out\" border=\"0\" /></a> <a href=\"help.php\"><img src=\"templates/assets/img/button_help.gif\" alt=\"Help\" title=\"Help\" border=\"0\" /></a>";
} else { } else {
$topnav = "<a href=\"login.php?do=login\"><img src=\"images/button_login.gif\" alt=\"Log In\" title=\"Log In\" border=\"0\" /></a> <a href=\"users.php?do=register\"><img src=\"images/button_register.gif\" alt=\"Register\" title=\"Register\" border=\"0\" /></a> <a href=\"help.php\"><img src=\"images/button_help.gif\" alt=\"Help\" title=\"Help\" border=\"0\" /></a>"; $topnav = "<a href=\"login.php?do=login\"><img src=\"templates/assets/img/button_login.gif\" alt=\"Log In\" title=\"Log In\" border=\"0\" /></a> <a href=\"users.php?do=register\"><img src=\"templates/assets/img/button_register.gif\" alt=\"Register\" title=\"Register\" border=\"0\" /></a> <a href=\"help.php\"><img src=\"templates/assets/img/button_help.gif\" alt=\"Help\" title=\"Help\" border=\"0\" /></a>";
} }
if (isset($userrow)) { if (isset($userrow)) {
@ -215,19 +215,19 @@ function display($content, $title, $topnav=true, $leftnav=true, $rightnav=true,
$stattp = ceil($userrow["currenttp"] / $userrow["maxtp"] * 100); $stattp = ceil($userrow["currenttp"] / $userrow["maxtp"] * 100);
$stattable = "<table width=\"100\"><tr><td width=\"33%\">\n"; $stattable = "<table width=\"100\"><tr><td width=\"33%\">\n";
$stattable .= "<table cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"padding:0px; width:15px; height:100px; border:solid 1px black; vertical-align:bottom;\">\n"; $stattable .= "<table cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"padding:0px; width:15px; height:100px; border:solid 1px black; vertical-align:bottom;\">\n";
if ($stathp >= 66) { $stattable .= "<div style=\"padding:0px; height:".$stathp."px; border-top:solid 1px black; background-image:url(images/bars_green.gif);\"><img src=\"images/bars_green.gif\" alt=\"\" /></div>"; } if ($stathp >= 66) { $stattable .= "<div style=\"padding:0px; height:".$stathp."px; border-top:solid 1px black; background-image:url(templates/assets/img/bars_green.gif);\"><img src=\"templates/assets/img/bars_green.gif\" alt=\"\" /></div>"; }
if ($stathp < 66 && $stathp >= 33) { $stattable .= "<div style=\"padding:0px; height:".$stathp."px; border-top:solid 1px black; background-image:url(images/bars_yellow.gif);\"><img src=\"images/bars_yellow.gif\" alt=\"\" /></div>"; } if ($stathp < 66 && $stathp >= 33) { $stattable .= "<div style=\"padding:0px; height:".$stathp."px; border-top:solid 1px black; background-image:url(templates/assets/img/bars_yellow.gif);\"><img src=\"templates/assets/img/bars_yellow.gif\" alt=\"\" /></div>"; }
if ($stathp < 33) { $stattable .= "<div style=\"padding:0px; height:".$stathp."px; border-top:solid 1px black; background-image:url(images/bars_red.gif);\"><img src=\"images/bars_red.gif\" alt=\"\" /></div>"; } if ($stathp < 33) { $stattable .= "<div style=\"padding:0px; height:".$stathp."px; border-top:solid 1px black; background-image:url(templates/assets/img/bars_red.gif);\"><img src=\"templates/assets/img/bars_red.gif\" alt=\"\" /></div>"; }
$stattable .= "</td></tr></table></td><td width=\"33%\">\n"; $stattable .= "</td></tr></table></td><td width=\"33%\">\n";
$stattable .= "<table cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"padding:0px; width:15px; height:100px; border:solid 1px black; vertical-align:bottom;\">\n"; $stattable .= "<table cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"padding:0px; width:15px; height:100px; border:solid 1px black; vertical-align:bottom;\">\n";
if ($statmp >= 66) { $stattable .= "<div style=\"padding:0px; height:".$statmp."px; border-top:solid 1px black; background-image:url(images/bars_green.gif);\"><img src=\"images/bars_green.gif\" alt=\"\" /></div>"; } if ($statmp >= 66) { $stattable .= "<div style=\"padding:0px; height:".$statmp."px; border-top:solid 1px black; background-image:url(templates/assets/img/bars_green.gif);\"><img src=\"templates/assets/img/bars_green.gif\" alt=\"\" /></div>"; }
if ($statmp < 66 && $statmp >= 33) { $stattable .= "<div style=\"padding:0px; height:".$statmp."px; border-top:solid 1px black; background-image:url(images/bars_yellow.gif);\"><img src=\"images/bars_yellow.gif\" alt=\"\" /></div>"; } if ($statmp < 66 && $statmp >= 33) { $stattable .= "<div style=\"padding:0px; height:".$statmp."px; border-top:solid 1px black; background-image:url(templates/assets/img/bars_yellow.gif);\"><img src=\"templates/assets/img/bars_yellow.gif\" alt=\"\" /></div>"; }
if ($statmp < 33) { $stattable .= "<div style=\"padding:0px; height:".$statmp."px; border-top:solid 1px black; background-image:url(images/bars_red.gif);\"><img src=\"images/bars_red.gif\" alt=\"\" /></div>"; } if ($statmp < 33) { $stattable .= "<div style=\"padding:0px; height:".$statmp."px; border-top:solid 1px black; background-image:url(templates/assets/img/bars_red.gif);\"><img src=\"templates/assets/img/bars_red.gif\" alt=\"\" /></div>"; }
$stattable .= "</td></tr></table></td><td width=\"33%\">\n"; $stattable .= "</td></tr></table></td><td width=\"33%\">\n";
$stattable .= "<table cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"padding:0px; width:15px; height:100px; border:solid 1px black; vertical-align:bottom;\">\n"; $stattable .= "<table cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"padding:0px; width:15px; height:100px; border:solid 1px black; vertical-align:bottom;\">\n";
if ($stattp >= 66) { $stattable .= "<div style=\"padding:0px; height:".$stattp."px; border-top:solid 1px black; background-image:url(images/bars_green.gif);\"><img src=\"images/bars_green.gif\" alt=\"\" /></div>"; } if ($stattp >= 66) { $stattable .= "<div style=\"padding:0px; height:".$stattp."px; border-top:solid 1px black; background-image:url(templates/assets/img/bars_green.gif);\"><img src=\"templates/assets/img/bars_green.gif\" alt=\"\" /></div>"; }
if ($stattp < 66 && $stattp >= 33) { $stattable .= "<div style=\"padding:0px; height:".$stattp."px; border-top:solid 1px black; background-image:url(images/bars_yellow.gif);\"><img src=\"images/bars_yellow.gif\" alt=\"\" /></div>"; } if ($stattp < 66 && $stattp >= 33) { $stattable .= "<div style=\"padding:0px; height:".$stattp."px; border-top:solid 1px black; background-image:url(templates/assets/img/bars_yellow.gif);\"><img src=\"templates/assets/img/bars_yellow.gif\" alt=\"\" /></div>"; }
if ($stattp < 33) { $stattable .= "<div style=\"padding:0px; height:".$stattp."px; border-top:solid 1px black; background-image:url(images/bars_red.gif);\"><img src=\"images/bars_red.gif\" alt=\"\" /></div>"; } if ($stattp < 33) { $stattable .= "<div style=\"padding:0px; height:".$stattp."px; border-top:solid 1px black; background-image:url(templates/assets/img/bars_red.gif);\"><img src=\"templates/assets/img/bars_red.gif\" alt=\"\" /></div>"; }
$stattable .= "</td></tr></table></td>\n"; $stattable .= "</td></tr></table></td>\n";
$stattable .= "</tr><tr><td>HP</td><td>MP</td><td>TP</td></tr></table>\n"; $stattable .= "</tr><tr><td>HP</td><td>MP</td><td>TP</td></tr></table>\n";
$userrow["statbars"] = $stattable; $userrow["statbars"] = $stattable;

View file

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View file

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View file

Before

Width:  |  Height:  |  Size: 94 B

After

Width:  |  Height:  |  Size: 94 B

View file

Before

Width:  |  Height:  |  Size: 94 B

After

Width:  |  Height:  |  Size: 94 B

View file

Before

Width:  |  Height:  |  Size: 94 B

After

Width:  |  Height:  |  Size: 94 B

View file

Before

Width:  |  Height:  |  Size: 527 B

After

Width:  |  Height:  |  Size: 527 B

View file

Before

Width:  |  Height:  |  Size: 575 B

After

Width:  |  Height:  |  Size: 575 B

View file

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 561 B

View file

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 402 B

View file

Before

Width:  |  Height:  |  Size: 551 B

After

Width:  |  Height:  |  Size: 551 B

View file

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 486 B

View file

Before

Width:  |  Height:  |  Size: 474 B

After

Width:  |  Height:  |  Size: 474 B

View file

Before

Width:  |  Height:  |  Size: 500 B

After

Width:  |  Height:  |  Size: 500 B

View file

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 523 B

View file

Before

Width:  |  Height:  |  Size: 565 B

After

Width:  |  Height:  |  Size: 565 B

View file

Before

Width:  |  Height:  |  Size: 469 B

After

Width:  |  Height:  |  Size: 469 B

View file

Before

Width:  |  Height:  |  Size: 469 B

After

Width:  |  Height:  |  Size: 469 B

View file

Before

Width:  |  Height:  |  Size: 461 B

After

Width:  |  Height:  |  Size: 461 B

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 147 B

After

Width:  |  Height:  |  Size: 147 B

View file

Before

Width:  |  Height:  |  Size: 121 B

After

Width:  |  Height:  |  Size: 121 B

View file

Before

Width:  |  Height:  |  Size: 112 B

After

Width:  |  Height:  |  Size: 112 B

View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

View file

Before

Width:  |  Height:  |  Size: 1,005 B

After

Width:  |  Height:  |  Size: 1,005 B

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -4,7 +4,7 @@ $template = <<<THEVERYENDOFYOU
<title>shoutbox</title> <title>shoutbox</title>
<style type="text/css"> <style type="text/css">
body { body {
background-image: url(images/background.jpg); background-image: url(templates/assets/img/background.jpg);
color: black; color: black;
font: 11px verdana; font: 11px verdana;
margins: 0px; margins: 0px;

View file

@ -1,7 +1,7 @@
<?php <?php
$template = <<<THEVERYENDOFYOU $template = <<<THEVERYENDOFYOU
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/title_fighting.gif" alt="Fighting" /></td></tr> <tr><td class="title"><img src="templates/assets/img/title_fighting.gif" alt="Fighting" /></td></tr>
<tr><td> <tr><td>
You are fighting a <b>{{monstername}}</b><br /><br /> You are fighting a <b>{{monstername}}</b><br /><br />
{{monsterhp}} {{monsterhp}}

View file

@ -1,7 +1,7 @@
<?php <?php
$template = <<<THEVERYENDOFYOU $template = <<<THEVERYENDOFYOU
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/button_location.gif" alt="Location" title="Location" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_location.gif" alt="Location" title="Location" /></td></tr>
<tr><td> <tr><td>
Currently: {{currentaction}}<br /> Currently: {{currentaction}}<br />
Latitude: {{latitude}}<br /> Latitude: {{latitude}}<br />
@ -18,7 +18,7 @@ Longitude: {{longitude}}<br />
</table><br /> </table><br />
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/button_towns.gif" alt="Towns" title="Towns" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_towns.gif" alt="Towns" title="Towns" /></td></tr>
<tr><td> <tr><td>
{{currenttown}} {{currenttown}}
Travel To:<br /> Travel To:<br />
@ -27,7 +27,7 @@ Travel To:<br />
</table><br /> </table><br />
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/button_functions.gif" alt="Functions" title="Functions" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_functions.gif" alt="Functions" title="Functions" /></td></tr>
<tr><td> <tr><td>
{{forumslink}} {{forumslink}}
{{adminlink}} {{adminlink}}

View file

@ -4,7 +4,7 @@ $template = <<<THEVERYENDOFYOU
<title>{{title}}</title> <title>{{title}}</title>
<style type="text/css"> <style type="text/css">
body { body {
background-image: url(images/background.jpg); background-image: url(templates/assets/img/background.jpg);
color: black; color: black;
font: 11px verdana; font: 11px verdana;
} }

View file

@ -3,7 +3,7 @@ $template = <<<THEVERYENDOFYOU
Here is the character profile for <b>{{charname}}</b>.<br /><br /> Here is the character profile for <b>{{charname}}</b>.<br /><br />
When you're finished, you may <a href="index.php">return to town</a>.<br /><br /> When you're finished, you may <a href="index.php">return to town</a>.<br /><br />
<table width="200"> <table width="200">
<tr><td class="title"><img src="images/button_character.gif" alt="Character" title="Character" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_character.gif" alt="Character" title="Character" /></td></tr>
<tr><td> <tr><td>
<b>{{charname}}</b><br /><br /> <b>{{charname}}</b><br /><br />
@ -25,12 +25,12 @@ Defense Power: {{defensepower}}<br />
</table><br /> </table><br />
<table width="200"> <table width="200">
<tr><td class="title"><img src="images/button_inventory.gif" alt="Inventory" title="Inventory" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_inventory.gif" alt="Inventory" title="Inventory" /></td></tr>
<tr><td> <tr><td>
<table width="100%"> <table width="100%">
<tr><td><img src="images/icon_weapon.gif" alt="Weapon" title="Weapon" /></td><td width="100%">Weapon: {{weaponname}}</td></tr> <tr><td><img src="templates/assets/img/icon_weapon.gif" alt="Weapon" title="Weapon" /></td><td width="100%">Weapon: {{weaponname}}</td></tr>
<tr><td><img src="images/icon_armor.gif" alt="Armor" title="Armor" /></td><td width="100%">Armor: {{armorname}}</td></tr> <tr><td><img src="templates/assets/img/icon_armor.gif" alt="Armor" title="Armor" /></td><td width="100%">Armor: {{armorname}}</td></tr>
<tr><td><img src="images/icon_shield.gif" alt="Shield" title="Shield" /></td><td width="100%">Shield: {{shieldname}}</td></tr> <tr><td><img src="templates/assets/img/icon_shield.gif" alt="Shield" title="Shield" /></td><td width="100%">Shield: {{shieldname}}</td></tr>
</table> </table>
Slot 1: {{slot1name}}<br /> Slot 1: {{slot1name}}<br />
Slot 2: {{slot2name}}<br /> Slot 2: {{slot2name}}<br />

View file

@ -4,7 +4,7 @@ $template = <<<THEVERYENDOFYOU
<title>{{title}}</title> <title>{{title}}</title>
<style type="text/css"> <style type="text/css">
body { body {
background-image: url(images/background.jpg); background-image: url(templates/assets/img/background.jpg);
color: black; color: black;
font: 11px verdana; font: 11px verdana;
} }
@ -73,7 +73,7 @@ winpops=window.open(popurl,"","width=520,height=520,scrollbars")
<body><center> <body><center>
<table cellspacing="0" width="90%"><tr> <table cellspacing="0" width="90%"><tr>
<td class="top" colspan="3"> <td class="top" colspan="3">
<table width="100%"><tr><td><img src="images/logo.gif" alt="{{dkgamename}}" title="{{dkgamename}}" border="0" /></td><td style="text-align:right; vertical-align:middle;">{{topnav}}</td></tr></table> <table width="100%"><tr><td><img src="templates/assets/img/logo.gif" alt="{{dkgamename}}" title="{{dkgamename}}" border="0" /></td><td style="text-align:right; vertical-align:middle;">{{topnav}}</td></tr></table>
</td> </td>
</tr><tr> </tr><tr>
<td class="left">{{leftnav}}</td> <td class="left">{{leftnav}}</td>

View file

@ -1,7 +1,7 @@
<?php <?php
$template = <<<THEVERYENDOFYOU $template = <<<THEVERYENDOFYOU
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/button_character.gif" alt="Character" title="Character" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_character.gif" alt="Character" title="Character" /></td></tr>
<tr><td> <tr><td>
<b>{{charname}}</b><br /> <b>{{charname}}</b><br />
Level: {{level}}<br /> Level: {{level}}<br />
@ -16,12 +16,12 @@ TP: {{currenttp}}<br />
</table><br /> </table><br />
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/button_inventory.gif" alt="Inventory" title="Inventory" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_inventory.gif" alt="Inventory" title="Inventory" /></td></tr>
<tr><td> <tr><td>
<table width="100%"> <table width="100%">
<tr><td><img src="images/icon_weapon.gif" alt="Weapon" title="Weapon" /></td><td width="100%">Weapon: {{weaponname}}</td></tr> <tr><td><img src="templates/assets/img/icon_weapon.gif" alt="Weapon" title="Weapon" /></td><td width="100%">Weapon: {{weaponname}}</td></tr>
<tr><td><img src="images/icon_armor.gif" alt="Armor" title="Armor" /></td><td width="100%">Armor: {{armorname}}</td></tr> <tr><td><img src="templates/assets/img/icon_armor.gif" alt="Armor" title="Armor" /></td><td width="100%">Armor: {{armorname}}</td></tr>
<tr><td><img src="images/icon_shield.gif" alt="Shield" title="Shield" /></td><td width="100%">Shield: {{shieldname}}</td></tr> <tr><td><img src="templates/assets/img/icon_shield.gif" alt="Shield" title="Shield" /></td><td width="100%">Shield: {{shieldname}}</td></tr>
</table> </table>
Slot 1: {{slot1name}}<br /> Slot 1: {{slot1name}}<br />
Slot 2: {{slot2name}}<br /> Slot 2: {{slot2name}}<br />
@ -30,7 +30,7 @@ Slot 3: {{slot3name}}
</table><br /> </table><br />
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/button_fastspells.gif" alt="Fast Spells" title="Fast Spells" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_fastspells.gif" alt="Fast Spells" title="Fast Spells" /></td></tr>
<tr><td> <tr><td>
{{magiclist}} {{magiclist}}
</td></tr> </td></tr>

View file

@ -1,7 +1,7 @@
<?php <?php
$template = <<<THEVERYENDOFYOU $template = <<<THEVERYENDOFYOU
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/button_character.gif" alt="Character" title="Character" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_character.gif" alt="Character" title="Character" /></td></tr>
<tr><td> <tr><td>
<b>{{charname}}</b><br /><br /> <b>{{charname}}</b><br /><br />
@ -24,12 +24,12 @@ Defense Power: {{defensepower}}<br />
</table><br /> </table><br />
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/button_inventory.gif" alt="Inventory" title="Inventory" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_inventory.gif" alt="Inventory" title="Inventory" /></td></tr>
<tr><td> <tr><td>
<table width="100%"> <table width="100%">
<tr><td><img src="images/icon_weapon.gif" alt="Weapon" title="Weapon" /></td><td width="100%">Weapon: {{weaponname}}</td></tr> <tr><td><img src="templates/assets/img/icon_weapon.gif" alt="Weapon" title="Weapon" /></td><td width="100%">Weapon: {{weaponname}}</td></tr>
<tr><td><img src="images/icon_armor.gif" alt="Armor" title="Armor" /></td><td width="100%">Armor: {{armorname}}</td></tr> <tr><td><img src="templates/assets/img/icon_armor.gif" alt="Armor" title="Armor" /></td><td width="100%">Armor: {{armorname}}</td></tr>
<tr><td><img src="images/icon_shield.gif" alt="Shield" title="Shield" /></td><td width="100%">Shield: {{shieldname}}</td></tr> <tr><td><img src="templates/assets/img/icon_shield.gif" alt="Shield" title="Shield" /></td><td width="100%">Shield: {{shieldname}}</td></tr>
</table> </table>
Slot 1: {{slot1name}}<br /> Slot 1: {{slot1name}}<br />
Slot 2: {{slot2name}}<br /> Slot 2: {{slot2name}}<br />
@ -38,7 +38,7 @@ Slot 3: {{slot3name}}
</table><br /> </table><br />
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/button_spells.gif" alt="Spells" title="Spells" /></td></tr> <tr><td class="title"><img src="templates/assets/img/button_spells.gif" alt="Spells" title="Spells" /></td></tr>
<tr><td> <tr><td>
{{magiclist}} {{magiclist}}
</td></tr> </td></tr>

View file

@ -1,7 +1,7 @@
<?php <?php
$template = <<<THEVERYENDOFYOU $template = <<<THEVERYENDOFYOU
<table width="100%"> <table width="100%">
<tr><td class="title"><img src="images/town_{{id}}.gif" alt="Welcome to {{name}}" title="Welcome to {{name}}" /></td></tr> <tr><td class="title"><img src="templates/assets/img/town_{{id}}.gif" alt="Welcome to {{name}}" title="Welcome to {{name}}" /></td></tr>
<tr><td> <tr><td>
<b>Town Options:</b><br /> <b>Town Options:</b><br />
<ul> <ul>

View file

@ -57,9 +57,9 @@ function buy() { // Displays a list of available items for purchase.
while ($itemsrow = mysqli_fetch_array($itemsquery)) { while ($itemsrow = mysqli_fetch_array($itemsquery)) {
if ($itemsrow["type"] == 1) { $attrib = "Attack Power:"; } else { $attrib = "Defense Power:"; } if ($itemsrow["type"] == 1) { $attrib = "Attack Power:"; } else { $attrib = "Defense Power:"; }
$page .= "<tr><td width=\"4%\">"; $page .= "<tr><td width=\"4%\">";
if ($itemsrow["type"] == 1) { $page .= "<img src=\"images/icon_weapon.gif\" alt=\"weapon\" /></td>"; } if ($itemsrow["type"] == 1) { $page .= "<img src=\"templates/assets/img/icon_weapon.gif\" alt=\"weapon\" /></td>"; }
if ($itemsrow["type"] == 2) { $page .= "<img src=\"images/icon_armor.gif\" alt=\"armor\" /></td>"; } if ($itemsrow["type"] == 2) { $page .= "<img src=\"templates/assets/img/icon_armor.gif\" alt=\"armor\" /></td>"; }
if ($itemsrow["type"] == 3) { $page .= "<img src=\"images/icon_shield.gif\" alt=\"shield\" /></td>"; } if ($itemsrow["type"] == 3) { $page .= "<img src=\"templates/assets/img/icon_shield.gif\" alt=\"shield\" /></td>"; }
if ($userrow["weaponid"] == $itemsrow["id"] || $userrow["armorid"] == $itemsrow["id"] || $userrow["shieldid"] == $itemsrow["id"]) { if ($userrow["weaponid"] == $itemsrow["id"] || $userrow["armorid"] == $itemsrow["id"] || $userrow["shieldid"] == $itemsrow["id"]) {
$page .= "<td width=\"32%\"><span class=\"light\">".$itemsrow["name"]."</span></td><td width=\"32%\"><span class=\"light\">$attrib ".$itemsrow["attribute"]."</span></td><td width=\"32%\"><span class=\"light\">Already purchased</span></td></tr>\n"; $page .= "<td width=\"32%\"><span class=\"light\">".$itemsrow["name"]."</span></td><td width=\"32%\"><span class=\"light\">$attrib ".$itemsrow["attribute"]."</span></td><td width=\"32%\"><span class=\"light\">Already purchased</span></td></tr>\n";
} else { } else {

View file

@ -90,7 +90,7 @@ function register() { // Register a new account.
} }
$topnav = "<a href=\"login.php?do=login\"><img src=\"images/button_login.gif\" alt=\"Log In\" border=\"0\" /></a><a href=\"users.php?do=register\"><img src=\"images/button_register.gif\" alt=\"Register\" border=\"0\" /></a><a href=\"help.php\"><img src=\"images/button_help.gif\" alt=\"Help\" border=\"0\" /></a>"; $topnav = "<a href=\"login.php?do=login\"><img src=\"templates/assets/img/button_login.gif\" alt=\"Log In\" border=\"0\" /></a><a href=\"users.php?do=register\"><img src=\"templates/assets/img/button_register.gif\" alt=\"Register\" border=\"0\" /></a><a href=\"help.php\"><img src=\"templates/assets/img/button_help.gif\" alt=\"Help\" border=\"0\" /></a>";
display($page, "Register", false, false, false); display($page, "Register", false, false, false);
} }
@ -110,7 +110,7 @@ function verify() {
display("Your account was verified successfully.<br /><br />You may now continue to the <a href=\"login.php?do=login\">Login Page</a> and start playing the game.<br /><br />Thanks for playing!","Verify Email",false,false,false); display("Your account was verified successfully.<br /><br />You may now continue to the <a href=\"login.php?do=login\">Login Page</a> and start playing the game.<br /><br />Thanks for playing!","Verify Email",false,false,false);
} }
$page = gettemplate("verify"); $page = gettemplate("verify");
$topnav = "<a href=\"login.php?do=login\"><img src=\"images/button_login.gif\" alt=\"Log In\" border=\"0\" /></a><a href=\"users.php?do=register\"><img src=\"images/button_register.gif\" alt=\"Register\" border=\"0\" /></a><a href=\"help.php\"><img src=\"images/button_help.gif\" alt=\"Help\" border=\"0\" /></a>"; $topnav = "<a href=\"login.php?do=login\"><img src=\"templates/assets/img/button_login.gif\" alt=\"Log In\" border=\"0\" /></a><a href=\"users.php?do=register\"><img src=\"templates/assets/img/button_register.gif\" alt=\"Register\" border=\"0\" /></a><a href=\"help.php\"><img src=\"templates/assets/img/button_help.gif\" alt=\"Help\" border=\"0\" /></a>";
display($page, "Verify Email", false, false, false); display($page, "Verify Email", false, false, false);
} }
@ -135,7 +135,7 @@ function lostpassword() {
die(); die();
} }
$page = gettemplate("lostpassword"); $page = gettemplate("lostpassword");
$topnav = "<a href=\"login.php?do=login\"><img src=\"images/button_login.gif\" alt=\"Log In\" border=\"0\" /></a><a href=\"users.php?do=register\"><img src=\"images/button_register.gif\" alt=\"Register\" border=\"0\" /></a><a href=\"help.php\"><img src=\"images/button_help.gif\" alt=\"Help\" border=\"0\" /></a>"; $topnav = "<a href=\"login.php?do=login\"><img src=\"templates/assets/img/button_login.gif\" alt=\"Log In\" border=\"0\" /></a><a href=\"users.php?do=register\"><img src=\"templates/assets/img/button_register.gif\" alt=\"Register\" border=\"0\" /></a><a href=\"help.php\"><img src=\"templates/assets/img/button_help.gif\" alt=\"Help\" border=\"0\" /></a>";
display($page, "Lost Password", false, false, false); display($page, "Lost Password", false, false, false);
} }
@ -157,7 +157,7 @@ function changepassword() {
die(); die();
} }
$page = gettemplate("changepassword"); $page = gettemplate("changepassword");
$topnav = "<a href=\"login.php?do=login\"><img src=\"images/button_login.gif\" alt=\"Log In\" border=\"0\" /></a><a href=\"users.php?do=register\"><img src=\"images/button_register.gif\" alt=\"Register\" border=\"0\" /></a><a href=\"help.php\"><img src=\"images/button_help.gif\" alt=\"Help\" border=\"0\" /></a>"; $topnav = "<a href=\"login.php?do=login\"><img src=\"templates/assets/img/button_login.gif\" alt=\"Log In\" border=\"0\" /></a><a href=\"users.php?do=register\"><img src=\"templates/assets/img/button_register.gif\" alt=\"Register\" border=\"0\" /></a><a href=\"help.php\"><img src=\"templates/assets/img/button_help.gif\" alt=\"Help\" border=\"0\" /></a>";
display($page, "Change Password", false, false, false); display($page, "Change Password", false, false, false);
} }