mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 21:56:09 +00:00
fixed bugs from the list of NarcisRO and more
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
## ##
|
||||
#################################################################################
|
||||
$time = time();
|
||||
$ban = mysql_query("SELECT * FROM ".TB_PREFIX."banlist WHERE `uid` = '".$session->uid."' and `end` < '".$time."'");
|
||||
$ban = mysql_query("SELECT * FROM ".TB_PREFIX."banlist WHERE `uid` = '".$session->uid."' and `end` < '".$time."' and active = 1");
|
||||
$ban1 = mysql_fetch_array($ban);
|
||||
?>
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ for($i=1;$i<=$amt;$i++) {
|
||||
$q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + '150000', u42 = u42 + '150000', u43 = u43 + '150000', u44 = u44 + '150000', u45 = u45 + '150000', u46 = u46 + '150000', u47 = u47 + '150000', u48 = u48 + '150000' , u49 = u49 + '150000', u50 = u50 + '150000' WHERE vref = '".$wid."'";
|
||||
mysql_query($q);
|
||||
$desc = 'With this ancient construction plan you will able to build World Wonder to level 50. to build further, your alliance must hold at least two plans.';
|
||||
$database->addArtefact($wid, 3, 11, 3, 'Ancient Construction Plan', $desc, 0, 'typeww.gif');
|
||||
$database->addArtefact($wid, 3, 11, 1, 'Ancient Construction Plan', $desc, '', 'typeww.gif');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1075,6 +1075,22 @@ class Automation {
|
||||
$heroxp = $totaldead_def;
|
||||
$database->modifyHeroXp("experience",$heroxp,$from['owner']);
|
||||
}
|
||||
$Defender1 = $database->getUnit($data['to']);
|
||||
if($Defender1['hero'] > 0){
|
||||
$defheroowner = $database->getVillageField($Defender1['vref'],"owner");
|
||||
$defheroxp = $totaldead_att;
|
||||
$database->modifyHeroXp("experience",$defheroxp,$defheroowner);
|
||||
}
|
||||
$enforcementarray1 = $database->getEnforceVillage($data['to'],0);
|
||||
if(count($enforcementarray1) > 0) {
|
||||
foreach($enforcementarray1 as $enforce1) {
|
||||
if($enforce1['hero'] > 0){
|
||||
$enforceowner = $database->getVillageField($enforce1['from'],"owner");
|
||||
$reinfheroxp = $totaldead_att;
|
||||
$database->modifyHeroXp("experience",$reinfheroxp,$enforceowner);
|
||||
}
|
||||
}
|
||||
}
|
||||
$database->modifyPoints($toF['owner'],'dpall',$totaldead_att );
|
||||
$database->modifyPoints($from['owner'],'apall',$totaldead_def);
|
||||
$database->modifyPoints($toF['owner'],'dp',$totaldead_att );
|
||||
@@ -1913,8 +1929,8 @@ if($data['t11'] > 0){
|
||||
$walllevel =0;
|
||||
$rplevel =0;
|
||||
}
|
||||
$palaceimg = "<img src=\"<?php echo GP_LOCATE; ?>img/g/g26.gif\" height=\"30\" width=\"24\" alt=\"Palace\" title=\"Palace\" />";
|
||||
$crannyimg = "<img src=\"<?php echo GP_LOCATE; ?>img/g/g23.gif\" height=\"30\" width=\"24\" alt=\"Cranny\" title=\"Cranny\" />";
|
||||
$palaceimg = "<img src=\"".GP_LOCATE."img/g/g26.gif\" height=\"20\" width=\"15\" alt=\"Palace\" title=\"Palace\" />";
|
||||
$crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\" alt=\"Cranny\" title=\"Cranny\" />";
|
||||
$info_spy = "".$spy_pic.",".$palaceimg." Residance/Palace Level : ".$rplevel."
|
||||
<br>".$crannyimg." Cranny level: ".$crannylevel."<br><br>Wall Level : ".$walllevel."";
|
||||
|
||||
@@ -2035,7 +2051,7 @@ $crannyimg = "<img src=\"<?php echo GP_LOCATE; ?>img/g/g23.gif\" height=\"30\" w
|
||||
}
|
||||
unset($Attacker);
|
||||
unset($Defender);
|
||||
unset($Enforce);
|
||||
unset($enforce);
|
||||
unset($unitssend_att);
|
||||
unset($unitssend_def);
|
||||
unset($battlepart);
|
||||
@@ -2056,7 +2072,6 @@ $crannyimg = "<img src=\"<?php echo GP_LOCATE; ?>img/g/g23.gif\" height=\"30\" w
|
||||
unset($herosend_def);
|
||||
unset($deadhero);
|
||||
unset($heroxp);
|
||||
unset($dead11);
|
||||
unset($AttackerID);
|
||||
unset($DefenderID);
|
||||
unset($totalsend_alldef);
|
||||
@@ -2064,6 +2079,12 @@ $crannyimg = "<img src=\"<?php echo GP_LOCATE; ?>img/g/g23.gif\" height=\"30\" w
|
||||
unset($totaldead_def);
|
||||
unset($unitsdead_att_check);
|
||||
unset($totalattackdead);
|
||||
unset($Defender1);
|
||||
unset($enforce1);
|
||||
unset($defheroowner);
|
||||
unset($enforceowner);
|
||||
unset($defheroxp);
|
||||
unset($reinfheroxp);
|
||||
}
|
||||
if(file_exists("GameEngine/Prevention/sendunits.txt")) {
|
||||
@unlink("GameEngine/Prevention/sendunits.txt");
|
||||
|
||||
+19
-35
@@ -394,7 +394,7 @@ class Building {
|
||||
}
|
||||
|
||||
private function meetRequirement($id) {
|
||||
global $village,$database;
|
||||
global $village,$session,$database;
|
||||
switch($id) {
|
||||
case 1:
|
||||
case 2:
|
||||
@@ -493,8 +493,20 @@ class Building {
|
||||
if($this->getTypeLevel(15) >= 10 && $village->capital == 0) { return true; } else { return false; }
|
||||
break;
|
||||
case 40:
|
||||
$wwbuildingplan = count($database->getOwnArtefactInfoByType2($village->wid,11));
|
||||
if($village->natar == 1 && $wwbuildingplan > 0) { return true; } else { return false; }
|
||||
$wwlevel = $village->resarray['f'.$id];
|
||||
if($wwlevel > 50){
|
||||
$needed_plan = 1;
|
||||
}else{
|
||||
$needed_plan = 0;
|
||||
}
|
||||
$wwvillages = $database->getVillagesID($session->uid);
|
||||
foreach($wwvillages as $wwvillage){
|
||||
$plan = count($database->getOwnArtefactInfoByType2($wwvillage,11));
|
||||
if($plan > 0){
|
||||
$wwbuildingplan += 1;
|
||||
}
|
||||
}
|
||||
if($village->natar == 1 && $wwbuildingplan > $needed_plan) { return true; } else { return false; }
|
||||
break;
|
||||
case 41:
|
||||
if($this->getTypeLevel(16) >= 10 && $this->getTypeLevel(20) == 20) { return true; } else { return false; }
|
||||
@@ -626,7 +638,7 @@ class Building {
|
||||
return false;
|
||||
}
|
||||
|
||||
private function finishAll() {
|
||||
public function finishAll() {
|
||||
global $database,$session,$logging,$village,$bid18,$bid10,$bid11,$technology,$_SESSION;
|
||||
if($session->access!=BANNED){
|
||||
foreach($this->buildArray as $jobs) {
|
||||
@@ -638,11 +650,10 @@ class Building {
|
||||
if($jobs['type'] != 25 AND $jobs['type'] != 26 AND $jobs['type'] != 40) {
|
||||
$finish = 1;
|
||||
$resource = $this->resourceRequired($jobs['field'],$jobs['type']);
|
||||
$q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = f".$jobs['field']." + 1, f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid'];
|
||||
$q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = ".$jobs['level'].", f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid'];
|
||||
if($database->query($q)) {
|
||||
$database->modifyPop($jobs['wid'],$resource['pop'],0);
|
||||
$database->addCP($jobs['wid'],$resource['cp']);
|
||||
$database->finishDemolition($village->wid);
|
||||
$q = "DELETE FROM ".TB_PREFIX."bdata where id = ".$jobs['id'];
|
||||
$database->query($q);
|
||||
if($jobs['type'] == 18) {
|
||||
@@ -650,41 +661,14 @@ class Building {
|
||||
$max = $bid18[$level]['attri'];
|
||||
$q = "UPDATE ".TB_PREFIX."alidata set max = $max where leader = $owner";
|
||||
$database->query($q);
|
||||
}
|
||||
if($jobs['type'] == 10) {
|
||||
$max=$database->getVillageField($jobs['wid'],"maxstore");
|
||||
if($level=='0' && $this->getTypeLevel(10) != 20){ $max-=STORAGE_BASE; }
|
||||
$max-=$bid10[$level]['attri']*STORAGE_MULTIPLIER;
|
||||
$max+=$bid10[$level+1]['attri']*STORAGE_MULTIPLIER;
|
||||
$database->setVillageField($jobs['wid'],"maxstore",$max);
|
||||
}
|
||||
if($jobs['type'] == 11) {
|
||||
$max=$database->getVillageField($jobs['wid'],"maxcrop");
|
||||
if($level=='0' && $this->getTypeLevel(11) != 20){ $max-=STORAGE_BASE; }
|
||||
$max-=$bid11[$level]['attri']*STORAGE_MULTIPLIER;
|
||||
$max+=$bid11[$level+1]['attri']*STORAGE_MULTIPLIER;
|
||||
$database->setVillageField($jobs['wid'],"maxcrop",$max);
|
||||
}
|
||||
if($jobs['type'] == 38) {
|
||||
$max=$database->getVillageField($jobs['wid'],"maxstore");
|
||||
if($level=='0' && $this->getTypeLevel(38) != 20){ $max-=STORAGE_BASE; }
|
||||
$max-=$bid38[$level]['attri']*STORAGE_MULTIPLIER;
|
||||
$max+=$bid38[$level+1]['attri']*STORAGE_MULTIPLIER;
|
||||
$database->setVillageField($jobs['wid'],"maxstore",$max);
|
||||
}
|
||||
if($jobs['type'] == 39) {
|
||||
$max=$database->getVillageField($jobs['wid'],"maxcrop");
|
||||
if($level=='0' && $this->getTypeLevel(39) != 20){ $max-=STORAGE_BASE; }
|
||||
$max-=$bid39[$level]['attri']*STORAGE_MULTIPLIER;
|
||||
$max+=$bid39[$level+1]['attri']*STORAGE_MULTIPLIER;
|
||||
$database->setVillageField($jobs['wid'],"maxcrop",$max);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(($jobs['field'] >= 19 && ($session->tribe == 1 || ALLOW_ALL_TRIBE)) || (!ALLOW_ALL_TRIBE && $session->tribe != 1)) { $innertimestamp = $jobs['timestamp']; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$database->finishDemolition($village->wid);
|
||||
$technology->finishTech();
|
||||
$logging->goldFinLog($village->wid);
|
||||
$database->modifyGold($session->uid,2,0);
|
||||
|
||||
@@ -459,7 +459,7 @@ private function trainUnit($unit,$amt,$great=false) {
|
||||
foreach($trainlist as $train) {
|
||||
$train_amt += $train['amt'];
|
||||
}
|
||||
$max = $bid36[$village->resarray['f'.$id]]['attri'] - ($village->unitarray['u99'] + $train_amt);
|
||||
$max = $bid36[$building->getTypeLevel(36)]['attri'] - ($village->unitarray['u99'] + $train_amt);
|
||||
if($max < $amt) {
|
||||
$amt = 0;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,9 @@ if($village->resarray['f'.$id] >= DEMOLISH_LEVEL_REQ) {
|
||||
echo "<b>";
|
||||
echo "<a href='build.php?id=26&cancel=1'><img src='img/x.gif' class='del' title='cancel' alt='cancel'></a> ";
|
||||
echo "Demolition of ".$building->procResType($VillageResourceLevels['f'.$Demolition['buildnumber'].'t']).": <span id=timer1>".$generator->getTimeFormat($Demolition['timetofinish']-time())."</span>";
|
||||
?>
|
||||
<a href="?buildingFinish=1" onclick="return confirm('Finish all construction and research orders in this village immediately for 2 Gold?');" title="Finish all construction and research orders in this village immediately for 2 Gold?"><img class="clock" alt="Finish all construction and research orders in this village immediately for 2 Gold?" src="img/x.gif"/></a>
|
||||
<?php
|
||||
echo "</b>";
|
||||
} else {
|
||||
echo "
|
||||
|
||||
@@ -86,7 +86,7 @@ include("next.tpl");
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p><input type="image" id="btn_train" class="dynamic_img" value="ok" name="s1" src="img/x.gif" alt="train" onclick="this.disabled=true;this.form.submit();"/></form></p>
|
||||
<p><input type="image" id="btn_train" class="dynamic_img" value="ok" name="s1" src="img/x.gif" alt="train" onclick="this.disabled=true;this.form.submit();"/></p></form>
|
||||
<?php
|
||||
} else {
|
||||
echo "<b>Training can commence when trapper are completed.</b><br>\n";
|
||||
|
||||
@@ -573,12 +573,10 @@ $output.="<tr>
|
||||
mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u6['clay']." WHERE `wref` = '" . $village->wid . "'");
|
||||
mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `wood` - ".$u6['iron']." WHERE `wref` = '" . $village->wid . "'");
|
||||
mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `wood` - ".$u6['crop']." WHERE `wref` = '" . $village->wid . "'");
|
||||
header("Location: build.php?id=".$id."");
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if($session->tribe == 2){
|
||||
if($_GET['train'] == 11){
|
||||
if($session->access != BANNED){
|
||||
@@ -590,7 +588,10 @@ $output.="<tr>
|
||||
mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u11['clay']." WHERE `wref` = '" . $village->wid . "'");
|
||||
mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `wood` - ".$u11['iron']." WHERE `wref` = '" . $village->wid . "'");
|
||||
mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `wood` - ".$u11['crop']." WHERE `wref` = '" . $village->wid . "'");
|
||||
header("Location: build.php?id=".$id."");
|
||||
header("Location: build.php?id=".$id."");
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
}
|
||||
}
|
||||
if($_GET['train'] == 12){
|
||||
if($session->access != BANNED){
|
||||
@@ -730,7 +731,7 @@ $output.="<tr>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,7 +44,13 @@ $greatgranary = $building->getTypeLevel(39);
|
||||
$greatworkshop = $building->getTypeLevel(42);
|
||||
$ww = $building->getTypeLevel(40);
|
||||
$wwinbuild = count($database->getBuildingByType($village->wid,40));
|
||||
$wwbuildingplan = count($database->getOwnArtefactInfoByType2($village->wid,11));
|
||||
$wwvillages = $database->getVillagesID($session->uid);
|
||||
foreach($wwvillages as $wwvillage){
|
||||
$plan = count($database->getOwnArtefactInfoByType2($wwvillage,11));
|
||||
if($plan > 0){
|
||||
$wwbuildingplan += 1;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($database->getJobs($_SESSION['wid']) as $bdata) {
|
||||
$UnderConstruction = strtolower(str_replace(array(" ","'"),"",$building->procResType($bdata['type'])));
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
$bid = $village->resarray['f'.$id.'t'];
|
||||
$bindicate = $building->canBuild($id,$bid);
|
||||
$wwlevel = $village->resarray['f'.$id];
|
||||
if($wwlevel > 49){
|
||||
if($wwlevel > 50){
|
||||
$needed_plan = 1;
|
||||
}else{
|
||||
$needed_plan = 0;
|
||||
}
|
||||
$alli_users = $database->getUserByAlliance($session->alliance);
|
||||
$wwbuildingplan = 0;
|
||||
if(!empty($alli_users)){
|
||||
|
||||
foreach($alli_users as $users){
|
||||
$villages = $database->getVillageID($users['id']);
|
||||
foreach($villages as $village){
|
||||
$plan = count($database->getOwnArtefactInfoByType2($village,11));
|
||||
$villages = $database->getVillagesID($users['id']);
|
||||
foreach($villages as $village1){
|
||||
$plan = count($database->getOwnArtefactInfoByType2($village1,11));
|
||||
if($plan > 0){
|
||||
$wwbuildingplan += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if($wwbuildingplan == $needed_plan){
|
||||
|
||||
if($wwbuildingplan > $needed_plan){
|
||||
if($bindicate == 1) {
|
||||
echo "<p><span class=\"none\">Building already at max level</span></p>";
|
||||
} else if($bindicate == 10) {
|
||||
@@ -149,8 +149,12 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
echo ".</a> <span class=\"none\">(waiting loop)</span> ";
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if($needed_plan == 0){
|
||||
echo "<span class=\"none\">Need WW construction plan.</span>";
|
||||
}else{
|
||||
echo "<span class=\"none\">Need more WW construction plan.</span>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The alliance <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The alliance <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The alliance <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The alliance <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The alliance <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The alliance <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -6,11 +6,12 @@
|
||||
| Released by: Dzoki < dzoki.travian@gmail.com > |
|
||||
| Copyright: TravianX Project All rights reserved |
|
||||
\** --------------------------------------------------- **/
|
||||
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The user <b>" . $_SESSION['search'] . "</b> does not exist or has no hero.</p>";
|
||||
$search = 0;
|
||||
} else {
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The user <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist or has no hero.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
} else {
|
||||
$search = $_SESSION['search'];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The user <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The user <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The user <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The user <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The user <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The user <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The user <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The user <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<?php if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The user <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The user <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The user <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The user <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
if(!is_numeric($_SESSION['search'])) {
|
||||
echo "<p class=\"error\">The village <b>".$_SESSION['search']."</b> does not exist.</p>";
|
||||
?>
|
||||
<center><font color=orange size=2><p class=\"error\">The village <b>"<?php echo $_SESSION['search']; ?>"</b> does not exist.</p></font></center>
|
||||
<?php
|
||||
$search = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
FROM ".TB_PREFIX."users
|
||||
INNER JOIN ".TB_PREFIX."vdata ON ".TB_PREFIX."users.id = ".TB_PREFIX."vdata.owner
|
||||
INNER JOIN ".TB_PREFIX."fdata ON ".TB_PREFIX."fdata.vref = ".TB_PREFIX."vdata.wref
|
||||
WHERE ".TB_PREFIX."fdata.f99 > 0 ORDER BY ".TB_PREFIX."fdata.f99 Desc ");
|
||||
WHERE ".TB_PREFIX."fdata.f99t = 40 ORDER BY ".TB_PREFIX."fdata.f99 Desc ");
|
||||
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="villages" class="row_table_data">
|
||||
|
||||
@@ -17,6 +17,12 @@ if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
header("Location: ".$_SERVER['PHP_SELF'].(isset($_GET['id'])?'?id='.$_GET['id']:(isset($_GET['gid'])?'?gid='.$_GET['gid']:'')));
|
||||
}
|
||||
if(isset($_GET['buildingFinish'])) {
|
||||
if($session->gold >= 2) {
|
||||
$building->finishAll();
|
||||
header("Location: build.php?gid=15");
|
||||
}
|
||||
}
|
||||
$start = $generator->pageLoadTimeStart();
|
||||
$alliance->procAlliForm($_POST);
|
||||
$technology->procTech($_POST);
|
||||
|
||||
Reference in New Issue
Block a user