vacation mode

This commit is contained in:
Shadow
2014-03-12 09:23:20 +02:00
parent 4d0aec158e
commit 6b73de8eed
+4
View File
@@ -494,6 +494,8 @@ if($type==18 or $type==19 or $type==20 or $type==21){
$data2 = mysql_fetch_assoc($query2);
if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') {
echo "» ".SENDTROOP." (".BAN.")";
} else if($data2['vac_mode']=='1') {
echo "» Send troops. (Vacation mode on)";
} else if($data2['protect'] < time()) {
echo $village->resarray['f39']? "<a href=\"a2b.php?s=2&z=".$_GET['d']."\">&raquo; ".SENDTROOP : "&raquo; ".SENDTROOP." (".BUILDRALLY.")";
} else {
@@ -507,6 +509,8 @@ if($type==18 or $type==19 or $type==20 or $type==21){
<?php
if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') {
echo "&raquo; ".SENDMERC." (".BAN.")";
} else if($data2['vac_mode']=='1') {
echo "&raquo; Send merchant(s). (Vacation mode on)";
} else {
echo $building->getTypeLevel(17)? "<a href=\"build.php?z=".$_GET['d']."&id=" . $building->getTypeField(17) . "\">&raquo; ".SENDMERC : "&raquo; ".SENDMERC ."(".BUILDMARKET.")";
}