mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-24 20:17:13 +00:00
Update to version 8.3.5
Many Fixes
This commit is contained in:
@@ -1225,10 +1225,11 @@ if ($residence<10 && $palace<10){?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 34){
|
||||
|
||||
// Checking 3 settlers trained or no
|
||||
// check whether 3 settlers were trained, or whether the user already has a second village founded
|
||||
$units = $village->unitall;
|
||||
$unarray2=array("","u10", "u20","u30");
|
||||
if ($units[$unarray2[$session->userinfo['tribe']]]<3){ $cp = CP;?>
|
||||
$vil = $database->getProfileVillages($session->uid);
|
||||
if ( $units[$unarray2[$session->userinfo['tribe']]] < 3 && count( $vil ) == 1 ){ $cp = CP;?>
|
||||
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 26: 3 settlers.<\/h1><br \/><i>”To found a new village, you will need settlers. You can train them in the palace or residence.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Train 3 settlers.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"new_village\"><\/div>\n\t\t","number":"-34","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
|
||||
@@ -860,7 +860,7 @@ if ($cropL<1){?>
|
||||
<?php } elseif($_SESSION['qst']== 3){
|
||||
|
||||
//Check the village name is changed or is default name
|
||||
$vName=str_replace(''', "'", $village->vname);
|
||||
$vName=rtrim(str_replace(''', "'", $village->vname));
|
||||
if ($vName==$session->userinfo['username']."'s village"){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/><?php echo Q3; ?><\/h1><br \/><i>”<?php echo Q3_DESC; ?>”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><?php echo Q3_ORDER; ?><\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"village_name\"><\/div>\n\t\t","number":"-3","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
|
||||
@@ -19,7 +19,7 @@ foreach($topics as $top) {
|
||||
$ans = preg_replace('/\[\/message\]/', '', $ans);
|
||||
}
|
||||
?>
|
||||
<form method="post" name="post" action="allianz.php?s=2&fid2=<?php echo $_GET['fid2']; ?>&tid=<?php echo $_GET['idt']; ?>">
|
||||
<form method="post" name="post" action="allianz.php?s=2&tid=<?php echo $_GET['idt']; ?>">
|
||||
<input type="hidden" name="s" value="2">
|
||||
<input type="hidden" name="tid" value="<?php echo $_GET['idt']; ?>">
|
||||
<input type="hidden" name="editans" value="1">
|
||||
|
||||
@@ -138,7 +138,7 @@ if(isset($_POST['newpost']) && isset($_POST['text']) && !empty($_POST['text']) &
|
||||
if(isset($_POST['editans']) && isset($_POST['text']) && !empty($_POST['text'])
|
||||
&& isset($_POST['tid']) && !empty($_POST['tid']) &&
|
||||
Alliance::canAct(['aid' => $aid, 'alliance' => ($topic = reset($database->ShowTopic($_POST['tid'])))['alliance'],
|
||||
'forum_perm' => $opt['opt5'], 'admin' => $_GET['admin'], 'owner' => $topic['owner'],
|
||||
'forum_perm' => $opt['opt5'], 'admin' => ( !empty( $_GET['admin'] ) ? $_GET['admin'] : '' ), 'owner' => $topic['owner'],
|
||||
'forum_owner' => reset($database->ForumCatEdit($topic['cat']))['owner']], 1))
|
||||
{
|
||||
$text = $_POST['text'];
|
||||
|
||||
@@ -14,7 +14,7 @@ else
|
||||
<?php include("Templates/goldClub/farmlist.tpl"); ?>
|
||||
</div>
|
||||
<br />
|
||||
<?php if($hideevasion == 0){ ?>
|
||||
<?php if( !isset( $hideevasion ) || $hideevasion == 0){ ?>
|
||||
<table id="raidList" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -20,7 +20,7 @@ for ($a = 1; $a <= 4; $a++) {
|
||||
}
|
||||
}
|
||||
$allres = (int) $_POST['r1'] + (int) $_POST['r2'] + (int) $_POST['r3'] + (int) $_POST['r4'];
|
||||
if($_POST['x'] != "" && $_POST['y'] != "" && is_numeric($_POST['x']) && is_numeric($_POST['y'])){
|
||||
if(isset( $_POST['x'] ) && isset( $_POST['y'] ) && $_POST['x'] != "" && $_POST['y'] != "" && is_numeric($_POST['x']) && is_numeric($_POST['y'])){
|
||||
$getwref = $database->getVilWref($_POST['x'],$_POST['y']);
|
||||
$checkexist = $database->checkVilExist($getwref);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
echo "<p class=\"error2\">".NOT_ENOUGH_MERCHANTS."</p>";
|
||||
}
|
||||
|
||||
echo "<br /><p>Merchants: ".$market->merchantAvail()."/".$market->merchant."</p>";
|
||||
echo "<br /><p>".MERCHANT.": " .$market->merchantAvail()."/".$market->merchant."</p>";
|
||||
?>
|
||||
<input type="image" tabindex="8" value="ok" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" <?php //if(!$market->merchantAvail()) { echo "DISABLED"; }?>/></p>
|
||||
</form>
|
||||
|
||||
@@ -13,7 +13,7 @@ $routeaccess = 1;
|
||||
if(isset($_GET['create']) && $session->gold > 1){
|
||||
$routeaccess = 1;
|
||||
include("17_create.tpl");
|
||||
}else if($_POST['action'] == 'editRoute' && isset($_POST['routeid']) && !empty($_POST['routeid']) && $database->getTradeRouteUid($_POST['routeid']) == $session->uid){
|
||||
}else if(isset($_POST['action']) && $_POST['action'] == 'editRoute' && isset($_POST['routeid']) && !empty($_POST['routeid']) && $database->getTradeRouteUid($_POST['routeid']) == $session->uid){
|
||||
include("17_edit.tpl");
|
||||
}else{
|
||||
?>
|
||||
@@ -52,7 +52,13 @@ echo "".TRADE_ROUTE_TO." <a href=karte.php?d=".$route['wid']."&c=".$generator->g
|
||||
<th>
|
||||
</th>
|
||||
<th colspan="4">
|
||||
<?php $routeid=$routeid == 0? $routeid=0:$routeid; ?>
|
||||
<?php
|
||||
if ( isset( $routeid ) ) {
|
||||
$routeid = $routeid == 0? $routeid=0:$routeid;
|
||||
} else {
|
||||
$routeid = 0;
|
||||
}
|
||||
?>
|
||||
<button type="submit" name="action" value="extendRoute" id="btn_id" class="trav_buttons"><b><?php echo EXTEND;?>*</b></button>
|
||||
| <button type="submit" name="action" value="editRoute" id="btn_id" class="trav_buttons"><b><?php echo EDIT;?></b></button>
|
||||
| <button type="submit" name="action" value="delRoute" id="btn_id" class="trav_buttons"><b><?php echo DELETE;?></b></button>
|
||||
|
||||
+10
-10
@@ -72,49 +72,49 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">".RESEARCH_AVAILABL
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">".SHOW_MORE."</a></p>
|
||||
<table id=\"researchFuture\" class=\"build_details hide\" cellspacing=\"1\" cellpadding=\"1\">
|
||||
<thead><tr><td colspan=\"2\">".PREREQUISITES."</td></tr><tbody>";
|
||||
if(!$technology->meetRRequirement(22) && !$technology->getTech(22)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u22\" title=\"".U22."\" alt=\"Swordsman\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(22, 1);\" href=\"#\">Swordsman</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
if(!$technology->meetRRequirement(22) && !$technology->getTech(22)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u22\" title=\"".U22."\" alt=\"".U22."\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(22, 1);\" href=\"#\">".U22."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+2\"> ".LEVEL." 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">".BLACKSMITH." </a><span title=\"+1\"> ".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(23) && !$technology->getTech(23)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u23\" title=\"".U23."\" alt=\"Pathfinder\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(23, 1);\" href=\"#\">Pathfinder</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<a onclick=\"return Popup(23, 1);\" href=\"#\">".U23."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE." </a><span title=\"+1\"> ".LEVEL." 1</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(24) && !$technology->getTech(24)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u24\" title=\"".U24."\" alt=\"Theutates Thunder\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(24, 1);\" href=\"#\">Theutates Thunder</a></div></td><td class=\"cond\">
|
||||
<a onclick=\"return Popup(24, 1);\" href=\"#\">".U24."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE."</a>
|
||||
<span title=\"+3\"> ".LEVEL." 3</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(25) && !$technology->getTech(25)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u25\" title=\"".U25."\" alt=\"Druidrider\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(25, 1);\" href=\"#\">Druidrider</a></div></td><td class=\"cond\">
|
||||
<a onclick=\"return Popup(25, 1);\" href=\"#\">".U25."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE."</a>
|
||||
<span title=\"+5\"> ".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(26) && !$technology->getTech(26)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u26\" title=\"".U26."\" alt=\"Haeduan\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(26, 1);\" href=\"#\">Haeduan</a></div></td><td class=\"cond\">
|
||||
<a onclick=\"return Popup(26, 1);\" href=\"#\">".U26."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+12\"> ".LEVEL." 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
".STABLE."</a><span title=\"+10\"> ".LEVEL." 10</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(27) && !$technology->getTech(27)) {
|
||||
echo "
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u27\" title=\"".U27."\" alt=\"Ram\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(27, 1);\" href=\"#\">Ram</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<a onclick=\"return Popup(27, 1);\" href=\"#\">".U27."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+7\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a><span title=\"+1\"> ".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(28) && !$technology->getTech(28)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u28\" title=\"".U28."\" alt=\"Trebuchet\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(28, 1);\" href=\"#\">Trebuchet</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a>
|
||||
<a onclick=\"return Popup(28, 1);\" href=\"#\">".U28."</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a>
|
||||
<span title=\"+10\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+12\"> ".LEVEL." 15</span> </td>
|
||||
</tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(29) && !$technology->getTech(29)) {
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u29\" title=\"".U29."\" alt=\"Chieftain\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(29, 1);\" href=\"#\">Chieftain</a></div></td><td class=\"cond\">
|
||||
<a onclick=\"return Popup(29, 1);\" href=\"#\">".U29."</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(14, 4);\">".RALLYPOINT."</a><span title=\"+9\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
".ACADEMY."</a><span title=\"+17\"> ".LEVEL." 20</span></td></tr>";
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$artifactsSum = $database->getArtifactsSumByKind($session->uid, $village->wid, 6);
|
||||
$GreatGranaryWarehouseBuildable = $artifactsSum['small'] > 0 || $artifactsSum['large'] > 0;
|
||||
$GreatGranaryWarehouseBuildable = $artifactsSum['small'] > 0 || $artifactsSum['great'] > 0;
|
||||
|
||||
$mainbuilding = $building->getTypeLevel(15);
|
||||
$cranny = $building->getTypeLevel(23);
|
||||
@@ -274,16 +274,16 @@ if($stable == 0 && (($blacksmith <= 2 && $blacksmith != 0) || ($academy >= 2 &&
|
||||
if($treasury == 0 && $mainbuilding <= 9 && $mainbuilding >= 5 && $village->natar == 0) {
|
||||
include("soon/treasury.tpl");
|
||||
}
|
||||
if($brickyard == 0 && $claypit <= 9 && $claypit >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
if($brickyard == 0 && ( ($claypit <= 9 && $claypit >= 5) || $claypit == 10 ) && $mainbuilding >= 2) {
|
||||
include("soon/brickyard.tpl");
|
||||
}
|
||||
if($sawmill == 0 && $woodcutter <= 9 && $woodcutter >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
if($sawmill == 0 && ( ( $woodcutter <= 9 && $woodcutter >= 5 ) || $woodcutter == 10 ) && $mainbuilding >= 2) {
|
||||
include("soon/sawmill.tpl");
|
||||
}
|
||||
if($ironfoundry == 0 && $ironmine <= 9 && $ironmine >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
if($ironfoundry == 0 && ( ( $ironmine <= 9 && $ironmine >= 5 ) || $ironmine == 10 ) && $mainbuilding >= 2) {
|
||||
include("soon/ironfoundry.tpl");
|
||||
}
|
||||
if($workshop == 0 && $academy <= 9 && $academy >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
if($workshop == 0 && $academy <= 9 && $academy >= 5 && $mainbuilding >= 2) {
|
||||
include("soon/workshop.tpl");
|
||||
}
|
||||
if($tournamentsquare == 0 && $rallypoint <= 14 && $rallypoint >= 7) {
|
||||
@@ -327,7 +327,7 @@ if($palace == 0 && ($embassy == 0 || $mainbuilding <= 2) && $village->natar == 0
|
||||
if($blacksmith == 0 && ($academy == 0 || $mainbuilding == 1)) {
|
||||
include_once("soon/blacksmith.tpl");
|
||||
}
|
||||
if($stonemason == 0 && ($palace == 0 || $mainbuilding <= 2) && $residence == 0) {
|
||||
if($stonemasonslodge == 0 && ($palace == 0 || $mainbuilding <= 2) && $residence == 0) {
|
||||
include_once("soon/stonemason.tpl");
|
||||
}
|
||||
if($stable == 0 && ($blacksmith == 0 || $academy <= 2)) {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<h2>Academy</h2>
|
||||
<h2><?php echo ACADEMY ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the academy new unit types can be researched. By increasing its level you can order the research of better units.</td>
|
||||
<td class="desc"><?php echo ACADEMY_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(22,4);">
|
||||
<img class="building g22" src="img/x.gif" alt="Academy" title="Academy" /></a>
|
||||
<img class="building g22" src="img/x.gif" alt="<?php echo ACADEMY ?>" title="<?php echo ACADEMY ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -13,4 +13,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<h2>Armoury</h2>
|
||||
<h2><?php echo ARMOURY ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the armoury's melting furnaces your warriors' armour is enhanced. By increasing its level you can order the fabrication of even better armour.</td>
|
||||
<td class="desc"><?php echo ARMOURY_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(13,4);">
|
||||
<img class="building g13" src="img/x.gif" alt="Armoury" title="Armoury" /></a>
|
||||
<img class="building g13" src="img/x.gif" alt="<?php echo ARMOURY ?>" title="<?php echo ARMOURY ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -13,4 +13,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -20,15 +20,15 @@ $uprequire = $building->resourceRequired($id, $bid);
|
||||
<td class="link">
|
||||
<?php
|
||||
if($bindicator == 2) {
|
||||
echo "<span class=\"none\">The workers are already at work.</span>";
|
||||
echo "<span class=\"none\">" . WORKERS_ALREADY_WORK_WAITING . "</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">" . CONSTRUCTING_MASTER_BUILDER . "</a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo "<span class=\"none\">" . CONSTRUCTING_MASTER_BUILDER . "</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
@@ -39,10 +39,10 @@ $uprequire = $building->resourceRequired($id, $bid);
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">" . CONSTRUCTING_MASTER_BUILDER . "</a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo "<span class=\"none\">" . CONSTRUCTING_MASTER_BUILDER . "</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
@@ -58,24 +58,24 @@ $uprequire = $building->resourceRequired($id, $bid);
|
||||
}
|
||||
else if($bindicator == 7) {
|
||||
$neededtime = $building->calculateAvaliable($id,$bid);
|
||||
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
echo "<span class=\"none\">" .ENOUGH_RESOURCES . " " .$neededtime[0]." at ".$neededtime[1]."</span>";
|
||||
if($session->goldclub == 1){
|
||||
?> </br>
|
||||
<?php
|
||||
if($session->gold >= 1 && $village->master == 0){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">Constructing with master builder </a>";
|
||||
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">" . CONSTRUCTING_MASTER_BUILDER . "</a>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}else{
|
||||
echo "<span class=\"none\">Constructing with master builder</span>";
|
||||
echo "<span class=\"none\">" . CONSTRUCTING_MASTER_BUILDER . "</span>";
|
||||
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($bindicator == 8) {
|
||||
if($session->access!=BANNED){
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$bid&id=$id&c=".$session->checker."\">Construct building.</a>";
|
||||
echo "<a class=\"build\" href=\"dorf2.php?a=$bid&id=$id&c=".$session->checker."\">". CONSTRUCT_BUILD."</a>";
|
||||
}else{
|
||||
echo "<a class=\"build\" href=\"banned.php\">Construct building.</a>";
|
||||
echo "<a class=\"build\" href=\"banned.php\">". CONSTRUCT_BUILD."</a>";
|
||||
}
|
||||
}
|
||||
else if($bindicator == 9) {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<h2>Barracks</h2>
|
||||
<h2><?php echo BARRACKS ?></h2>
|
||||
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the barracks infantry can be trained. The higher its level the faster the troops are trained.</td>
|
||||
<td class="desc"><?php echo BARRACKS_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(19,4);">
|
||||
<img class="building g19" src="img/x.gif" alt="Barracks" title="Barracks" /></a>
|
||||
<img class="building g19" src="img/x.gif" alt="<?php echo BARRACKS ?>" title="<?php echo BARRACKS ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -14,4 +14,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
<h2>Blacksmith</h2>
|
||||
<h2><?php echo BLACKSMITH ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the blacksmith's melting furnaces your warriors' weapons are enhanced. By increasing its level you can order the fabrication of even better weapons.
|
||||
|
||||
</td>
|
||||
<td class="desc"><?php echo BLACKSMITH_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(12,4);">
|
||||
<img class="building g12" src="img/x.gif" alt="Blacksmith" title="Blacksmith" /></a>
|
||||
<img class="building g12" src="img/x.gif" alt="<?php echo BLACKSMITH ?>" title="<?php echo BLACKSMITH ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -15,4 +13,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<h2>City Wall</h2>
|
||||
<h2><?php echo CITYWALL ?></h2>
|
||||
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">By building a City Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.</td>
|
||||
<td class="desc"><?php echo CITYWALL_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
</td>
|
||||
</tr>
|
||||
@@ -12,4 +12,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<h2>Cranny</h2>
|
||||
<h2><?php echo CRANNY ?></h2>
|
||||
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">The cranny is used to hide some of your resources when the village is attacked. These resources cannot be stolen.</td>
|
||||
<td class="desc"><?php echo CRANNY_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(26,4);">
|
||||
<img class="building g23" src="img/x.gif" alt="Cranny" title="Cranny" /></a>
|
||||
<img class="building g23" src="img/x.gif" alt="<?php echo CRANNY ?>" title="<?php echo CRANNY ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -14,4 +14,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<h2>Embassy</h2>
|
||||
<h2><?php echo EMBASSY ?></h2>
|
||||
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">The embassy is a place for diplomats. The higher its level the more options the king gains.</td>
|
||||
<td class="desc"><?php echo EMBASSY_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(18,4);">
|
||||
<img class="building g18" src="img/x.gif" alt="Embassy" title="Embassy" /></a>
|
||||
<img class="building g18" src="img/x.gif" alt="<?php echo EMBASSY ?>" title="<?php echo EMBASSY ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -14,4 +14,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
|
||||
<h2>Granary</h2>
|
||||
<h2><?php echo GRANARY ?></h2>
|
||||
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the granary the crop produced in your farms is stored. By increasing its level you increase the granary’s capacity.</td>
|
||||
<td class="desc"><?php echo GRANARY_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(11,4);">
|
||||
<img class="building g11" src="img/x.gif" alt="Granary" title="Granary" /></a>
|
||||
<img class="building g11" src="img/x.gif" alt="<?php echo GRANARY ?>" title="<?php echo GRANARY ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -15,4 +15,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<h2>Hero's Mansion</h2>
|
||||
<h2><?php echo HEROSMANSION ?></h2>
|
||||
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the Hero's Mansion you can train a hero and starting with building level 10 occupy oases in your surrounding area.</td>
|
||||
<td class="desc"><?php echo HEROSMANSION_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(37,4);">
|
||||
<img class="building g37" src="img/x.gif" alt="Hero's Mansion" title="Hero's Mansion" /></a>
|
||||
<img class="building g37" src="img/x.gif" alt="<?php echo HEROSMANSION ?>" title="<?php echo HEROSMANSION ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -14,4 +14,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<h2>Marketplace</h2>
|
||||
<h2><?php echo MARKETPLACE ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">At the marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.</td>
|
||||
<td class="desc"><?php echo MARKETPLACE_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(17,4);">
|
||||
<img class="building g17" src="img/x.gif" alt="Marketplace" title="Marketplace" /></a>
|
||||
<img class="building g17" src="img/x.gif" alt="<?php echo MARKETPLACE ?>" title="<?php echo MARKETPLACE ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -13,4 +13,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<h2>Palisade</h2>
|
||||
<h2><?php echo PALISADE ?></h2>
|
||||
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">By building a Palisade you can protect your village against the barbarian hordes of your enemies. A higher level Palisade will give your troops a higher defence bonus.</td>
|
||||
<td class="desc"><?php echo PALISADE_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
</td>
|
||||
</tr>
|
||||
@@ -12,4 +12,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<h2>Rally point</h2>
|
||||
<h2><?php echo RALLYPOINT ?></h2>
|
||||
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">Your village's troops meet here. From here you can send them out to conquer, raid or reinforce other villages.</td>
|
||||
<td class="desc"><?php echo RALLYPOINT_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(16,4);">
|
||||
<img class="g16" src="img/x.gif" alt="Rally point" title="Rally point" /></a>
|
||||
<img class="g16" src="img/x.gif" alt="<?php echo RALLYPOINT ?>" title="<?php echo RALLYPOINT ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -14,4 +14,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<h2>Residence</h2>
|
||||
<h2><?php echo RESIDENCE ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.</td>
|
||||
<td class="desc"><?php echo RESIDENCE_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(25,4);">
|
||||
<img class="building g25" src="img/x.gif" alt="Residence" title="Residence" /></a>
|
||||
<img class="building g25" src="img/x.gif" alt="<?php echo RESIDENCE ?>" title="<?php echo RESIDENCE ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -13,4 +13,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<h2>Stable</h2>
|
||||
<h2><?php echo STABLE ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the stable cavalry is trained. The higher its level the faster the troops are trained.</td>
|
||||
<td class="desc"><?php echo STABLE_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(20,4);">
|
||||
<img class="building g20" src="img/x.gif" alt="Stable" title="Stable" /></a>
|
||||
<img class="building g20" src="img/x.gif" alt="<?php echo STABLE ?>" title="<?php echo STABLE ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -13,4 +13,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<h2>Trapper</h2>
|
||||
<h2><?php echo TRAPPER ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">The Trapper protects your village with well hidden traps. Enemies can be imprisoned and won't be able to harm your village anymore. </td>
|
||||
<td class="desc"><?php echo TRAPPER_DESC ?> </td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(36,4);">
|
||||
<img class="building g36" src="img/x.gif" alt="Trapper" title="Trapper" /></a>
|
||||
<img class="building g36" src="img/x.gif" alt="<?php echo TRAPPER ?>" title="<?php echo TRAPPER ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -13,4 +13,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<h2>Warehouse</h2>
|
||||
<h2><?php echo WAREHOUSE ?></h2>
|
||||
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In your warehouse the resources lumber, clay and iron are stored. By increasing its level you increase your warehouse's capacity.</td>
|
||||
<td class="desc"><?php echo WAREHOUSE_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(10,4);">
|
||||
<img class="building g10" src="img/x.gif" alt="Warehouse" title="Warehouse" /></a>
|
||||
<img class="building g10" src="img/x.gif" alt="<?php echo WAREHOUSE ?>" title="<?php echo WAREHOUSE ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -14,4 +14,4 @@
|
||||
include("availupgrade.tpl");
|
||||
?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<h2>Academy</h2>
|
||||
<h2><?php echo ACADEMY ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the academy new unit types can be researched. By increasing its level you can order the research of better units.</td>
|
||||
<td class="desc"><?php echo ACADEMY_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(22,4);">
|
||||
<img class="building g22" src="img/x.gif" alt="Academy" title="Academy" /></a>
|
||||
<img class="building g22" src="img/x.gif" alt="<?php echo ACADEMY ?>" title="<?php echo ACADEMY ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="requ">Prerequisites</td>
|
||||
<td class="requ"><?php echo PREREQUISITES ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onClick="return Popup(19,4);">Barracks</a> <span title="+3">Level 3</span>, <a href="#" onClick="return Popup(15,4);">Main Building</a> <span title="+2">Level 3</span>
|
||||
<a href="#" onClick="return Popup(19,4);"><?php echo BARRACKS ?></a> <span title="+3"><?php echo LEVEL ?> 3</span>, <a href="#" onClick="return Popup(15,4);"><?php echo MAINBUILDING ?></a> <span title="+2"><?php echo LEVEL ?> 3</span>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<h2>Armoury</h2>
|
||||
<h2><?php echo ARMOURY ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the armoury's melting furnaces your warriors' armour is enhanced. By increasing its level you can order the fabrication of even better armour.</td>
|
||||
<td class="desc"><?php echo ARMOURY_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(13,4);">
|
||||
<img class="building g13" src="img/x.gif" alt="Armoury" title="Armoury" /></a>
|
||||
<img class="building g13" src="img/x.gif" alt="<?php echo ARMOURY ?>" title="<?php echo ARMOURY ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="requ">Prerequisites</td>
|
||||
<td class="requ"><?php echo PREREQUISITES ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onClick="return Popup(15,4);">Main Building</a> <span title="+2">Level 3</span>, <a href="#" onClick="return Popup(22,4);">Academy</a> <span title="+1">Level 1</span>
|
||||
<a href="#" onClick="return Popup(15,4);"><?php echo MAINBUILDING ?></a> <span title="+2"><?php echo LEVEL ?> 3</span>, <a href="#" onClick="return Popup(22,4);"><?php echo ACADEMY ?></a> <span title="+1"><?php echo LEVEL ?> 1</span>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<h2>Barracks</h2>
|
||||
<h2><?php echo BARRACKS ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the barracks infantry can be trained. The higher its level the faster the troops are trained.</td>
|
||||
<td class="desc"><?php echo BARRACKS_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(19,4);">
|
||||
<img class="building g19" src="img/x.gif" alt="Barracks" title="Barracks" /></a>
|
||||
<img class="building g19" src="img/x.gif" alt="<?php echo BARRACKS ?>" title="<?php echo BARRACKS ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="requ">Prerequisites</td>
|
||||
<td class="requ"><?php echo PREREQUISITES ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onClick="return Popup(14,4);">Rally Point</a> <span title="+1">Level 1</span>, <a href="#" onClick="return Popup(23,4);">Main Building</a> <span title="+2">Level 3</span>
|
||||
<a href="#" onClick="return Popup(14,4);"><?php echo RALLYPOINT ?></a> <span title="+1"><?php echo LEVEL ?> 1</span>, <a href="#" onClick="return Popup(23,4);"><?php echo MAINBUILDING ?></a> <span title="+2"><?php echo LEVEL ?> 3</span>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,20 +1,18 @@
|
||||
<h2>Blacksmith</h2>
|
||||
<h2><?php echo BLACKSMITH ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the blacksmith's melting furnaces your warriors' weapons are enhanced. By increasing its level you can order the fabrication of even better weapons.
|
||||
|
||||
</td>
|
||||
<td class="desc"><?php echo BLACKSMITH_DESC ?> </td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(12,4);">
|
||||
<img class="building g12" src="img/x.gif" alt="Blacksmith" title="Blacksmith" /></a>
|
||||
<img class="building g12" src="img/x.gif" alt="<?php echo BLACKSMITH ?>" title="<?php echo BLACKSMITH ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="requ">Prerequisites</td>
|
||||
<td class="requ"><?php echo PREREQUISITES ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onClick="return Popup(15,4);">Main Building</a> <span title="+2">Level 3</span>, <a href="#" onClick="return Popup(22,4);">Academy</a> <span title="+3">Level 3</span>
|
||||
<a href="#" onClick="return Popup(15,4);"><?php echo MAINBUILDING ?></a> <span title="+2"><?php echo LEVEL ?> 3</span>, <a href="#" onClick="return Popup(22,4);"><?php echo ACADEMY ?></a> <span title="+3"><?php echo LEVEL ?> 3</span>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,18 +1,23 @@
|
||||
<h2>Hero's Mansion</h2>
|
||||
<h2><?php echo HEROSMANSION ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the Hero's Mansion you can train a hero and starting with building level 10 occupy oases in your surrounding area.</td>
|
||||
<td class="desc"><?php echo HEROSMANSION_DESC; ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(22,4);">
|
||||
<img class="building g37" src="img/x.gif" alt="Hero's Mansion" title="Hero's Mansion" /></a>
|
||||
<img class="building g37" src="img/x.gif" alt="<?php echo HEROSMANSION; ?>" title="<?php echo HEROSMANSION; ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="requ">Prerequisites</td>
|
||||
<td class="requ"><?php echo PREREQUISITES; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onClick="return Popup(23,4);">Main Building</a> <span title="+2">Level 3</span>, <a href="#" onClick="return Popup(14,4);">Rally Point</a> <span title="+1">Level 1</span>
|
||||
<a href="#" onClick="return Popup(23,4);"><?php echo MAINBUILDING; ?></a>
|
||||
<span title="+2">
|
||||
<?php echo LEVEL; ?> 3
|
||||
</span>,
|
||||
<a href="#" onClick="return Popup(14,4);"><?php echo RALLYPOINT; ?></a>
|
||||
<span title="+1"><?php echo LEVEL; ?> 1</span>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<h2>Residence</h2>
|
||||
<h2><?php echo RESIDENCE ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.</td>
|
||||
<td class="desc"><?php echo RESIDENCE_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(25,4);">
|
||||
<img class="building g25" src="img/x.gif" alt="Residence" title="Residence" /></a>
|
||||
<img class="building g25" src="img/x.gif" alt="<?php echo RESIDENCE ?>" title="<?php echo RESIDENCE ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="requ">Prerequisites</td>
|
||||
<td class="requ"><?php echo PREREQUISITES ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onClick="return Popup(15,4);">Main Building</a> <span title="+4">Level 5</span>, <a href="#" onClick="return Popup(26,4);"><strike>Palace</strike></a>
|
||||
<a href="#" onClick="return Popup(15,4);"><?php echo MAINBUILDING ?></a> <span title="+4"><?php echo LEVEL ?> 5</span>, <a href="#" onClick="return Popup(26,4);"><strike><?php echo PALACE ?></strike></a>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<h2>Stable</h2>
|
||||
<h2><?php echo STABLE ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">In the stable cavalry is trained. The higher its level the faster the troops are trained.</td>
|
||||
<td class="desc"><?php echo STABLE_DESC ?></td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(20,4);">
|
||||
<img class="building g20" src="img/x.gif" alt="Stable" title="Stable" /></a>
|
||||
<img class="building g20" src="img/x.gif" alt="<?php echo STABLE ?>" title="<?php echo STABLE ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="requ">Prerequisites</td>
|
||||
<td class="requ"><?php echo PREREQUISITES ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onClick="return Popup(12,4);">Blacksmith</a> <span title="+3">Level 3</span>, <a href="#" onClick="return Popup(22,4);">Academy</a> <span title="+5">Level 5</span>
|
||||
<a href="#" onClick="return Popup(12,4);"><?php echo BLACKSMITH ?></a> <span title="+3"><?php echo LEVEL ?> 3</span>, <a href="#" onClick="return Popup(22,4);"><?php echo ACADEMY ?></a> <span title="+5"><?php echo LEVEL ?> 5</span>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<h2>Trapper</h2>
|
||||
<h2><?php echo TRAPPER ?></h2>
|
||||
<table class="new_building" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="desc">The Trapper protects your village with well hidden traps. Enemies can be imprisoned and won't be able to harm your village anymore. </td>
|
||||
<td class="desc"><?php echo TRAPPER_DESC ?> </td>
|
||||
<td rowspan="3" class="bimg">
|
||||
<a href="#" onClick="return Popup(36,4);">
|
||||
<img class="building g36" src="img/x.gif" alt="Trapper" title="Trapper" /></a>
|
||||
<img class="building g36" src="img/x.gif" alt="<?php echo TRAPPER ?>" title="<?php echo TRAPPER ?>" /></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="requ">Prerequisites</td>
|
||||
<td class="requ"><?php echo PREREQUISITES ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onClick="return Popup(16,4);">Rally Point</a> <span title="+1">Level 1</span>
|
||||
<a href="#" onClick="return Popup(16,4);"><?php echo RALLYPOINT ?></a> <span title="+1"><?php echo LEVEL ?> 1</span>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
if(isset($_GET['z'])) {
|
||||
$currentcoor = $database->getCoor($_GET['z']);++$requse2;
|
||||
$currentcoor = $database->getCoor($_GET['z']);
|
||||
$y = $currentcoor['y'];
|
||||
$x = $currentcoor['x'];
|
||||
$bigmid = $_GET['z'];
|
||||
|
||||
@@ -14,7 +14,7 @@ echo !$oasis['conqured']? UNOCCUOASIS : OCCUOASIS; echo " (".$basearray['x']."|"
|
||||
$otext = !$oasis['conqured']? UNOCCUOASIS : OCCUOASIS;
|
||||
} ?></h1>
|
||||
<?php if($basearray['occupied'] && $basearray['capital']) { echo "<div id=\"dmain\">(capital)</div>"; }
|
||||
if($uinfo['owner'] == 3 && $uinfo['name'] == PLANVILLAGE){
|
||||
if($uinfo && $uinfo['owner'] == 3 && $uinfo['name'] == PLANVILLAGE){
|
||||
?>
|
||||
<img src="img/x.gif" id="detailed_map" class="f99" alt="<?php echo PLANVILLAGE;?>" />
|
||||
<?php }else{ ?>
|
||||
@@ -154,7 +154,8 @@ if($oasis['owner'] == 2){
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if($session->uid == $database->getVillage($_GET['d'])['owner']){
|
||||
$vilData = $database->getVillage($_GET['d']);
|
||||
if( $vilData && $session->uid == $vilData['owner'] ){
|
||||
$limit = "ntype > 3 AND ntype < 8";
|
||||
}
|
||||
else $limit = "ntype < 8 OR ntype > 17";
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<h5><img src="../img/en/t2/newsbox3.gif" alt="newsbox 2"></h5>
|
||||
<div class="news">
|
||||
<div style="text-align: center"><b>TravianZ by Shadow</b></div><br />
|
||||
<b>Version: <font color="Red">v8.3.4</font></b><br />
|
||||
<div style="text-align: center"><b>TravianZ</b></div><br />
|
||||
<b>Version: <font color="Red">v8.3.5</font></b><br />
|
||||
<b>Major Changes:</b> Over 120 bugs fixed, artifacts fully fixed, catapults and rams fully fixed, automated Natars/Artifacts/WW villages/WW building plans, new battle formula (more precise than the old one), automatic artifacts activation, rewritten a lot of code. See more in readme file!<br />
|
||||
<b>Minor Changes:</b> New forum system, Travian-like trapper formula, fixed master builder, double research queue in blacksmith and armoury with plus<br />
|
||||
<b>Script Price:</b> FREE!<br /><br />
|
||||
<div style="text-align: center"><u><b>Released by: Shadow</b></u></div><br />
|
||||
<div style="text-align: center"><u><b>Released by: TravianZ Team</b></u></div><br />
|
||||
<div style="text-align: center"><b>Visit: <a href="http://forum.ragezone.com/f583/travianz-version-modified-shadow-many-967580/">RageZone.com</a></b></div><br />
|
||||
<div style="text-align: center"><b><u>Download from <a href="https://github.com/Shadowss/TravianZ/archive/master.zip">Github</a></u></b></div><br />
|
||||
</div>
|
||||
|
||||
@@ -120,7 +120,7 @@ $name = $session->uid;
|
||||
<input type="hidden" name="cmd" value="_xclick">
|
||||
|
||||
<!-- Specify details about the item that buyers will purchase. -->
|
||||
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package A Gold Pack'; ?>">
|
||||
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package A Gold Pack (' . $session->username . ')'; ?>">
|
||||
<input type="hidden" name="amount" value="<?php echo (defined('PLUS_PACKAGE_A_PRICE') ? str_replace(",", ".", PLUS_PACKAGE_A_PRICE) : '1,99'); ?>">
|
||||
<input type="hidden" name="currency_code" value="<?php echo (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>">
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ $free = $session->uid;
|
||||
<input type="hidden" name="cmd" value="_xclick">
|
||||
|
||||
<!-- Specify details about the item that buyers will purchase. -->
|
||||
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package C Gold Pack'; ?>">
|
||||
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package C Gold Pack (' . $session->username . ')'; ?>">
|
||||
<input type="hidden" name="amount" value="<?php echo (defined('PLUS_PACKAGE_C_PRICE') ? str_replace(",", ".", PLUS_PACKAGE_C_PRICE) : '9,99'); ?>">
|
||||
<input type="hidden" name="currency_code" value="<?php echo (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>">
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ $free = $session->uid;
|
||||
<input type="hidden" name="cmd" value="_xclick">
|
||||
|
||||
<!-- Specify details about the item that buyers will purchase. -->
|
||||
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package D Gold Pack'; ?>">
|
||||
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package D Gold Pack (' . $session->username . ')'; ?>">
|
||||
<input type="hidden" name="amount" value="<?php echo (defined('PLUS_PACKAGE_D_PRICE') ? str_replace(",", ".", PLUS_PACKAGE_D_PRICE) : '19,99'); ?>">
|
||||
<input type="hidden" name="currency_code" value="<?php echo (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>">
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ $free = $session->uid;
|
||||
<input type="hidden" name="cmd" value="_xclick">
|
||||
|
||||
<!-- Specify details about the item that buyers will purchase. -->
|
||||
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package E Gold Pack'; ?>">
|
||||
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package E Gold Pack (' . $session->username . ')'; ?>">
|
||||
<input type="hidden" name="amount" value="<?php echo (defined('PLUS_PACKAGE_E_PRICE') ? str_replace(",", ".", PLUS_PACKAGE_E_PRICE) : '49,99'); ?>">
|
||||
<input type="hidden" name="currency_code" value="<?php echo (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>">
|
||||
|
||||
|
||||
@@ -1,11 +1,21 @@
|
||||
<table id="coords" cellpadding="1" cellspacing="1">
|
||||
<?php
|
||||
if ( !empty( $form ) && $form->valuearray ) {
|
||||
if ( !empty( $form->valuearray['disabled'] ) ) {
|
||||
$disabled = $form->valuearray['disabled'];
|
||||
}
|
||||
|
||||
if ( !empty( $form->valuearray['disabledr'] ) ) {
|
||||
$disabledr = $form->valuearray['disabledr'];
|
||||
}
|
||||
}
|
||||
?><table id="coords" cellpadding="1" cellspacing="1">
|
||||
<input type="hidden" name="disabledr" value="<?php echo (isset($disabledr) ? $disabledr : ''); ?>">
|
||||
<input type="hidden" name="disabled" value="<?php echo (isset($disabled) ? $disabled : ''); ?>">
|
||||
<tbody><tr>
|
||||
<td class="sel">
|
||||
|
||||
<label>
|
||||
<input class="radio" name="c" <?php if (!isset($checked) || !$checked) {?> checked=checked <?php }?>value="2" type="radio" <?php echo (isset($disabledr) ? $disabledr : ''); ?>>
|
||||
<input class="radio" name="c" <?php if ( ( !isset($disabledr) || !$disabledr ) && ( !isset($checked) || !$checked ) ) {?> checked=checked <?php }?>value="2" type="radio" <?php echo (isset($disabledr) ? $disabledr : ''); ?>>
|
||||
Reinforcement
|
||||
</label>
|
||||
</td>
|
||||
@@ -29,7 +39,12 @@
|
||||
<tr>
|
||||
<td class="sel">
|
||||
<label>
|
||||
<input class="radio" name="c" <?php echo (isset($checked) ? $checked : ''); ?> value="4" type="radio">
|
||||
<input class="radio" name="c" <?php
|
||||
if ( ( isset($disabledr) && $disabledr ) && ( isset($disabled) && $disabled ) ) {
|
||||
$checked = ' checked="checked"';
|
||||
}
|
||||
echo ( ( isset($checked) ? $checked : '' ) );
|
||||
?> value="4" type="radio">
|
||||
Raid
|
||||
</label>
|
||||
</td>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
include('menu.tpl');
|
||||
?>
|
||||
<table id="ressources" cellpadding="1" cellspacing="1">
|
||||
<thead><tr><th colspan="6">Resources</th></tr>
|
||||
<thead><tr><th colspan="6"><?php echo RESOURCES ?></th></tr>
|
||||
<tr>
|
||||
<td>Village</td><td><img class="r1" src="img/x.gif" title="" alt=""></td><td><img class="r2" src="img/x.gif" title="" alt=""></td><td><img class="r3" src="img/x.gif" title="" alt=""></td><td><img class="r4" src="img/x.gif" title="" alt=""></td><td>Merchants</td>
|
||||
<td>Village</td><td><img class="r1" src="img/x.gif" title="" alt=""></td><td><img class="r2" src="img/x.gif" title="" alt=""></td><td><img class="r3" src="img/x.gif" title="" alt=""></td><td><img class="r4" src="img/x.gif" title="" alt=""></td><td><?php echo MERCHANT ?></td>
|
||||
</tr></thead><tbody>
|
||||
<?php
|
||||
$varray = $database->getProfileVillages($session->uid);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<div class="footer-menu">
|
||||
<center><br />
|
||||
<div class="copyright">© 2010 - <?php echo date('Y') . ' ' . (defined('SERVER_NAME') ? SERVER_NAME : 'TravianZ');?> All rights reserved</div>
|
||||
<div class="copyright">Server running on: <a href="version.php"><b><font color="Red">v.8.3.4</font></b></a>
|
||||
<div class="copyright">Server running on: <a href="version.php"><b><font color="Red">v.8.3.5</font></b></a>
|
||||
</div>
|
||||
</div>
|
||||
</div></center>
|
||||
|
||||
@@ -166,7 +166,6 @@ while($row2 = mysqli_fetch_array($getnotice)){
|
||||
<button type="button" class="trav_buttons" onclick="window.location.href = '?gid=16&t=99&action=addraid';">Add Raid</button>
|
||||
<button type="submit" class="trav_buttons" value="Start Raid">Start Raid</button>
|
||||
</div><br />
|
||||
</form>
|
||||
<?php } ?>
|
||||
<div class="options">
|
||||
<a class="arrow" href="build.php?gid=16&t=99&action=addList">Create a new list</a>
|
||||
@@ -174,6 +173,10 @@ while($row2 = mysqli_fetch_array($getnotice)){
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</form>
|
||||
<?php
|
||||
|
||||
if($create == 1){
|
||||
$hideevasion = 1;
|
||||
include("Templates/goldClub/farmlist_add.tpl");
|
||||
|
||||
Reference in New Issue
Block a user