diff --git a/GameEngine/Market.php b/GameEngine/Market.php index 889d96bc..0f281026 100755 --- a/GameEngine/Market.php +++ b/GameEngine/Market.php @@ -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; -?> \ No newline at end of file +?> diff --git a/Templates/Profile/menu.tpl b/Templates/Profile/menu.tpl index 43401c51..ae119691 100644 --- a/Templates/Profile/menu.tpl +++ b/Templates/Profile/menu.tpl @@ -3,7 +3,13 @@ | >Profile | >Preferences | >Account + | >Vacation +