access != BANNED){ $database->delDemolition($village->wid); header("Location: build.php?gid=15&ty=$ty&cancel=0&demolish=0"); }else{ header("Location: banned.php"); } } if(!empty($_REQUEST["demolish"]) && $_REQUEST["c"] == $session->mchecker) { if($session->access != BANNED){ if($_REQUEST["type"] != null) { $type = $_REQUEST['type']; $database->addDemolition($village->wid,$type); $session->changeChecker(); header("Location: build.php?gid=15&ty=$type&cancel=0&demolish=0"); } }else{ header("Location: banned.php"); } } if($village->resarray['f'.$id] >= DEMOLISH_LEVEL_REQ) { echo "

Demolition of the building:

If you no longer need a building, you can order the demolition of the building.

"; $VillageResourceLevels = $database->getResourceLevel($village->wid); $DemolitionProgress = $database->getDemolition($village->wid); if (!empty($DemolitionProgress)) { $Demolition = $DemolitionProgress[0]; echo ""; echo "cancel "; echo "Demolition of ".$building->procResType($VillageResourceLevels['f'.$Demolition['buildnumber'].'t']).": ".$generator->getTimeFormat($Demolition['timetofinish']-time()).""; if($session->gold >= 2) { if($session->access!=BANNED){ ?> Finish all construction and research orders in this village immediately for 2 Gold? Finish all construction and research orders in this village immediately for 2 Gold? "; } else { echo "
mchecker."\" method=\"POST\" style=\"display:inline\">
"; } } ?>