mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix vacation mode for market
This commit is contained in:
@@ -104,6 +104,11 @@ class Market
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
//check if vacation mode:
|
||||
elseif($database->getvacmodexy($id)){
|
||||
$form->addError("error","User is on vacation mode");
|
||||
//break;
|
||||
}
|
||||
else if($availableWood >= $post['r1'] AND $availableClay >= $post['r2'] AND $availableIron >= $post['r3'] AND $availableCrop >= $post['r4'])
|
||||
{
|
||||
$resource = array($wtrans,$ctrans,$itrans,$crtrans);
|
||||
@@ -370,4 +375,4 @@ class Market
|
||||
};
|
||||
|
||||
$market = new Market;
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user