started to work on end game screen by allycol93 & Eyas95 with some changes by me

This commit is contained in:
unknown
2012-04-01 02:41:59 +03:00
parent 92fb8468c4
commit 330b655833
4 changed files with 1199 additions and 4 deletions
+12
View File
@@ -18,6 +18,18 @@ class Automation {
private $bountyOproduction = array();
private $bountyOpop = 1;
public function isWinner() {
global $database, $technology;
$q = mysql_query("SELECT vref FROM ".TB_PREFIX."fdata WHERE f99 = '100'");
$isThere = mysql_num_rows($q);
if($isThere > 0)
{
header('Location: /winner.php');
}else{
## there is no winner
}
}
public function procResType($ref) {
global $session;
switch($ref) {
+4 -2
View File
@@ -9,8 +9,6 @@
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
include("GameEngine/Village.php");
$start = $generator->pageLoadTimeStart();
if(isset($_GET['ok'])){
@@ -22,6 +20,10 @@ 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 -2
View File
@@ -9,8 +9,6 @@
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
include("GameEngine/Village.php");
$start = $generator->pageLoadTimeStart();
if(isset($_GET['newdid'])) {
@@ -20,6 +18,10 @@ 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">
+1179
View File
File diff suppressed because it is too large Load Diff