diff --git a/Templates/Build/ww.tpl b/Templates/Build/ww.tpl index 93b15364..e900e67f 100644 --- a/Templates/Build/ww.tpl +++ b/Templates/Build/ww.tpl @@ -27,9 +27,8 @@ $wwname = $database->getWWName($vref); if($village->resarray['f99'] < 0){ echo 'You need to have World Wonder level 1 to be able to change its name.

World Wonder name:

'; -} else if($village->resarray['f99'] > 0 and < 11) { +} else if($village->resarray['f99'] > 0 and $village->resarray['f99'] < 11) { echo '

World Wonder name:

'; -} } else if ($village->resarray['f99'] < 0){ echo 'You can not change the name of the World Wonder after level 10.

World Wonder name:

'; diff --git a/a2b.php b/a2b.php index d89c4de9..27cf0896 100644 --- a/a2b.php +++ b/a2b.php @@ -42,6 +42,10 @@ if(isset($_GET['o'])) { } $process = $units->procUnits($_POST); +if(isset($_GET['z'])) +{ + $automation->isWinner(); +} ?> diff --git a/allianz.php b/allianz.php index a5253bb8..e6bf5779 100644 --- a/allianz.php +++ b/allianz.php @@ -19,6 +19,9 @@ include ("GameEngine/Chat.php"); $start = $generator->pageLoadTimeStart(); $alliance->procAlliance($_GET); + if(isset($_GET['s'])){ + $automation->isWinner(); + } if($_GET['aid']!=0 or $session->alliance!=0){ ?> diff --git a/build.php b/build.php index a833bf31..bac1e2b9 100644 --- a/build.php +++ b/build.php @@ -47,6 +47,9 @@ if(isset($_GET['id'])) { if (isset($_POST['a']) == 533374 && isset($_POST['id']) == 39){ $units->Settlers($_POST); } +if(isset($_GET['id'])){ +$automation->isWinner(); +} ?> diff --git a/dorf1.php b/dorf1.php index 923e1b6b..85b7d473 100644 --- a/dorf1.php +++ b/dorf1.php @@ -20,10 +20,6 @@ if(isset($_GET['newdid'])) { else { $building->procBuild($_GET); } -if(isset($_GET['a'])) -{ - $automation->isWinner(); -} ?> diff --git a/dorf2.php b/dorf2.php index 2366e347..6132e91b 100644 --- a/dorf2.php +++ b/dorf2.php @@ -18,10 +18,6 @@ if(isset($_GET['newdid'])) { else { $building->procBuild($_GET); } -if(isset($_GET['a'])) -{ - $automation->isWinner(); -} ?> diff --git a/nachrichten.php b/nachrichten.php index 3ff4f959..94dad1bc 100644 --- a/nachrichten.php +++ b/nachrichten.php @@ -14,6 +14,9 @@ include("GameEngine/Village.php"); $start = $generator->pageLoadTimeStart(); $message->procMessage($_POST); +if(isset($_GET['t'])){ +$automation->isWinner(); +} ?> diff --git a/plus.php b/plus.php index 305e653e..5553f2b0 100644 --- a/plus.php +++ b/plus.php @@ -20,7 +20,7 @@ if(isset($_GET['newdid'])) { else { $building->procBuild($_GET); } - +$automation->isWinner(); ?> diff --git a/spieler.php b/spieler.php index 3f1dda79..e1f17651 100644 --- a/spieler.php +++ b/spieler.php @@ -19,6 +19,9 @@ if(isset($_GET['newdid'])) { $_SESSION['wid'] = $_GET['newdid']; header("Location: ".$_SERVER['PHP_SELF']); } +if(isset($_GET['s'])){ +$automation->isWinner(); +} ?>