mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-15 07:41:00 +00:00
lang update
This commit is contained in:
+75
-106
@@ -1,35 +1,21 @@
|
||||
<div id="content" class="map">
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Project: TravianZ ##
|
||||
## Version: 01.09.2013 ##
|
||||
## Filename vilview.php ##
|
||||
## Developed by: Advocaite , yi12345 , Shadow ##
|
||||
## Fixed by: Shadow - Tribe Names , correct view resource ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
||||
## URLs: http://travian.shadowss.ro ##
|
||||
## Source code: http://github.com/Shadowss/TravianZ-by-Shadow/ ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
$basearray = $database->getMInfo($_GET['d']);
|
||||
$uinfo = $database->getVillage($basearray['id']);
|
||||
$oasis1 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'odata` WHERE `wref` = ' . mysql_real_escape_string($_GET['d']));
|
||||
$oasis = mysql_fetch_assoc($oasis1);
|
||||
$access=$session->access;
|
||||
?>
|
||||
<h1><?php if($basearray['fieldtype']!=0){
|
||||
echo !$basearray['occupied']? $basearray['fieldtype']? "Abandoned valley" : "Unoccupied oasis" : $basearray['name']; echo " (".$basearray['x']."|".$basearray['y'].")";
|
||||
echo !$basearray['occupied']? ABANDVALLEY : $basearray['name']; echo " (".$basearray['x']."|".$basearray['y'].")";
|
||||
}else{
|
||||
echo $oasis['name']; echo " (".$basearray['x']."|".$basearray['y'].")";
|
||||
echo !$oasis['conqured']? UNOCCUOASIS : OCCUOASIS; echo " (".$basearray['x']."|".$basearray['y'].")";
|
||||
$otext = !$oasis['conqured']? UNOCCUOASIS : OCCUOASIS;
|
||||
} ?></h1>
|
||||
<?php if($basearray['occupied'] && $basearray['capital']) { echo "<div id=\"dmain\">(capital)</div>"; }
|
||||
if($uinfo['owner']==3 && $uinfo['name']=='WW Buildingplan'){
|
||||
if($uinfo['owner']==3 && $uinfo['name']==PLANVILLAGE){
|
||||
?>
|
||||
<img src="img/x.gif" id="detailed_map" class="f99" alt="WW buildingplan" />
|
||||
<img src="img/x.gif" id="detailed_map" class="f99" alt="<?php echo PLANVILLAGE;?>" />
|
||||
<?php }else{ ?>
|
||||
<img src="img/x.gif" id="detailed_map" class="<?php echo ($basearray['fieldtype'] == 0)? 'w'.$basearray['oasistype'] : 'f'.$basearray['fieldtype'] ?>" alt="<?php
|
||||
switch($basearray['fieldtype']) {
|
||||
@@ -73,41 +59,41 @@ case 0:
|
||||
switch($basearray['oasistype']) {
|
||||
case 1:
|
||||
case 2:
|
||||
$tt = "+25% lumber per hour\" title=\"+25% lumber per hour";
|
||||
$tt = "+25% ".LUMBER." ".PERHOUR."\" title=\"+25% ".LUMBER." ".PERHOUR;
|
||||
$ttt = "<td class=\"ico\"><img class=\"r1\" src=\"img/x.gif\" title=\"".LUMBER."\"> 25% ".LUMBER."</td>";
|
||||
break;
|
||||
case 3:
|
||||
$tt = "+25% lumber and +25% crop per hour\" title=\"+25% lumber and +25% crop per hour";
|
||||
$tt = "+25% ".LUMBER." and +25% ".CROP." ".PERHOUR."\" title=\"+25% ".LUMBER." and +25% ".CROP." ".PERHOUR;
|
||||
$ttt = "<td class=\"ico\"><img class=\"r1\" src=\"img/x.gif\" title=\"".LUMBER."\"> 25% ".LUMBER."</td>
|
||||
<tr><td class=\"ico\"><img class=\"r4\" src=\"img/x.gif\" title=\"".CROP."\"> 25% ".CROP."</td></tr>";
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
$tt = "+25% clay per hour\" title=\"+25% clay per hour";
|
||||
$tt = "+25% ".CLAY." ".PERHOUR."\" title=\"+25% ".CLAY." ".PERHOUR;
|
||||
$ttt = "<td class=\"ico\"><img class=\"r2\" src=\"img/x.gif\" title=\"".CLAY."\"> 25% ".CLAY."</td>";
|
||||
break;
|
||||
case 6:
|
||||
$tt = "+25% clay and +25% crop per hour\" title=\"+25% clay and +25% crop per hour";
|
||||
$tt = "+25% ".CLAY." and +25% ".CROP." ".PERHOUR."\" title=\"+25% ".CLAY." and +25% ".CROP." ".PERHOUR;
|
||||
$ttt = "<td class=\"ico\"><img class=\"r2\" src=\"img/x.gif\" title=\"".CLAY."\"> 25% ".CLAY."</td>
|
||||
<tr><td class=\"ico\"><img class=\"r4\" src=\"img/x.gif\" title=\"".CROP."\"> 25% ".CROP."</td></tr>";
|
||||
break;
|
||||
case 7:
|
||||
case 8:
|
||||
$tt = "+25% iron per hour\" title=\"+25% iron per hour";
|
||||
$tt = "+25% ".IRON." ".PERHOUR."\" title=\"+25% ".IRON." ".PERHOUR;
|
||||
$ttt = "<td class=\"ico\"><img class=\"r3\" src=\"img/x.gif\" title=\"".IRON."\"> 25% ".IRON."</td>";
|
||||
break;
|
||||
case 9:
|
||||
$tt = "+25% iron and +25% crop per hour\" title=\"+25% iron and +25% crop per hour";
|
||||
$tt = "+25% ".IRON." and +25% ".CROP." ".PERHOUR."\" title=\"+25% ".IRON." and +25% ".CROP." ".PERHOUR;
|
||||
$ttt = "<td class=\"ico\"><img class=\"r3\" src=\"img/x.gif\" title=\"".IRON."\"> 25% ".IRON."</td>
|
||||
<tr><td class=\"ico\"><img class=\"r4\" src=\"img/x.gif\" title=\"".CROP."\"> 25% ".CROP."</td></tr>";
|
||||
break;
|
||||
case 10:
|
||||
case 11:
|
||||
$tt = "+25% crop per hour\" title=\"+25% crop per hour";
|
||||
$tt = "+25% ".CROP." ".PERHOUR."\" title=\"+25% ".CROP." ".PERHOUR;
|
||||
$ttt = "<td class=\"ico\"><img class=\"r4\" src=\"img/x.gif\" title=\"".CROP."\"> 25% ".CROP."</td>";
|
||||
break;
|
||||
case 12:
|
||||
$tt = "+50% crop per hour\" title=\"+50% crop per hour";
|
||||
$tt = "+50% ".CROP." ".PERHOUR."\" title=\"+50% ".CROP." ".PERHOUR;
|
||||
$ttt = "<td class=\"ico\"><img class=\"r4\" src=\"img/x.gif\" title=\"".CROP."\"> 50% ".CROP."</td>";
|
||||
break;
|
||||
}
|
||||
@@ -133,12 +119,12 @@ if($oasis['owner'] == 2){
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="troop_info" class="tableNone">
|
||||
<thead><tr>
|
||||
<th colspan="3">Troops:</th>
|
||||
<th colspan="3"><?php echo TROOP;?>:</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$unit = $database->getUnit($_GET['d']);
|
||||
$unarray = array(31=>"Rat","Spider","Snake","Bat","Wild Boar","Wolf","Bear","Crocodile","Tiger","Elephant");
|
||||
$unarray = array(31=>U31,U32,U33,U34,U35,U36,U37,U38,U39,U40);
|
||||
$a = 0;
|
||||
for ($i = 31; $i <= 40; $i++) {
|
||||
if($unit['u'.$i]){
|
||||
@@ -152,7 +138,7 @@ if($oasis['owner'] == 2){
|
||||
}
|
||||
}
|
||||
if($a == 10){
|
||||
echo '<tr><td>no troops</td></tr>';
|
||||
echo '<tr><td><?php echo NOTROOP;?></td></tr>';
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +148,7 @@ if($oasis['owner'] == 2){
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="troop_info" class="tableNone rep">
|
||||
<thead><tr>
|
||||
<th>Reports:</th>
|
||||
<th><?php echo REPORT;?>:</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
@@ -192,8 +178,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
}
|
||||
}else{ ?>
|
||||
<tr>
|
||||
<td>There is no
|
||||
<br>information available.</td>
|
||||
<td><?php echo THERENOINFO;?></td>
|
||||
</tr>
|
||||
|
||||
<?php }
|
||||
@@ -204,6 +189,7 @@ if($query != 0){
|
||||
while($row = mysql_fetch_array($result)){
|
||||
$dataarray = explode(",",$row['data']);
|
||||
$type = $row['ntype'];
|
||||
$topic=$row['topic'];
|
||||
echo "<tr><td>";
|
||||
if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"".$topic."\" title=\"".$topic."\" />";
|
||||
@@ -216,8 +202,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
}
|
||||
}else{ ?>
|
||||
<tr>
|
||||
<td>There is no
|
||||
<br>information available.</td>
|
||||
<td><?php echo THERENOINFO;?></td>
|
||||
</tr>
|
||||
<?php }} ?>
|
||||
</tbody>
|
||||
@@ -230,7 +215,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
$uinfo = $database->getUserArray($oasis['owner'],1); ?>
|
||||
<tbody><tr>
|
||||
<th>Tribe</th>
|
||||
<td><?php switch($uinfo['tribe']) { case 1: echo Romans; break; case 2: echo Teutons; break; case 3: echo Gauls; break; case 4: echo Nature; break; case 5: echo Natars; break;} ?></td>
|
||||
<td><?php switch($uinfo['tribe']) { case 1: echo TRIBE1; break; case 2: echo TRIBE2; break; case 3: echo TRIBE3; break; case 4: echo TRIBE4; break; case 5: echo TRIBE5; break;} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Alliance</th>
|
||||
@@ -279,6 +264,7 @@ if($query != 0){
|
||||
while($row = mysql_fetch_array($result)){
|
||||
$dataarray = explode(",",$row['data']);
|
||||
$type = $row['ntype'];
|
||||
$topic=$row['topic'];
|
||||
echo "<tr><td>";
|
||||
if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"".$topic."\" title=\"".$topic."\" />";
|
||||
@@ -291,8 +277,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
}
|
||||
}else{ ?>
|
||||
<tr>
|
||||
<td>There is no
|
||||
<br>information available.</td>
|
||||
<td><?php echo THERENOINFO;?></td>
|
||||
</tr>
|
||||
|
||||
<?php }
|
||||
@@ -303,6 +288,7 @@ if($query != 0){
|
||||
while($row = mysql_fetch_array($result)){
|
||||
$dataarray = explode(",",$row['data']);
|
||||
$type = $row['ntype'];
|
||||
$topic=$row['topic'];
|
||||
echo "<tr><td>";
|
||||
if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"".$topic."\" title=\"".$topic."\" />";
|
||||
@@ -315,8 +301,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
}
|
||||
}else{ ?>
|
||||
<tr>
|
||||
<td>There is no
|
||||
<br>information available.</td>
|
||||
<td><?php echo THERENOINFO;?></td>
|
||||
</tr>
|
||||
<?php }} ?>
|
||||
</tbody>
|
||||
@@ -327,30 +312,30 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
<table cellpadding="1" cellspacing="1" id="distribution" class="tableNone">
|
||||
|
||||
<thead><tr>
|
||||
<th colspan="3">Land distribution</th>
|
||||
<th colspan="3"><?php echo LANDDIST;?></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="ico"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /></td>
|
||||
<td class="ico"><img class="r1" src="img/x.gif" alt="<?php echo LUMBER;?>" title="<?php echo LUMBER;?>" /></td>
|
||||
<td class="val"><?php echo $landd['0']; ?></td>
|
||||
<td class="desc">Woodcutters</td>
|
||||
<td class="desc"><?php echo WOODCUTTER;?></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img class="r2" src="img/x.gif" alt="Clay" title="Clay" /></td>
|
||||
<td class="ico"><img class="r2" src="img/x.gif" alt="<?php echo CLAY;?>" title="<?php echo CLAY;?>" /></td>
|
||||
<td class="val"><?php echo $landd['1']; ?></td>
|
||||
<td class="desc">Clay Pits</td>
|
||||
<td class="desc"><?php echo CLAYPIT;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img class="r3" src="img/x.gif" alt="Iron" title="Iron" /></td>
|
||||
<td class="ico"><img class="r3" src="img/x.gif" alt="<?php echo IRON;?>" title="<?php echo IRON;?>" /></td>
|
||||
|
||||
<td class="val"><?php echo $landd['2']; ?></td>
|
||||
<td class="desc">Iron Mines</td>
|
||||
<td class="desc"><?php echo IRONMINE;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img class="r4" src="img/x.gif" alt="Crop" title="Crop" /></td>
|
||||
<td class="ico"><img class="r4" src="img/x.gif" alt="<?php echo CROP;?>" title="<?php echo CROP;?>" /></td>
|
||||
<td class="val"><?php echo $landd['3']; ?></td>
|
||||
<td class="desc">Croplands</td>
|
||||
<td class="desc"><?php echo CROPLAND;?></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -360,35 +345,35 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
else {
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="village_info" class="tableNone">
|
||||
<thead><tr>
|
||||
<!--<thead>
|
||||
<th colspan="2"><div><?php echo $basearray['name']; ?></div> (<?php echo $basearray['x']; ?>|<?php echo $basearray['y']; ?>)</th>
|
||||
</tr></thead>
|
||||
</tr></thead>-->
|
||||
<?php
|
||||
$uinfo = $database->getUserArray($basearray['owner'],1); ?>
|
||||
<tbody><tr>
|
||||
<th>Tribe</th>
|
||||
<td><?php switch($uinfo['tribe']) { case 1: echo Romans; break; case 2: echo Teutons; break; case 3: echo Gauls; break; case 4: echo Nature; break; case 5: echo Natars; break;} ?></td>
|
||||
<th><?php echo TRIBE;?></th>
|
||||
<td><?php switch($uinfo['tribe']) { case 1: echo TRIBE1; break; case 2: echo TRIBE2; break; case 3: echo TRIBE3; break; case 4: echo TRIBE4; break; case 5: echo TRIBE5; break;} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Alliance</th>
|
||||
<th><?php echo ALLIANCE;?></th>
|
||||
<?php if($uinfo['alliance'] == 0){
|
||||
echo '<td>-</td>';
|
||||
} else echo '
|
||||
<td><a href="allianz.php?aid='.$uinfo['alliance'].' ">'.$database->getUserAlliance($basearray['owner']).'</a></td>'; ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Owner</th>
|
||||
<th><?php echo OWNER;?></th>
|
||||
<td><a href="spieler.php?uid=<?php echo $basearray['owner']; ?>"><?php echo $database->getUserField($basearray['owner'],'username',0); ?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Population</th>
|
||||
<th><?php echo POP;?></th>
|
||||
<td><?php echo $basearray['pop']; ?></td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="troop_info" class="tableNone rep">
|
||||
<thead><tr>
|
||||
<th>Reports:</th>
|
||||
<th><?php echo REPORT;?>:</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php
|
||||
@@ -405,6 +390,7 @@ if($query != 0){
|
||||
while($row = mysql_fetch_array($result)){
|
||||
$dataarray = explode(",",$row['data']);
|
||||
$type = $row['ntype'];
|
||||
$topic=$row['topic'];
|
||||
echo "<tr><td>";
|
||||
if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"".$topic."\" title=\"".$topic."\" />";
|
||||
@@ -412,26 +398,12 @@ if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport".$row['ntype']."\" title=\"".$topic."\"> ";
|
||||
}
|
||||
$date = $generator->procMtime($row['time']);
|
||||
echo "<a href=\"berichte.php?id=".$row['id']."&vill=".$row['id']."\">".$date[0]." ".date('H:i',$row['time'])."</a> ";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
while($row = mysql_fetch_array($result)){
|
||||
$dataarray = explode(",",$row['data']);
|
||||
$type = $row['ntype'];
|
||||
echo "<tr><td>";
|
||||
if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"".$topic."\" title=\"".$topic."\" />";
|
||||
}else{
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport".$row['ntype']."\" title=\"".$topic."\"> ";
|
||||
}
|
||||
$date = $generator->procMtime($row['time']);
|
||||
echo "<a href=\"berichte.php?id=".$row['id']."&vill=".$row['id']."\">".$date[0]." ".date('H:i',$row['time'])."</a> ";
|
||||
echo "<a href=\"berichte.php?id=".$row['id']."&vill=".$row['id']."\" title=\"".$topic."\">".$date[0]." ".date('H:i',$row['time'])."</a> ";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
}else{ ?>
|
||||
<tr>
|
||||
<td>There is no
|
||||
<br>information available.</td>
|
||||
<td><?php echo THERENOINFO;?></td>
|
||||
</tr>
|
||||
|
||||
<?php }
|
||||
@@ -442,6 +414,7 @@ if($query != 0){
|
||||
while($row = mysql_fetch_array($result)){
|
||||
$dataarray = explode(",",$row['data']);
|
||||
$type = $row['ntype'];
|
||||
$topic=$row['topic'];
|
||||
echo "<tr><td>";
|
||||
if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"".$topic."\" title=\"".$topic."\" />";
|
||||
@@ -454,8 +427,7 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
}
|
||||
}else{ ?>
|
||||
<tr>
|
||||
<td>There is no
|
||||
<br>information available.</td>
|
||||
<td><?php echo THERENOINFO;?></td>
|
||||
</tr>
|
||||
|
||||
<?php }} ?>
|
||||
@@ -465,16 +437,16 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
</div>
|
||||
<table cellpadding="1" cellspacing="1" id="options" class="tableNone">
|
||||
<thead><tr>
|
||||
<th>Options</th>
|
||||
<th><?php echo OPTION;?></th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
|
||||
<td><a href="karte.php?z=<?php echo $_GET['d']; ?>">» Centre map.</a></td>
|
||||
<td><a href="karte.php?z=<?php echo $_GET['d']; ?>">» <?php echo CENTREMAP;?>.</a></td>
|
||||
</tr>
|
||||
<?php if(!$basearray['occupied']) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="none"><?php
|
||||
<?php if(!$basearray['occupied']) { ?>
|
||||
|
||||
<tr>
|
||||
<td class="none"><?php
|
||||
$mode = CP;
|
||||
$total = count($database->getProfileVillages($session->uid));
|
||||
$need_cps = ${'cp'.$mode}[$total+1];
|
||||
@@ -486,29 +458,26 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
$enough_cp = false;
|
||||
}
|
||||
|
||||
$otext = ($oasis['name']);
|
||||
if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) {
|
||||
$test = "<a href=\"a2b.php?id=".$_GET['d']."&s=1\">» Found new village.</a>";
|
||||
|
||||
if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) {
|
||||
$test = "<a href=\"a2b.php?id=".$_GET['d']."&s=1\">» ".FNEWVILLAGE."</a>";
|
||||
} elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) {
|
||||
$test = "» Found new village. ($cps/$need_cps culture points)";
|
||||
$test = "» ".FNEWVILLAGE." ($cps/$need_cps ".CULTUREPOINT.")";
|
||||
} elseif(!$village->resarray['f39']) {
|
||||
$test = "» Found new village. (build a rally point)";
|
||||
} else {
|
||||
$test = "» Found new village. (".$village->unitarray['u'.$session->tribe.'0']."/3 settlers available)";
|
||||
}
|
||||
$test = "» ".FNEWVILLAGE." (".BUILDRALLY.")";
|
||||
} else {
|
||||
$test = "» ".FNEWVILLAGE." (".$village->unitarray['u'.$session->tribe.'0']."/3 ".SETTLERSAVAIL.")";
|
||||
}
|
||||
|
||||
echo ($basearray['fieldtype']==0)?
|
||||
echo ($basearray['fieldtype']==0)?
|
||||
($village->resarray['f39']==0)?
|
||||
($basearray['owner'] == $session->uid)?
|
||||
|
||||
|
||||
"<a href=\"build.php?id=39\">» Raid $otext oasis. (build a rally point)</a>" :
|
||||
"» Raid $otext oasis. (build a rally point)" :
|
||||
|
||||
|
||||
"<a href=\"a2b.php?z=".$_GET['d']."&o\">» Raid $otext.</a>" :
|
||||
|
||||
"<a href=\"build.php?id=39\">» ".RAID." $otext ".OASIS." (".BUILDRALLY.")</a>" :
|
||||
"» ".RAID." $otext ".OASIS." (".BUILDRALLY.")" :
|
||||
"<a href=\"a2b.php?z=".$_GET['d']."&o\">» ".RAID." $otext</a>" :
|
||||
"$test"
|
||||
?>
|
||||
?>
|
||||
</tr>
|
||||
<?php }
|
||||
else if ($basearray['occupied'] && $basearray['wref'] != $_SESSION['wid']) {?>
|
||||
@@ -524,11 +493,11 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
$query2 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'users` WHERE `id` = ' . $data1['owner']);
|
||||
$data2 = mysql_fetch_assoc($query2);
|
||||
if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') {
|
||||
echo "» Send troops. (Player is banned)";
|
||||
echo "» ".SENDTROOP." (".BAN.")";
|
||||
} else if($data2['protect'] < time()) {
|
||||
echo $village->resarray['f39']? "<a href=\"a2b.php?z=".$_GET['d']."\">» Send troops." : "» Send troops. (build a rally point)";
|
||||
echo $village->resarray['f39']? "<a href=\"a2b.php?s=2&z=".$_GET['d']."\">» ".SENDTROOP : "» ".SENDTROOP." (".BUILDRALLY.")";
|
||||
} else {
|
||||
echo "» Send troops. (beginners protection)";
|
||||
echo "» ".SENDTROOP." (".BEGINPRO.")";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@@ -536,10 +505,10 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
<tr>
|
||||
<td class="none">
|
||||
<?php
|
||||
if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') {
|
||||
echo "» Send merchant(s). (banned)";
|
||||
if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') {
|
||||
echo "» ".SENDMERC." (".BAN.")";
|
||||
} else {
|
||||
echo $building->getTypeLevel(17)? "<a href=\"build.php?z=".$_GET['d']."&id=" . $building->getTypeField(17) . "\">» Send merchant(s)." : "» Send merchant(s). (build marketplace)";
|
||||
echo $building->getTypeLevel(17)? "<a href=\"build.php?z=".$_GET['d']."&id=" . $building->getTypeField(17) . "\">» ".SENDMERC : "» ".SENDMERC ."(".BUILDMARKET.")";
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -549,4 +518,4 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user