fix game end screen 100% and ww.tpl

This commit is contained in:
unknown
2012-04-01 03:46:56 +03:00
parent 330b655833
commit 762b22a29b
9 changed files with 18 additions and 11 deletions
+1 -2
View File
@@ -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.
<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
} else if($village->resarray['f99'] > 0 and < 11) {
} else if($village->resarray['f99'] > 0 and $village->resarray['f99'] < 11) {
echo '<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
}
} else if ($village->resarray['f99'] < 0){
echo 'You can not change the name of the World Wonder after level 10.
<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
+4
View File
@@ -42,6 +42,10 @@ if(isset($_GET['o'])) {
}
$process = $units->procUnits($_POST);
if(isset($_GET['z']))
{
$automation->isWinner();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+3
View File
@@ -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){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+3
View File
@@ -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();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
-4
View File
@@ -20,10 +20,6 @@ if(isset($_GET['newdid'])) {
else {
$building->procBuild($_GET);
}
if(isset($_GET['a']))
{
$automation->isWinner();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
-4
View File
@@ -18,10 +18,6 @@ if(isset($_GET['newdid'])) {
else {
$building->procBuild($_GET);
}
if(isset($_GET['a']))
{
$automation->isWinner();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+3
View File
@@ -14,6 +14,9 @@
include("GameEngine/Village.php");
$start = $generator->pageLoadTimeStart();
$message->procMessage($_POST);
if(isset($_GET['t'])){
$automation->isWinner();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
+1 -1
View File
@@ -20,7 +20,7 @@ if(isset($_GET['newdid'])) {
else {
$building->procBuild($_GET);
}
$automation->isWinner();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
+3
View File
@@ -19,6 +19,9 @@ if(isset($_GET['newdid'])) {
$_SESSION['wid'] = $_GET['newdid'];
header("Location: ".$_SERVER['PHP_SELF']);
}
if(isset($_GET['s'])){
$automation->isWinner();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>