diff --git a/Templates/Build/15_1.tpl b/Templates/Build/15_1.tpl index 03d8edb0..1b308aeb 100644 --- a/Templates/Build/15_1.tpl +++ b/Templates/Build/15_1.tpl @@ -1,9 +1,9 @@ -access != BANNED){ - $database->delDemolition($village->wid); - header("Location: build.php?gid=15&cancel=0&demolish=0"); + $database->delDemolition($village->wid); + header("Location: build.php?gid=15&ty=$ty&cancel=0&demolish=0"); }else{ header("Location: banned.php"); } @@ -11,46 +11,47 @@ 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&cancel=0&demolish=0"); - } + 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()).""; + 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? - 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\"> -
"; - } + } + echo "
"; + } else { + echo " +
mchecker."\" method=\"POST\" style=\"display:inline\"> +
"; + } } -?> +?>