mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 11:54:25 +00:00
more fixes
This commit is contained in:
@@ -21,6 +21,7 @@ if(!$session->goldclub) {
|
||||
<?php include "Templates/goldClub/farmlist.tpl"; ?>
|
||||
</div>
|
||||
<br />
|
||||
<?php if($hideevasion == 0){ ?>
|
||||
<table cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -72,5 +73,6 @@ if(!$session->goldclub) {
|
||||
<div class="clear"></div><p><input type="image" value="ok" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" tabindex="8" alt="OK" <?php if(!$market->merchantAvail()) { echo "DISABLED"; }?>/></p></form>
|
||||
</tr>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -23,6 +23,8 @@ else if($_POST['dname']!=""){
|
||||
$getwref = $database->getVillageByName($_POST['dname']);
|
||||
$checkexist = $database->checkVilExist($getwref);
|
||||
}
|
||||
$villageOwner = $database->getVillageField($getwref,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
$maxcarry = $market->maxcarry;
|
||||
$maxcarry *= $market->merchantAvail();
|
||||
if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist){
|
||||
@@ -209,6 +211,9 @@ if(isset($_POST['ft'])=='check'){
|
||||
|
||||
if(!$checkexist){
|
||||
$error = '<span class="error"><b>No Coordinates selected</b></span>';
|
||||
}elseif($userAccess == '0' or $userAccess == '8' or $userAccess == '9'){
|
||||
$error = '<span class="error"><b>Player is Banned. You cannot send resources to him.</b></span>';
|
||||
}
|
||||
}elseif($_POST['r1']==0 && $_POST['r2']==0 && $_POST['r3']==0 && $_POST['r4']==0){
|
||||
$error = '<span class="error"><b>Resources not selected.</b></span>';
|
||||
}elseif(!$_POST['x'] && !$_POST['y'] && !$_POST['dname']){
|
||||
|
||||
Reference in New Issue
Block a user