mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-15 00:56:09 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -85,7 +85,7 @@ class Market
|
||||
|
||||
private function sendResource($post)
|
||||
{
|
||||
global $database,$village,$session,$generator,$logging;
|
||||
global $database,$village,$session,$generator,$logging,$form;
|
||||
|
||||
$wtrans = (isset($post['r1']) && $post['r1'] != "")? $post['r1'] : 0;
|
||||
$ctrans = (isset($post['r2']) && $post['r2'] != "")? $post['r2'] : 0;
|
||||
@@ -102,6 +102,10 @@ class Market
|
||||
$availableClay = $database->getClayAvailable($village->wid);
|
||||
$availableIron = $database->getIronAvailable($village->wid);
|
||||
$availableCrop = $database->getCropAvailable($village->wid);
|
||||
//check if vacation mode:
|
||||
if($database->getvacmodexy($id)){
|
||||
$form->addError("error","User is on vacation mode");
|
||||
}
|
||||
if($session->access == BANNED)
|
||||
{
|
||||
header("Location: banned.php");
|
||||
@@ -386,4 +390,4 @@ class Market
|
||||
};
|
||||
|
||||
$market = new Market;
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user