mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-04 09:27:17 +00:00
started to work on end game screen by allycol93 & Eyas95 with some changes by me
This commit is contained in:
@@ -18,6 +18,18 @@ class Automation {
|
|||||||
private $bountyOproduction = array();
|
private $bountyOproduction = array();
|
||||||
private $bountyOpop = 1;
|
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) {
|
public function procResType($ref) {
|
||||||
global $session;
|
global $session;
|
||||||
switch($ref) {
|
switch($ref) {
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
|
|
||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['ok'])){
|
if(isset($_GET['ok'])){
|
||||||
@@ -22,6 +20,10 @@ if(isset($_GET['newdid'])) {
|
|||||||
else {
|
else {
|
||||||
$building->procBuild($_GET);
|
$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">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html>
|
<html>
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
|
|
||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
@@ -20,6 +18,10 @@ if(isset($_GET['newdid'])) {
|
|||||||
else {
|
else {
|
||||||
$building->procBuild($_GET);
|
$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">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
|
||||||
|
|||||||
+1179
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user