mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-29 00:54:31 +00:00
fix change village system 100%, change natars access again and fix natars ranking
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
WHERE " . TB_PREFIX . "vdata.owner = userid
|
||||
)totalpop
|
||||
FROM " . TB_PREFIX . "users
|
||||
WHERE " . TB_PREFIX . "users.id != 0 and id != 1 and id != 2 and id != 3 and id != 4 and id != 5
|
||||
WHERE " . TB_PREFIX . "users.id != 0 and id != 1 and id != 2 and id != 4 and id != 5
|
||||
ORDER BY totalpop DESC, userid ASC";
|
||||
$result = mysql_query($q);
|
||||
$i = 1;
|
||||
|
||||
@@ -41,7 +41,7 @@ include_once ("GameEngine/Ranking.php");
|
||||
<a href="?p=config">Server config</a>
|
||||
<a href="massmessage.php">Mass message</a>
|
||||
<a href="sysmsg.php">System message</a>
|
||||
<a href="medal.php">Update top 10</a>
|
||||
<a href="medals.php">Update top 10</a>
|
||||
<a href="?p=natarend">Add World Wonder Villages</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
+103
-72
@@ -1,75 +1,106 @@
|
||||
<?php
|
||||
#################################################################################
|
||||
## ##
|
||||
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## ##
|
||||
## Project: ZravianX ##
|
||||
## Version: 2011.12.03 ##
|
||||
## Filename: Templates/admin_menu.tpl ##
|
||||
## Developed by: ZZJHONS ##
|
||||
## License: Creative Commons BY-NC-SA 3.0 ##
|
||||
## Copyright: ZravianX (c) 2011 - All rights reserved ##
|
||||
## URLs: http://www.xtravian.com & http://zravianx.zzjhons.com ##
|
||||
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
include_once ("GameEngine/Database/db_MYSQL.php");
|
||||
include_once ("GameEngine/Ranking.php");
|
||||
/** --------------------------------------------------- **\
|
||||
| ********* DO NOT REMOVE THIS COPYRIGHT NOTICE ********* |
|
||||
+---------------------------------------------------------+
|
||||
| Credits: All the developers including the leaders: |
|
||||
| Advocaite & Dzoki & Donnchadh |
|
||||
| |
|
||||
| Copyright: TravianX Project All rights reserved |
|
||||
\** --------------------------------------------------- **/
|
||||
|
||||
?><?php
|
||||
if(!$session->logged_in) {
|
||||
?>
|
||||
<div id="side_navi">
|
||||
<a id="logo" href="<?php echo HOMEPAGE; ?>" name="logo"><img src="img/x.gif" class="logo" alt="Travian"></a>
|
||||
<?php
|
||||
if($funct->CheckLogin()){ ?>
|
||||
<?php if($_SESSION['access'] == ADMIN){ ?>
|
||||
<p>
|
||||
<a href="admin.php"><b>ACP Home</b></a>
|
||||
<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
|
||||
<a href="login.php">Server</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="?p=server_info">Statistics</a>
|
||||
<a href="?p=online">Online users</a>
|
||||
<a href="?p=news">Game News</a>
|
||||
<a href="?p=homenews">Home News</a>
|
||||
<a href="?p=search">Search</a>
|
||||
<a href="?p=message">Msg/Rep</a>
|
||||
<a href="?p=ban">Ban</a>
|
||||
<a href="?p=gold">Give gold</a>
|
||||
<a href="?p=config">Server config</a>
|
||||
<a href="massmessage.php">Mass message</a>
|
||||
<a href="sysmsg.php">System message</a>
|
||||
<a href="medals.php">Update top 10</a>
|
||||
<a href="?p=natarend">Add World Wonder Villages</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="?p=admin_log"><font color="Red"><b>Admin Log</b></font></a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="?action=logout">Logout</a>
|
||||
</p>
|
||||
<?php } else if($_SESSION['access'] == MULTIHUNTER){ ?>
|
||||
<p>
|
||||
<a href="admin.php">MCP Home</a>
|
||||
<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
|
||||
<a href="dorf1.php">Server</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="?p=server_info">Server Info</a>
|
||||
<a href="?p=online">Online users</a>
|
||||
<a href="?p=search">Search</a>
|
||||
<a href="?p=message">Msg/Rep</a>
|
||||
<a href="?p=ban">Ban</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="?action=logout">Logout</a>
|
||||
</p>
|
||||
<?php } } if(!$funct->CheckLogin()){ ?>
|
||||
<p>
|
||||
<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
|
||||
<a href="login.php">Server</a>
|
||||
</p>
|
||||
<?php }?>
|
||||
</div>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<style type="text/css">
|
||||
div.c1 {text-align: center}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="side_navi">
|
||||
<a id="logo" href="<?php echo HOMEPAGE; ?>" name="logo"><img src="img/x.gif" alt="Travian"></a>
|
||||
|
||||
<p><a href="<?php echo HOMEPAGE; ?>"><?php echo HOME; ?></a> <a href="login.php"><?php echo LOGIN; ?></a> <a href="anmelden.php"><?php echo REG; ?></a></p>
|
||||
</div><?php
|
||||
}
|
||||
else {
|
||||
?>
|
||||
|
||||
<div id="side_navi">
|
||||
<a id="logo" href="<?php echo HOMEPAGE; ?>" name="logo"><img src="img/x.gif" <?php if($session->plus) { echo "class=\"logo_plus\""; } ?> alt="Travian"></a>
|
||||
|
||||
|
||||
<p><a href="<?php echo HOMEPAGE; ?>"><?php echo HOME; ?></a> <a href="spieler.php?uid=<?php echo $session->uid; ?>"><?php echo PROFILE; ?></a> <a href="#" onclick="return Popup(0,0,1);"><?php echo INSTRUCT; ?></a> <?php if($session->access == MULTIHUNTER) {
|
||||
|
||||
echo "<a href=\"Admin/admin.php\"><font color=\"Blue\">Multihunter Panel</font></a>";
|
||||
} ?> <?php if($session->access == ADMIN) {
|
||||
echo "<a href=\"admin.php\"><font color=\"Red\">Admin Panel</font></a>";
|
||||
echo "<a href=\"massmessage.php\">Mass Message</a>";
|
||||
echo "<a href=\"medals.php\">Update Top 10</a>";
|
||||
echo "<a href=\"sysmsg.php\">System message</a>";
|
||||
echo "<a href=\"create_account.php\">Create Natars</a>";
|
||||
} ?> <a href="logout.php"><?php echo LOGOUT; ?></a></p>
|
||||
|
||||
<a href="rules.php"><b>Game Rules</b></a>
|
||||
<p><a href="plus.php?id=3">Travian <b><span class="plus_g">P</span><span class="plus_o">l</span><span class="plus_g">u</span><span class="plus_o">s</span></b></a>
|
||||
<a href="spieler.php?uid=0"><b>Support</b></a>
|
||||
<br></p>
|
||||
</div><?php
|
||||
if($_SESSION['ok']=='1'){
|
||||
?>
|
||||
|
||||
<div id="content" class="village1">
|
||||
<h1>Announcement</h1>
|
||||
|
||||
<h2>Hi <?php echo $session->username; ?>,</h2>
|
||||
<br>
|
||||
<?php include("Templates/text.tpl"); ?>
|
||||
|
||||
<div class="c1">
|
||||
<h2><a href="dorf1.php?ok">» Go to my village</a></h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="side_info">
|
||||
<?php
|
||||
include("Templates/quest.tpl");
|
||||
include("Templates/news.tpl");
|
||||
include("Templates/multivillage.tpl");
|
||||
include("Templates/links.tpl");
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="footer-stopper"></div>
|
||||
|
||||
<div class="clear"></div><?php
|
||||
include("Templates/footer.tpl");
|
||||
include("Templates/res.tpl");
|
||||
?>
|
||||
|
||||
<div id="stime">
|
||||
<div id="ltime">
|
||||
<div id="ltimeWrap">
|
||||
Calculated in <b><?php
|
||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
||||
?></b> ms
|
||||
<br>
|
||||
Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ce"></div><?php
|
||||
die();
|
||||
}
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -14,12 +14,85 @@ if(count($session->villages) > 1){?>
|
||||
<thead><tr><td colspan="3"><a href="dorf3.php" accesskey="9"><?php echo MULTI_V_HEADER; ?>:</a></td></tr></thead>
|
||||
<tbody><?php
|
||||
$returnVillageArray = $database->getArrayMemberVillage($session->uid);
|
||||
if(isset($_GET['w'])) {
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&w=".$_GET['w']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}
|
||||
}
|
||||
else if(isset($_GET['r'])) {
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&r=".$_GET['r']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}
|
||||
}
|
||||
else if(isset($_GET['o'])) {
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&o=".$_GET['o']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}
|
||||
}
|
||||
else if(isset($_GET['z'])) {
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&z=".$_GET['z']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}
|
||||
}
|
||||
else if(isset($_GET['s'])) {
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&s=".$_GET['s']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}
|
||||
}
|
||||
else if(isset($_GET['c'])) {
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&c=".$_GET['c']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}
|
||||
}
|
||||
else if(isset($_GET['t'])) {
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&t=".$_GET['t']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}
|
||||
}
|
||||
else if(isset($_GET['d'])) {
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&d=".$_GET['d']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}
|
||||
}
|
||||
else if(isset($_GET['aid'])) {
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&aid=".$_GET['aid']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}
|
||||
}
|
||||
else{
|
||||
for($i=1;$i<=count($session->villages);++$i){echo'
|
||||
<tr>
|
||||
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
|
||||
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&id=".$_GET['id']).'">'.htmlspecialchars($returnVillageArray[$i-1]['name']).'</a></td>
|
||||
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
|
||||
}?>
|
||||
}}?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
|
||||
@@ -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">
|
||||
|
||||
|
||||
+11
@@ -19,6 +19,17 @@
|
||||
include ("GameEngine/Chat.php");
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
$alliance->procAlliance($_GET);
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['s'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?s=".$_GET['s']);
|
||||
}else if(isset($_GET['aid'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?aid=".$_GET['aid']);
|
||||
}
|
||||
else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
}
|
||||
if(isset($_GET['s'])){
|
||||
$automation->isWinner();
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['t'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?t=".$_GET['t']);
|
||||
}else if(isset($_GET['id'])) {
|
||||
}else if($_GET['id']!=0) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']);
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@
|
||||
$wid = mysql_fetch_assoc(mysql_query("SELECT * FROM " . TB_PREFIX . "vdata WHERE owner = $uid"));
|
||||
$q = "UPDATE " . TB_PREFIX . "vdata SET pop = 834 WHERE owner = $uid";
|
||||
mysql_query($q) or die(mysql_error());
|
||||
$q2 = "UPDATE " . TB_PREFIX . "users SET access = 8 WHERE id = $uid";
|
||||
$q2 = "UPDATE " . TB_PREFIX . "users SET access = 2 WHERE id = $uid";
|
||||
mysql_query($q2) or die(mysql_error());
|
||||
if(SPEED > 3) {
|
||||
$speed = 5;
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
include("GameEngine/Village.php");
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['ok'])){
|
||||
$database->updateUserField($session->username,'ok','0','0'); $_SESSION['ok'] = '0'; }
|
||||
$database->updateUserField($session->username,'ok','0','0'); $_SESSION['ok'] = '0';
|
||||
}
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
else {
|
||||
$building->procBuild($_GET);
|
||||
}else{
|
||||
$building->procBuild($_GET);
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
@@ -14,9 +14,8 @@ $start = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
else {
|
||||
$building->procBuild($_GET);
|
||||
}else{
|
||||
$building->procBuild($_GET);
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
@@ -15,8 +15,12 @@ include("GameEngine/Village.php");
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['s'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?s=".$_GET['s']);
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
|
||||
@@ -15,9 +15,16 @@ include("GameEngine/Village.php");
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['d'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?d=".$_GET['d']);
|
||||
}
|
||||
else if(isset($_GET['c'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?c=".$_GET['c']);
|
||||
}
|
||||
else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$building->procBuild($_GET);
|
||||
}
|
||||
?>
|
||||
|
||||
+1
-7
@@ -10,13 +10,7 @@
|
||||
#################################################################################
|
||||
include("GameEngine/Village.php");
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
else {
|
||||
$building->procBuild($_GET);
|
||||
}
|
||||
$building->procBuild($_GET);
|
||||
if($session->plus){
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['t'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?t=".$_GET['t']);
|
||||
}else if(isset($_GET['id'])) {
|
||||
}else if($_GET['id']!=0) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']);
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
|
||||
+7
-1
@@ -10,15 +10,21 @@
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
ob_start();
|
||||
include("GameEngine/Village.php");
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
$profile->procProfile($_POST);
|
||||
$profile->procSpecial($_GET);
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['s'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?s=".$_GET['s']);
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$building->procBuild($_GET);
|
||||
}
|
||||
if(isset($_GET['s'])){
|
||||
$automation->isWinner();
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ $ranking->procRankReq($_GET);
|
||||
$ranking->procRank($_POST);
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']);
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
+7
-8
@@ -9,14 +9,13 @@
|
||||
##################################################################
|
||||
include("GameEngine/Village.php");
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
if(isset($_GET['newdid']))
|
||||
{
|
||||
$_SESSION['wid'] = $_GET['newdid']; header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$building->procBuild($_GET);
|
||||
}
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
else {
|
||||
$building->procBuild($_GET);
|
||||
}
|
||||
|
||||
## Get Rankings for Ranking Section
|
||||
## Top 3 Population
|
||||
|
||||
Reference in New Issue
Block a user