mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 05:36:10 +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 $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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user