mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 20:04:21 +00:00
fix change village system 100%, change natars access again and fix natars ranking
This commit is contained in:
@@ -15,8 +15,22 @@ include("GameEngine/Units.php");
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['w'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?w=".$_GET['w']);
|
||||
}
|
||||
else if(isset($_GET['r'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?r=".$_GET['r']);
|
||||
}
|
||||
else if(isset($_GET['o'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?o=".$_GET['o']);
|
||||
}
|
||||
else if(isset($_GET['z'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?z=".$_GET['z']);
|
||||
}
|
||||
else if($_GET['id']!=0){
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$building->procBuild($_GET);
|
||||
}
|
||||
@@ -41,11 +55,7 @@ if(isset($_GET['o'])) {
|
||||
$checked ="checked=checked";
|
||||
}
|
||||
$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">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user