mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-06 04:44:21 +00:00
more big update (sorry about all of them, but i not remember exactly all fixes that i did)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
## --------------------------------------------------------------------------- ##
|
||||
|
||||
## Filename natarbuildingplan.php ##
|
||||
## Filename natarbuildingplan.tpl ##
|
||||
|
||||
## Developed by: advocaite ##
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
## --------------------------------------------------------------------------- ##
|
||||
|
||||
## Filename natarend.php ##
|
||||
## Filename natarend.tpl ##
|
||||
|
||||
## Developed by: advocaite ##
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename gold_1.php ##
|
||||
## Filename gold.php ##
|
||||
## Developed by: aggenkeech ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
include_once("../../config.php");
|
||||
include_once("../../Session.php");
|
||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||
mysql_select_db(SQL_DB);
|
||||
@@ -24,9 +25,11 @@ for($i=1;$i<=$amt;$i++) {
|
||||
$wid = $database->generateBase($kid);
|
||||
$database->setFieldTaken($wid);
|
||||
$time = time();
|
||||
$q = "insert into `s1_vdata`(`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`) values ('$wid','3','WW Buildingplan',0,233,232,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,1314968914)";
|
||||
$pop = rand(50,233);
|
||||
$cp = $pop-1;
|
||||
$q = "insert into `s1_vdata`(`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`) values ('$wid','3','WW Buildingplan',0,$pop,$cp,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,1314968914)";
|
||||
mysql_query($q) or die(mysql_error());
|
||||
$q = "insert into ".TB_PREFIX."fdata (`vref`,`f1`,`f1t`,`f2`,`f2t`,`f3`,`f3t`,`f4`,`f4t`,`f5`,`f5t`,`f6`,`f6t`,`f7`,`f7t`,`f8`,`f8t`,`f9`,`f9t`,`f10`,`f10t`,`f11`,`f11t`,`f12`,`f12t`,`f13`,`f13t`,`f14`,`f14t`,`f15`,`f15t`,`f16`,`f16t`,`f17`,`f17t`,`f18`,`f18t`,`f19`,`f19t`,`f20`,`f20t`,`f21`,`f21t`,`f22`,`f22t`,`f23`,`f23t`,`f24`,`f24t`,`f25`,`f25t`,`f26`,`f26t`,`f27`,`f27t`,`f28`,`f28t`,`f29`,`f29t`,`f30`,`f30t`,`f31`,`f31t`,`f32`,`f32t`,`f33`,`f33t`,`f34`,`f34t`,`f35`,`f35t`,`f36`,`f36t`,`f37`,`f37t`,`f38`,`f38t`,`f39`,`f39t`,`f40`,`f40t`,`f99`,`f99t`,`wwname`) values ($wid,0,1,0,4,0,1,0,3,0,2,0,2,0,3,0,4,0,4,0,3,0,3,0,4,0,4,0,1,0,4,0,2,0,1,0,2,20,17,20,11,0,0,20,10,10,22,10,25,0,0,20,15,10,19,0,0,0,0,0,0,10,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,16,0,0,0,0,'World Wonder')";
|
||||
$q = "insert into ".TB_PREFIX."fdata (`vref`,`f1`,`f1t`,`f2`,`f2t`,`f3`,`f3t`,`f4`,`f4t`,`f5`,`f5t`,`f6`,`f6t`,`f7`,`f7t`,`f8`,`f8t`,`f9`,`f9t`,`f10`,`f10t`,`f11`,`f11t`,`f12`,`f12t`,`f13`,`f13t`,`f14`,`f14t`,`f15`,`f15t`,`f16`,`f16t`,`f17`,`f17t`,`f18`,`f18t`,`f19`,`f19t`,`f20`,`f20t`,`f21`,`f21t`,`f22`,`f22t`,`f23`,`f23t`,`f24`,`f24t`,`f25`,`f25t`,`f26`,`f26t`,`f27`,`f27t`,`f28`,`f28t`,`f29`,`f29t`,`f30`,`f30t`,`f31`,`f31t`,`f32`,`f32t`,`f33`,`f33t`,`f34`,`f34t`,`f35`,`f35t`,`f36`,`f36t`,`f37`,`f37t`,`f38`,`f38t`,`f39`,`f39t`,`f40`,`f40t`,`f99`,`f99t`,`wwname`) values ($wid,0,1,0,4,0,1,0,3,0,2,0,2,0,3,0,4,0,4,0,3,0,3,0,4,0,4,0,1,0,4,0,2,0,1,0,2,20,17,20,11,10,27,20,10,10,22,10,25,0,0,20,15,10,19,0,0,0,0,0,0,10,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,16,0,0,0,0,'World Wonder')";
|
||||
mysql_query($q);
|
||||
$database->addUnits($wid);
|
||||
$database->addTech($wid);
|
||||
@@ -34,11 +37,6 @@ 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.';
|
||||
|
||||
unset($i);
|
||||
unset($vname);
|
||||
unset($effect);
|
||||
$vname = 'Ancient Construction Plan';
|
||||
$database->addArtefact($wid, 3, 11, 3, 'Ancient Construction Plan', $desc, 0, 'typeww.gif');
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
include_once("../../config.php");
|
||||
include_once("../../Session.php");
|
||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||
mysql_select_db(SQL_DB);
|
||||
@@ -24,7 +25,9 @@ for($i=1;$i<=$amt;$i++) {
|
||||
$wid = $database->generateBase($kid);
|
||||
$database->setFieldTaken($wid);
|
||||
$time = time();
|
||||
$q = "insert into `s1_vdata`(`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`,`natar`) values ('$wid','3','WW village',0,233,232,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,$time,1)";
|
||||
$pop = rand(50,233);
|
||||
$cp = $pop-1;
|
||||
$q = "insert into `s1_vdata`(`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`,`natar`) values ('$wid','3','WW village',0,$pop,$cp,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,$time,1)";
|
||||
mysql_query($q) or die(mysql_error());
|
||||
$q = "insert into ".TB_PREFIX."fdata (`vref`,`f1`,`f1t`,`f2`,`f2t`,`f3`,`f3t`,`f4`,`f4t`,`f5`,`f5t`,`f6`,`f6t`,`f7`,`f7t`,`f8`,`f8t`,`f9`,`f9t`,`f10`,`f10t`,`f11`,`f11t`,`f12`,`f12t`,`f13`,`f13t`,`f14`,`f14t`,`f15`,`f15t`,`f16`,`f16t`,`f17`,`f17t`,`f18`,`f18t`,`f19`,`f19t`,`f20`,`f20t`,`f21`,`f21t`,`f22`,`f22t`,`f23`,`f23t`,`f24`,`f24t`,`f25`,`f25t`,`f26`,`f26t`,`f27`,`f27t`,`f28`,`f28t`,`f29`,`f29t`,`f30`,`f30t`,`f31`,`f31t`,`f32`,`f32t`,`f33`,`f33t`,`f34`,`f34t`,`f35`,`f35t`,`f36`,`f36t`,`f37`,`f37t`,`f38`,`f38t`,`f39`,`f39t`,`f40`,`f40t`,`f99`,`f99t`,`wwname`) values ($wid,0,1,0,4,0,1,0,3,0,2,0,2,0,3,0,4,0,4,0,3,0,3,0,4,0,4,0,1,0,4,0,2,0,1,0,2,20,17,20,11,20,15,20,10,10,22,10,25,0,0,0,0,10,19,0,0,0,0,0,0,10,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,16,0,0,0,0,'World Wonder')";
|
||||
mysql_query($q);
|
||||
|
||||
+264
-130
@@ -146,6 +146,9 @@ class Automation {
|
||||
if(!file_exists("GameEngine/Prevention/training.txt") or time()-filemtime("GameEngine/Prevention/training.txt")>10) {
|
||||
$this->trainingComplete();
|
||||
}
|
||||
if(!file_exists("GameEngine/Prevention/starvation.txt") or time()-filemtime("GameEngine/Prevention/starvation.txt")>10) {
|
||||
$this->starvation();
|
||||
}
|
||||
if(!file_exists("GameEngine/Prevention/celebration.txt") or time()-filemtime("GameEngine/Prevention/celebration.txt")>10) {
|
||||
$this->celebrationComplete();
|
||||
}
|
||||
@@ -167,117 +170,6 @@ class Automation {
|
||||
$this->updateStore();
|
||||
}
|
||||
|
||||
function activeCropDead(){
|
||||
global $session,$village,$database,$_SESSION, $allcrop;
|
||||
// var_dump($session);
|
||||
// var_dump($village);
|
||||
// echo"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";'
|
||||
|
||||
//echo $session->villages;
|
||||
$this->updateRes($_SESSION['wid'],$session->uid);
|
||||
$allcrop=$this->bountyproduction['crop'];
|
||||
$allUnitInTown=$database->getUnit($_SESSION['wid']);
|
||||
$allEnforceInTown=$database->getEnforceVillage($_SESSION['wid'],0);
|
||||
$checkcrop=$database->getVillageField($_SESSION['wid'],'crop');
|
||||
$cropProd=$this->bountyGetCropProd();
|
||||
|
||||
// $time = time();
|
||||
// var_dump($session);
|
||||
// echo $checkcrop;
|
||||
// echo $allcrop;
|
||||
|
||||
if ($allcrop<0&&$checkcrop<0){
|
||||
$loops=0;
|
||||
while ($loops<1){
|
||||
if ($checkcrop < 0){
|
||||
|
||||
// array_shift($allUnitInTown);
|
||||
// rsort($allUnitInTown);
|
||||
//rsort($allEnforceIntown);
|
||||
// echo $numEnforce=count($allEnforceInTown);
|
||||
|
||||
if (!empty($allEnforceInTown)){
|
||||
arsort($allEnforceInTown);
|
||||
$unitarr=array();
|
||||
foreach ($allEnforceInTown as $enforceInTown){
|
||||
//var_dump($enforceInTown);
|
||||
// array_shift($enforceInTown);array_pop($enforceInTown);array_pop($enforceInTown);
|
||||
// array_splice($enforceInTown,count($enforceInTown)+1,2);
|
||||
// $enforceInTown=rsort($enforceInTown);
|
||||
for ($i=1;$i<51;$i++){
|
||||
$unitarr['u'.$i]=$enforceInTown['u'.$i];
|
||||
}
|
||||
$unitarr['hero']=$enforceInTown['hero'];
|
||||
|
||||
//var_dump($enforceInTown);
|
||||
if (array_sum($unitarr)>0){
|
||||
arsort($unitarr);
|
||||
$keydel=key($unitarr);
|
||||
$keydel2=substr($keydel,1);
|
||||
// echo $keydel."|||".$keydel2."|||";
|
||||
global ${$keydel};
|
||||
// echo ${$keydel}['crop'];
|
||||
// $newtroop=$unitarr[$keydel]-1;
|
||||
|
||||
$database->modifyEnforce($enforceInTown['id'],$keydel2,1,0);
|
||||
// $cropupdate=$checkcrop+${$keydel}['crop'];
|
||||
$q = "UPDATE ".TB_PREFIX."vdata set `crop` = `crop` +".${$keydel}['crop']." WHERE wref =".$_SESSION['wid'];
|
||||
$database->query($q);
|
||||
// echo$q;
|
||||
}else{
|
||||
$database->deleteReinf($enforceInTown["id"]);
|
||||
}
|
||||
// var_dump($enforceInTown);
|
||||
// var_dump($unitarr);
|
||||
|
||||
/* $allkey=array_keys($enforceInTown));
|
||||
$checkar=array();
|
||||
foreach ($allkey as $value){
|
||||
if ($enforceInTown[$value]>0){
|
||||
$checkar[]=$value;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}else{
|
||||
$unitarr=array();
|
||||
for ($i=1;$i<51;$i++){
|
||||
$unitarr['u'.$i]=$allUnitInTown['u'.$i];
|
||||
}
|
||||
$unitarr['hero']=$allUnitInTown['hero'];
|
||||
arsort($unitarr);
|
||||
if (array_sum($unitarr)>0){
|
||||
$keydel=key($unitarr);
|
||||
$keydel2=substr($keydel,1);
|
||||
global ${$keydel};
|
||||
$database->modifyUnit($allUnitInTown['vref'],$keydel2,1,0);
|
||||
|
||||
$q = "UPDATE ".TB_PREFIX."vdata set `crop` = `crop`+".${$keydel}['crop']." WHERE wref =".$_SESSION['wid'];
|
||||
$database->query($q);
|
||||
// echo$q;
|
||||
}
|
||||
}
|
||||
$this->updateRes($_SESSION['wid'],$session->uid);
|
||||
$allcrop=$this->bountyproduction['crop'];
|
||||
$allUnitInTown=$database->getUnit($_SESSION['wid']);
|
||||
$allEnforceInTown=$database->getEnforceVillage($_SESSION['wid'],0);
|
||||
$checkcrop=$database->getVillageField($_SESSION['wid'],'crop');
|
||||
//echo $allcrop."|||".$checkcrop;
|
||||
if ($allcrop>=0){
|
||||
$q = "UPDATE ".TB_PREFIX."vdata set `crop` = 0 WHERE wref =".$_SESSION['wid'];
|
||||
$database->query($q);
|
||||
$loops++;
|
||||
}elseif ($checkcrop>0){
|
||||
$loops++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// var_dump($allUnitInTown);
|
||||
//var_dump($allEnforceIntown);
|
||||
// echo $allcrop;
|
||||
}
|
||||
|
||||
}
|
||||
private function loyaltyRegeneration() {
|
||||
global $database;
|
||||
$array = array();
|
||||
@@ -656,7 +548,8 @@ if (array_sum($unitarr)>0){
|
||||
if ($isoasis == 0){
|
||||
$Attacker['id'] = $database->getUserField($database->getVillageField($data['from'],"owner"),"id",0);
|
||||
$Defender['id'] = $database->getUserField($database->getVillageField($data['to'],"owner"),"id",0);
|
||||
|
||||
$AttackerID = $database->getUserField($database->getVillageField($data['from'],"owner"),"id",0);
|
||||
$DefenderID = $database->getUserField($database->getVillageField($data['to'],"owner"),"id",0);
|
||||
$owntribe = $database->getUserField($database->getVillageField($data['from'],"owner"),"tribe",0);
|
||||
$targettribe = $database->getUserField($database->getVillageField($data['to'],"owner"),"tribe",0);
|
||||
$ownally = $database->getUserField($database->getVillageField($data['from'],"owner"),"alliance",0);
|
||||
@@ -693,6 +586,7 @@ if (array_sum($unitarr)>0){
|
||||
for($i=1;$i<=50;$i++) {
|
||||
$Defender['u'.$i] += $enforce['u'.$i];
|
||||
}
|
||||
$Defender['hero'] += $enforce['hero'];
|
||||
}
|
||||
}
|
||||
for($i=1;$i<=50;$i++){
|
||||
@@ -710,6 +604,13 @@ if (array_sum($unitarr)>0){
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!isset($Defender['hero'])){
|
||||
$Defender['hero'] = '0';
|
||||
} else {
|
||||
if($Defender['hero']=='' or $Defender['hero']<='0'){
|
||||
$Defender['hero'] = '0';
|
||||
}
|
||||
}
|
||||
//get attack units
|
||||
$Attacker = array();
|
||||
$start = ($owntribe-1)*10+1;
|
||||
@@ -864,9 +765,10 @@ if (array_sum($unitarr)>0){
|
||||
}else{
|
||||
$Attacker['id'] = $database->getUserField($database->getVillageField($data['from'],"owner"),"id",0);
|
||||
$Defender['id'] = $database->getUserField($database->getOasisField($data['to'],"owner"),"id",0);
|
||||
|
||||
$AttackerID = $database->getUserField($database->getVillageField($data['from'],"owner"),"id",0);
|
||||
$DefenderID = $database->getUserField($database->getOasisField($data['to'],"owner"),"id",0);
|
||||
$owntribe = $database->getUserField($database->getVillageField($data['from'],"owner"),"tribe",0);
|
||||
$targettribe = 4;
|
||||
$targettribe = $database->getUserField($database->getOasisField($data['to'],"owner"),"tribe",0);;
|
||||
$ownally = $database->getUserField($database->getVillageField($data['from'],"owner"),"alliance",0);
|
||||
$targetally = $database->getUserField($database->getOasisField($data['to'],"owner"),"alliance",0);
|
||||
$to = $database->getOMInfo($data['to']);
|
||||
@@ -884,6 +786,7 @@ if (array_sum($unitarr)>0){
|
||||
for($i=1;$i<=50;$i++) {
|
||||
$Defender['u'.$i] += $enforce['u'.$i];
|
||||
}
|
||||
$Defender['hero'] += $enforce['hero'];
|
||||
}
|
||||
}
|
||||
for($i=1;$i<=50;$i++){
|
||||
@@ -901,6 +804,13 @@ if (array_sum($unitarr)>0){
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!isset($Defender['hero'])){
|
||||
$Defender['hero'] = '0';
|
||||
} else {
|
||||
if($Defender['hero']=='' or $Defender['hero']<='0'){
|
||||
$Defender['hero'] = '0';
|
||||
}
|
||||
}
|
||||
//get attack units
|
||||
$Attacker = array();
|
||||
$start = ($owntribe-1)*10+1;
|
||||
@@ -983,7 +893,7 @@ if (array_sum($unitarr)>0){
|
||||
$stonemason = "1";
|
||||
|
||||
}
|
||||
$battlepart = $battle->calculateBattle($Attacker,$Defender,$def_wall,$att_tribe,$def_tribe,$residence,$attpop,$defpop,$type,$def_ab,$att_ab,$tblevel,$stonemason,$walllevel);
|
||||
$battlepart = $battle->calculateBattle($Attacker,$Defender,$def_wall,$att_tribe,$def_tribe,$residence,$attpop,$defpop,$type,$def_ab,$att_ab,$tblevel,$stonemason,$walllevel,$AttackerID,$DefenderID);
|
||||
|
||||
//units attack string for battleraport
|
||||
$unitssend_att = ''.$data['t1'].','.$data['t2'].','.$data['t3'].','.$data['t4'].','.$data['t5'].','.$data['t6'].','.$data['t7'].','.$data['t8'].','.$data['t9'].','.$data['t10'].'';
|
||||
@@ -999,14 +909,14 @@ if (array_sum($unitarr)>0){
|
||||
$unitssend_def[3] = ''.$Defender['u21'].','.$Defender['u22'].','.$Defender['u23'].','.$Defender['u24'].','.$Defender['u25'].','.$Defender['u26'].','.$Defender['u27'].','.$Defender['u28'].','.$Defender['u29'].','.$Defender['u30'].'';
|
||||
$unitssend_def[4] = ''.$Defender['u31'].','.$Defender['u32'].','.$Defender['u33'].','.$Defender['u34'].','.$Defender['u35'].','.$Defender['u36'].','.$Defender['u37'].','.$Defender['u38'].','.$Defender['u39'].','.$Defender['u40'].'';
|
||||
$unitssend_def[5] = ''.$Defender['u41'].','.$Defender['u42'].','.$Defender['u43'].','.$Defender['u44'].','.$Defender['u45'].','.$Defender['u46'].','.$Defender['u47'].','.$Defender['u48'].','.$Defender['u49'].','.$Defender['u50'].'';
|
||||
|
||||
$herosend_def = $Defender['hero'];
|
||||
$totalsend_alldef[1] = $Defender['u1']+$Defender['u2']+$Defender['u3']+$Defender['u4']+$Defender['u5']+$Defender['u6']+$Defender['u7']+$Defender['u8']+$Defender['u9']+$Defender['u10'];
|
||||
$totalsend_alldef[2] = $Defender['u11']+$Defender['u12']+$Defender['u13']+$Defender['u14']+$Defender['u15']+$Defender['u16']+$Defender['u17']+$Defender['u18']+$Defender['u19']+$Defender['u20'];
|
||||
$totalsend_alldef[3] = $Defender['u21']+$Defender['u22']+$Defender['u23']+$Defender['u24']+$Defender['u25']+$Defender['u26']+$Defender['u27']+$Defender['u28']+$Defender['u29']+$Defender['u30'];
|
||||
$totalsend_alldef[4] = $Defender['u31']+$Defender['u32']+$Defender['u33']+$Defender['u34']+$Defender['u35']+$Defender['u36']+$Defender['u37']+$Defender['u38']+$Defender['u39']+$Defender['u40'];
|
||||
$totalsend_alldef[5] = $Defender['u41']+$Defender['u42']+$Defender['u43']+$Defender['u44']+$Defender['u45']+$Defender['u46']+$Defender['u47']+$Defender['u48']+$Defender['u49']+$Defender['u50'];
|
||||
|
||||
$totalsend_alldef = $totalsend_alldef[1]+$totalsend_alldef[2]+$totalsend_alldef[3]+$totalsend_alldef[4]+$totalsend_alldef[5];
|
||||
$totalsend_alldef = $totalsend_alldef[1]+$totalsend_alldef[2]+$totalsend_alldef[3]+$totalsend_alldef[4]+$totalsend_alldef[5]+$herosend_def;
|
||||
|
||||
$unitssend_deff[1] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
$unitssend_deff[2] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
@@ -1014,12 +924,12 @@ if (array_sum($unitarr)>0){
|
||||
$unitssend_deff[4] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
$unitssend_deff[5] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
//how many troops died? for battleraport
|
||||
for($i=1;$i<=11;$i++){
|
||||
if($battlepart['casualties_attacker'][$i] <= 0) { ${dead.$i} = 0; }elseif($battlepart['casualties_attacker'][$i] > $data['t'.$i]){
|
||||
${dead.$i}=$data['t'.$i];
|
||||
}else { ${dead.$i} = $battlepart['casualties_attacker'][$i]; }
|
||||
}
|
||||
$heroAttackDead=$dead11;
|
||||
for($i=1;$i<=11;$i++){
|
||||
if($battlepart['casualties_attacker'][$i] <= 0) { ${dead.$i} = 0; }elseif($battlepart['casualties_attacker'][$i] > $data['t'.$i]){
|
||||
${dead.$i}=$data['t'.$i];
|
||||
}else { ${dead.$i} = $battlepart['casualties_attacker'][$i]; }
|
||||
}
|
||||
$heroAttackDead=$dead11;
|
||||
//kill own defence
|
||||
$q = "SELECT * FROM ".TB_PREFIX."units WHERE vref='".$data['to']."'";
|
||||
$unitlist = $database->query_return($q);
|
||||
@@ -1033,6 +943,11 @@ ${dead.$i}=$data['t'.$i];
|
||||
$database->modifyUnit($data['to'],array($i),array(round($battlepart[2]*$unitlist[0]['u'.$i])),array(0));
|
||||
}
|
||||
}
|
||||
$dead['hero']='0';
|
||||
if($unitlist){
|
||||
$dead['hero']+=round($battlepart[2]*$unitlist[0]['hero']);
|
||||
$database->modifyUnit($data['to'],array("hero"),array(round($battlepart[2]*$unitlist[0]['hero'])),array(0));
|
||||
}
|
||||
//kill other defence in village
|
||||
if(count($database->getEnforceVillage($data['to'],0)) > 0) {
|
||||
foreach($database->getEnforceVillage($data['to'],0) as $enforce) {
|
||||
@@ -1051,6 +966,13 @@ ${dead.$i}=$data['t'.$i];
|
||||
} else {
|
||||
$dead[$i]='0';
|
||||
}
|
||||
if($enforce['hero']>'0'){
|
||||
$database->modifyEnforce($enforce['id'],"hero",round($battlepart[2]*$enforce['hero']),0);
|
||||
$dead['hero']+=round($battlepart[2]*$enforce['hero']);
|
||||
if($dead['hero']!=$enforce['hero']){
|
||||
$wrong='1';
|
||||
}
|
||||
}
|
||||
}
|
||||
$notlife= ''.$dead[$start].','.$dead[$start+1].','.$dead[$start+2].','.$dead[$start+3].','.$dead[$start+4].','.$dead[$start+5].','.$dead[$start+6].','.$dead[$start+7].','.$dead[$start+8].','.$dead[$start+9].'';
|
||||
$notlife1 = $dead[$start]+$dead[$start+1]+$dead[$start+2]+$dead[$start+3]+$dead[$start+4]+$dead[$start+5]+$dead[$start+6]+$dead[$start+7]+$dead[$start+8]+$dead[$start+9];
|
||||
@@ -1092,6 +1014,7 @@ ${dead.$i}=$data['t'.$i];
|
||||
$unitsdead_deff[3] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
$unitsdead_deff[4] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
$unitsdead_deff[5] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
$deadhero = $dead['hero'];
|
||||
|
||||
$totaldead_alldef[1] = $dead['1']+$dead['2']+$dead['3']+$dead['4']+$dead['5']+$dead['6']+$dead['7']+$dead['8']+$dead['9']+$dead['10'];
|
||||
$totaldead_alldef[2] = $dead['11']+$dead['12']+$dead['13']+$dead['14']+$dead['15']+$dead['16']+$dead['17']+$dead['18']+$dead['19']+$dead['20'];
|
||||
@@ -1099,7 +1022,7 @@ ${dead.$i}=$data['t'.$i];
|
||||
$totaldead_alldef[4] = $dead['31']+$dead['32']+$dead['33']+$dead['34']+$dead['35']+$dead['36']+$dead['37']+$dead['38']+$dead['39']+$dead['40'];
|
||||
$totaldead_alldef[5] = $dead['41']+$dead['42']+$dead['43']+$dead['44']+$dead['45']+$dead['46']+$dead['47']+$dead['48']+$dead['49']+$dead['50'];
|
||||
|
||||
$totaldead_alldef = $totaldead_alldef[1]+$totaldead_alldef[2]+$totaldead_alldef[3]+$totaldead_alldef[4]+$totaldead_alldef[5];
|
||||
$totaldead_alldef = $totaldead_alldef[1]+$totaldead_alldef[2]+$totaldead_alldef[3]+$totaldead_alldef[4]+$totaldead_alldef[5]+$deadhero;
|
||||
/*
|
||||
if($battlepart['casualties_defender'][1] == 0) { $dead11 = 0; } else { $dead11 = $battlepart['casualties_defender'][1]; }
|
||||
if($battlepart['casualties_defender'][2] == 0) { $dead12 = 0; } else { $dead12 = $battlepart['casualties_defender'][2]; }
|
||||
@@ -1982,10 +1905,10 @@ $crannyimg = "<img src=\"gpack/travian_default/img/g/g23.gif\" height=\"30\" wid
|
||||
|
||||
}
|
||||
|
||||
$data2 = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.',0,0,0,0,0,'.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_def[1].','.$unitsdead_def[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_def[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_def[5].','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy.',,'.$data['t11'].','.$dead11.',,';
|
||||
$data2 = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.',0,0,0,0,0,'.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_def[1].','.$unitsdead_def[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_def[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_def[5].','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy.',,'.$data['t11'].','.$dead11.','.$herosend_def.','.$deadhero.',,';
|
||||
}
|
||||
else{
|
||||
$data2 = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.','.$steal[0].','.$steal[1].','.$steal[2].','.$steal[3].','.$battlepart['bounty'].','.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_def[1].','.$unitsdead_def[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_def[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_def[5].','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy.',,'.$data['t11'].','.$dead11.',,';
|
||||
$data2 = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.','.$steal[0].','.$steal[1].','.$steal[2].','.$steal[3].','.$battlepart['bounty'].','.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_def[1].','.$unitsdead_def[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_def[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_def[5].','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy.',,'.$data['t11'].','.$dead11.','.$herosend_def.','.$deadhero.',,';
|
||||
}
|
||||
|
||||
|
||||
@@ -2111,6 +2034,11 @@ $crannyimg = "<img src=\"gpack/travian_default/img/g/g23.gif\" height=\"30\" wid
|
||||
unset($data_fail);
|
||||
unset($owntribe);
|
||||
unset($unitsdead_att);
|
||||
unset($dead11);
|
||||
unset($herosend_def);
|
||||
unset($deadhero);
|
||||
unset($AttackerID);
|
||||
unset($DefenderID);
|
||||
}
|
||||
if(file_exists("GameEngine/Prevention/sendunits.txt")) {
|
||||
@unlink("GameEngine/Prevention/sendunits.txt");
|
||||
@@ -2834,10 +2762,6 @@ private function demolitionComplete() {
|
||||
if ($hdata['experience'] > $hero_levels[$hdata['level']+1]) {
|
||||
mysql_query("UPDATE " . TB_PREFIX ."hero SET level = level + 1 WHERE heroid = '".$hdata['heroid']."'");
|
||||
mysql_query("UPDATE " . TB_PREFIX ."hero SET points = points + 5 WHERE heroid = '".$hdata['heroid']."'");
|
||||
}
|
||||
if($hdata['health']==0) {
|
||||
mysql_query("UPDATE " . TB_PREFIX ."hero SET dead = '1' WHERE heroid = '".$hdata['heroid']."'");
|
||||
mysql_query("UPDATE " . TB_PREFIX ."units SET hero = '0' WHERE vref = '".$hdata['wref']."'");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2965,6 +2889,216 @@ private function demolitionComplete() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function starvation() {
|
||||
global $database;
|
||||
$ourFileHandle = @fopen("GameEngine/Prevention/starvation.txt", 'w');
|
||||
@fclose($ourFileHandle);
|
||||
$starvcost = array(
|
||||
|
||||
'1'=>30,
|
||||
'2'=>70,
|
||||
'3'=>80,
|
||||
'4'=>40,
|
||||
'5'=>100,
|
||||
'6'=>180,
|
||||
'7'=>70,
|
||||
'8'=>90,
|
||||
'9'=>37500,
|
||||
'10'=>5500,
|
||||
'11'=>40,
|
||||
'12'=>40,
|
||||
'13'=>70,
|
||||
'14'=>50,
|
||||
'15'=>75,
|
||||
'16'=>80,
|
||||
'17'=>70,
|
||||
'18'=>60,
|
||||
'19'=>27200,
|
||||
'20'=>6500,
|
||||
'21'=>30,
|
||||
'22'=>60,
|
||||
'23'=>40,
|
||||
'24'=>60,
|
||||
'25'=>120,
|
||||
'26'=>170,
|
||||
'27'=>75,
|
||||
'28'=>90,
|
||||
'29'=>37500,
|
||||
'30'=>4900,
|
||||
'31'=>100,
|
||||
'32'=>100,
|
||||
'33'=>100,
|
||||
'34'=>100,
|
||||
'35'=>100,
|
||||
'36'=>100,
|
||||
'37'=>100,
|
||||
'38'=>100,
|
||||
'39'=>100,
|
||||
'40'=>100,
|
||||
'41'=>100,
|
||||
'42'=>100,
|
||||
'43'=>100,
|
||||
'44'=>100,
|
||||
'45'=>100,
|
||||
'46'=>100,
|
||||
'47'=>100,
|
||||
'48'=>100,
|
||||
'49'=>100,
|
||||
'50'=>100
|
||||
);
|
||||
$starvupkeep = array(
|
||||
|
||||
'1'=>1,
|
||||
'2'=>1,
|
||||
'3'=>1,
|
||||
'4'=>2,
|
||||
'5'=>3,
|
||||
'6'=>4,
|
||||
'7'=>3,
|
||||
'8'=>6,
|
||||
'9'=>5,
|
||||
'10'=>1,
|
||||
'11'=>1,
|
||||
'12'=>1,
|
||||
'13'=>1,
|
||||
'14'=>1,
|
||||
'15'=>2,
|
||||
'16'=>3,
|
||||
'17'=>6,
|
||||
'18'=>4,
|
||||
'19'=>1,
|
||||
'20'=>1,
|
||||
'21'=>1,
|
||||
'22'=>1,
|
||||
'23'=>2,
|
||||
'24'=>2,
|
||||
'25'=>2,
|
||||
'26'=>3,
|
||||
'27'=>3,
|
||||
'28'=>6,
|
||||
'29'=>4,
|
||||
'30'=>1,
|
||||
'31'=>1,
|
||||
'32'=>1,
|
||||
'33'=>1,
|
||||
'34'=>2,
|
||||
'35'=>2,
|
||||
'36'=>3,
|
||||
'37'=>3,
|
||||
'38'=>3,
|
||||
'39'=>3,
|
||||
'40'=>5,
|
||||
'41'=>1,
|
||||
'42'=>1,
|
||||
'43'=>1,
|
||||
'44'=>1,
|
||||
'45'=>2,
|
||||
'46'=>3,
|
||||
'47'=>6,
|
||||
'48'=>5,
|
||||
'49'=>1,
|
||||
'50'=>1
|
||||
);
|
||||
|
||||
$time = time();
|
||||
|
||||
// load villages with minus prod
|
||||
$starvarray = array();
|
||||
$starvarray = $database->getStarvation();
|
||||
foreach ($starvarray as $starv){
|
||||
if (($starv['starvupdate']+60) < $time){
|
||||
// get enforce
|
||||
$enforcearray = $database->getEnforceVillage($starv['wref'],0);
|
||||
$maxcount = 0;
|
||||
if(count($enforcearray)==0){
|
||||
// get units
|
||||
$unitarray = $database->getUnit($starv['wref']);
|
||||
for($i = 0 ; $i <= 50 ; $i++){
|
||||
$units = $unitarray['u'.$i];
|
||||
if($unitarray['u'.$i] > $maxcount){
|
||||
$maxcount = $unitarray['u'.$i];
|
||||
$maxtype = $i;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
foreach ($enforcearray as $enforce){
|
||||
for($i = 0 ; $i <= 50 ; $i++){
|
||||
$units = $enforce['u'.$i];
|
||||
if($enforce['u'.$i] > $maxcount){
|
||||
$maxcount = $enforce['u'.$i];
|
||||
$maxtype = $i;
|
||||
$enf = $enforce['id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// counting
|
||||
|
||||
$timedif = $time-$starv['starvupdate'];
|
||||
|
||||
$starvsec = ($starv['starv']/3600);
|
||||
|
||||
$difcrop = ($timedif*$starvsec);
|
||||
$newcrop = 0;
|
||||
$oldcrop = $database->getVillageField($starv['wref'], 'crop');
|
||||
if ($oldcrop > 100){
|
||||
$difcrop = $difcrop-$oldcrop;
|
||||
if($difcrop < 0){
|
||||
$difcrop = 0;
|
||||
$newcrop = $oldcrop-$difcrop;
|
||||
}else{
|
||||
$newcrop = $starvcost[$maxtype];
|
||||
}
|
||||
}
|
||||
if($difcrop > 0){
|
||||
$killunits = round(($difcrop/$starvcost[$maxtype]));
|
||||
if (isset($enf)){
|
||||
if($killunits < $maxcount){
|
||||
$database->modifyEnforce($enf, $maxtype, $killunits, 0);
|
||||
}else{
|
||||
$database->deleteReinf($enf);
|
||||
}
|
||||
}else{
|
||||
if($killunits < $maxcount){
|
||||
$database->modifyUnit($starv['wref'], $maxtype, $killunits, 0);
|
||||
}elseif($killunits > $maxcount){
|
||||
$killunits = $maxcount;
|
||||
$database->modifyUnit($starv['wref'], $maxtype, $killunits, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$upkeep = $starv['starv']-($killunits*$starvupkeep[$maxtype]);
|
||||
|
||||
$time = time();
|
||||
|
||||
$crop = $database->getCropProdstarv($starv['wref']);
|
||||
$unitarrays = $this->getAllUnits($starv['wref']);
|
||||
$upkeep = $this->getUpkeep($unitarrays, 0) ;
|
||||
if ($crop < $upkeep){
|
||||
// add starv data
|
||||
$database->setVillageField($starv['wref'], 'starv', $upkeep);
|
||||
$database->setVillageField($starv['wref'], 'starvupdate', $time);
|
||||
$database->setVillageField($starv['wref'], 'crop', $newcrop);
|
||||
}else{
|
||||
$database->setVillageField($starv['wref'], 'starv', 0);
|
||||
$database->setVillageField($starv['wref'], 'starvupdate', 0);
|
||||
$database->setVillageField($starv['wref'], 'crop', $newcrop);
|
||||
}
|
||||
}
|
||||
unset ($starv);
|
||||
unset ($unitarray);
|
||||
unset ($enforcearray);
|
||||
unset ($enforce);
|
||||
unset ($starvarray);
|
||||
}
|
||||
|
||||
if(file_exists("GameEngine/Prevention/starvation.txt")) {
|
||||
@unlink("GameEngine/Prevention/starvation.txt");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
$automation = new Automation;
|
||||
|
||||
+84
-23
@@ -76,7 +76,8 @@ class Battle {
|
||||
$h_db = 1 + 0.002 * $heroarray[0]['defencebonus'];
|
||||
|
||||
return array('heroid'=>$heroarray[0]['heroid'],'unit'=>$heroarray[0]['unit'],'atk'=>$h_atk,'di'=>$h_di,'dc'=>$h_dc,'ob'=>$h_ob,'db'=>$h_db,'health'=>$heroarray['health']);
|
||||
}
|
||||
}
|
||||
|
||||
private function simulate($post) {
|
||||
// Establecemos los arrays con las unidades del atacante y defensor
|
||||
$attacker = array('u1'=>0,'u2'=>0,'u3'=>0,'u4'=>0,'u5'=>0,'u6'=>0,'u7'=>0,'u8'=>0,'u9'=>0,'u10'=>0,'u11'=>0,'u12'=>0,'u13'=>0,'u14'=>0,'u15'=>0,'u16'=>0,'u17'=>0,'u18'=>0,'u19'=>0,'u20'=>0,'u21'=>0,'u22'=>0,'u23'=>0,'u24'=>0,'u25'=>0,'u26'=>0,'u27'=>0,'u28'=>0,'u29'=>0,'u30'=>0,'u31'=>0,'u32'=>0,'u33'=>0,'u34'=>0,'u35'=>0,'u36'=>0,'u37'=>0,'u38'=>0,'u39'=>0,'u40'=>0,'u41'=>0,'u42'=>0,'u43'=>0,'u44'=>0,'u45'=>0,'u46'=>0,'u47'=>0,'u48'=>0,'u49'=>0,'u50'=>0);
|
||||
@@ -160,8 +161,8 @@ class Battle {
|
||||
|
||||
|
||||
//1 raid 0 normal
|
||||
function calculateBattle($Attacker,$Defender,$def_wall,$att_tribe,$def_tribe,$residence,$attpop,$defpop,$type,$def_ab,$att_ab,$tblevel,$stonemason,$walllevel) {
|
||||
global $bid34;
|
||||
function calculateBattle($Attacker,$Defender,$def_wall,$att_tribe,$def_tribe,$residence,$attpop,$defpop,$type,$def_ab,$att_ab,$tblevel,$stonemason,$walllevel,$AttackerID,$DefenderID) {
|
||||
global $database,$bid34;
|
||||
// Definieer de array met de eenheden
|
||||
$calvary = array(4,5,6,15,16,23,24,25,26,35,36,45,46);
|
||||
$catapult = array(8,18,28,38,48);
|
||||
@@ -178,14 +179,14 @@ class Battle {
|
||||
|
||||
if ($Attacker['uhero'] != 0)
|
||||
{
|
||||
//exit($Attacker['id']);
|
||||
$atkhero= $this->getBattleHero($Attacker['id']);
|
||||
//exit($AttackerID);
|
||||
$atkhero= $this->getBattleHero($AttackerID);
|
||||
}
|
||||
|
||||
if ($Defender['uhero'] != 0)
|
||||
if ($Defender['hero'] != 0)
|
||||
{
|
||||
//exit($Defender['id']);
|
||||
$defhero= $this->getBattleHero($Defender['id']);
|
||||
//exit($DefenderID);
|
||||
$defhero= $this->getBattleHero($DefenderID);
|
||||
}
|
||||
// Berekenen het totaal aantal punten van Aanvaller
|
||||
$start = ($att_tribe-1)*10+1;
|
||||
@@ -287,7 +288,7 @@ class Battle {
|
||||
}
|
||||
$units['Def_unit'][$y] = $Defender['u'.$y];
|
||||
}
|
||||
if ($Defender['uhero'] != 0){
|
||||
if ($Defender['hero'] != 0){
|
||||
$dp += $defhero['di'] * 35;
|
||||
$dp = $dp * $defhero['db'];
|
||||
}
|
||||
@@ -310,11 +311,11 @@ class Battle {
|
||||
$involve += $Defender['u'.$y];
|
||||
$units['Def_unit'][$y] = $Defender['u'.$y];
|
||||
}
|
||||
if ($Defender['uhero'] != 0)
|
||||
if ($Defender['hero'] != 0)
|
||||
{
|
||||
$units['Def_unit']['hero'] = $Defender['uhero'];
|
||||
$cdp += $Defender['uhero']*$defhero['dc'];
|
||||
$dp += $Defender['uhero']*$defhero['di'];
|
||||
$units['Def_unit']['hero'] = $Defender['hero'];
|
||||
$cdp += $Defender['hero']*$defhero['dc'];
|
||||
$dp += $Defender['hero']*$defhero['di'];
|
||||
$dp = $dp * $defhero['db'];
|
||||
$cdp = $cdp * $defhero['db'];
|
||||
}
|
||||
@@ -513,12 +514,18 @@ class Battle {
|
||||
//hero die
|
||||
$result['casualties_attacker']['11'] = 1;
|
||||
mysql_query("update " . TB_PREFIX . "hero set `dead`='1' where `heroid`='".$hero_id."'");
|
||||
mysql_query("update " . TB_PREFIX . "hero set `health`='0' where `heroid`='".$hero_id."'");
|
||||
}
|
||||
else
|
||||
{
|
||||
mysql_query("update " . TB_PREFIX . "hero set `health`=`health`-".$damage_health." where `heroid`='".$hero_id."'");
|
||||
}
|
||||
}
|
||||
unset($_result);
|
||||
unset($fdb);
|
||||
unset($hero_id);
|
||||
unset($hero_health);
|
||||
unset($damage_health);
|
||||
|
||||
//exit($result['casualties_attacker']['11']);
|
||||
//$result['casualties_attacker'][11] = round($result[1]*$units['Att_unit']['hero']);
|
||||
@@ -533,9 +540,9 @@ class Battle {
|
||||
$fdb = mysql_fetch_array($_result);
|
||||
$hero_id=$fdb['heroid'];
|
||||
$hero_health=$fdb['health'];
|
||||
$damage_health=round(100*$result[1]);
|
||||
$damage_health=round(100*$result[2]);
|
||||
//exit($damage_health."|".$hero_health."|".$defhero['heroid']);
|
||||
if ($hero_health<=$damage_health)
|
||||
if ($hero_health<=$damage_health or $damage_health>90)
|
||||
{
|
||||
//hero die
|
||||
$result['casualties_defender']['11'] = 1;
|
||||
@@ -546,7 +553,47 @@ class Battle {
|
||||
{
|
||||
mysql_query("update " . TB_PREFIX . "hero set `health`=`health`-".$damage_health." where `heroid`='".$hero_id."'");
|
||||
}
|
||||
unset($_result);
|
||||
unset($fdb);
|
||||
unset($hero_id);
|
||||
unset($hero_health);
|
||||
unset($damage_health);
|
||||
|
||||
$DefendersAll = $database->getEnforceVillage($data['to'],0);
|
||||
if(!empty($DefendersAll)){
|
||||
foreach($DefendersAll as $defenders) {
|
||||
if($defenders['hero'] == 1) {
|
||||
if(!empty($heroarray)) { reset($heroarray); }
|
||||
$ReinforcerData = $database->getVillageBattleData($defenders['from']);
|
||||
$heroarraydefender = $this->getBattleHero($ReinforcerData['id']);
|
||||
$_result=mysql_query("select * from " . TB_PREFIX . "hero where `dead`='0' and `heroid`='".$heroarraydefender['heroid']."'");
|
||||
$fdb = mysql_fetch_array($_result);
|
||||
$hero_id=$fdb['heroid'];
|
||||
$hero_health=$fdb['health'];
|
||||
$damage_health=round(100*$result[2]);
|
||||
//exit($damage_health."|".$hero_health."|".$defhero['heroid']);
|
||||
if ($hero_health<=$damage_health or $damage_health>90)
|
||||
{
|
||||
//hero die
|
||||
$result['casualties_defender']['11'] = 1;
|
||||
mysql_query("update " . TB_PREFIX . "hero set `dead`='1' where `heroid`='".$hero_id."'");
|
||||
mysql_query("update " . TB_PREFIX . "hero set `health`='0' where `heroid`='".$hero_id."'");
|
||||
}
|
||||
else
|
||||
{
|
||||
mysql_query("update " . TB_PREFIX . "hero set `health`=`health`-".$damage_health." where `heroid`='".$hero_id."'");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
unset($_result);
|
||||
unset($fdb);
|
||||
unset($hero_id);
|
||||
unset($hero_health);
|
||||
unset($damage_health);
|
||||
|
||||
//exit($result['casualties_defender']['11']);
|
||||
//$result['casualties_defender'][11] = round($result[1]*$units['Def_unit']['hero']);
|
||||
|
||||
@@ -658,14 +705,14 @@ class Battle {
|
||||
}
|
||||
if($defenders['hero'] == 1 && $data['type'] != 1) {
|
||||
if(!empty($heroarray)) { reset($heroarray); }
|
||||
if($defender['vref'] == $data['to']) {
|
||||
$heroarray = $this->getBattleHero($DefenderData['id']);
|
||||
if($defenders['vref'] == $data['to']) {
|
||||
$heroarraydefender = $this->getBattleHero($DefenderData['id']);
|
||||
} else {
|
||||
$ReinforcerData = $database->getVillageBattleData($defenders['from']);
|
||||
$heroarray = $this->getBattleHero($ReinforcerData['id']);
|
||||
$heroarraydefender = $this->getBattleHero($ReinforcerData['id']);
|
||||
}
|
||||
$definf = ($definf + $heroarray['di']) * $heroarray['db'];
|
||||
$defcav = ($defcav + $heroarray['dc']) * $heroarray['db'];
|
||||
$definf = ($definf + $heroarraydefender['di']) * $heroarraydefender['db'];
|
||||
$defcav = ($defcav + $heroarraydefender['dc']) * $heroarraydefender['db'];
|
||||
$defense_heros++;
|
||||
}
|
||||
$defense_infantry += $definf;
|
||||
@@ -816,9 +863,22 @@ class Battle {
|
||||
$database->modifyHero('dead',1,$heroarrayAttacker['heroid'],0);
|
||||
$database->modifyHero('lastupdate',time(),$heroarrayAttacker['heroid'],0);
|
||||
}
|
||||
if($defence_casualties < 0.9) {
|
||||
if($heroarrayDefender['health']-100*$defence_casualties > 0) {
|
||||
$database->modifyHero('health',(100*$defence_casualties),$heroarrayDefender['heroid'],2);
|
||||
}
|
||||
$DefenderUnits = $database->getUnit($data['to']);
|
||||
$DefendersAll = $database->getEnforceVillage($data['to'],0);
|
||||
array_unshift($DefendersAll,$DefenderUnits);
|
||||
foreach($DefendersAll as $defenders) {
|
||||
if($defenders['hero'] == 1 && $data['type'] != 1) {
|
||||
if(!empty($heroarray)) { reset($heroarray); }
|
||||
if($defenders['vref'] == $data['to']) {
|
||||
$heroarraydefender = $this->getBattleHero($DefenderData['id']);
|
||||
} else {
|
||||
$ReinforcerData = $database->getVillageBattleData($defenders['from']);
|
||||
$heroarraydefender = $this->getBattleHero($ReinforcerData['id']);
|
||||
}
|
||||
if($defense_casualties < 0.9) {
|
||||
if($heroarrayDefender['health']-100*$defense_casualties > 0) {
|
||||
$database->modifyHero('health',(100*$defense_casualties),$heroarrayDefender['heroid'],2);
|
||||
$database->modifyHero('lastupdate',time(),$heroarrayDefender['heroid'],0);
|
||||
} else {
|
||||
$database->modifyHero('health',0,$heroarrayDefender['heroid'],0);
|
||||
@@ -831,6 +891,7 @@ class Battle {
|
||||
$database->modifyHero('lastupdate',time(),$heroarrayDefender['heroid'],0);
|
||||
}
|
||||
}
|
||||
}
|
||||
// send surviving attackers and hero home, report.
|
||||
// calculate defensive casualties, hero damage and experience (all heroes), modify units and reinforcements, report.
|
||||
// damage buildings report
|
||||
|
||||
+2
-10
@@ -628,9 +628,7 @@ class Building {
|
||||
|
||||
private function finishAll() {
|
||||
global $database,$session,$logging,$village,$bid18,$bid10,$bid11,$technology,$_SESSION;
|
||||
if($session->access!=BANNED){
|
||||
if($session->gold >= 2){
|
||||
|
||||
if($session->access!=BANNED){
|
||||
foreach($this->buildArray as $jobs) {
|
||||
if($jobs['wid']==$village->wid){
|
||||
$wwvillage = $database->getResourceLevel($jobs['wid']);
|
||||
@@ -639,7 +637,6 @@ class Building {
|
||||
$level = ($level == -1) ? 0 : $level;
|
||||
if($jobs['type'] != 25 AND $jobs['type'] != 26 AND $jobs['type'] != 40) {
|
||||
$finish = 1;
|
||||
$database->updateUserField($_SESSION['username'],'gold',$gold,0);
|
||||
$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'];
|
||||
if($database->query($q)) {
|
||||
@@ -685,16 +682,12 @@ class Building {
|
||||
}
|
||||
if(($jobs['field'] >= 19 && ($session->tribe == 1 || ALLOW_ALL_TRIBE)) || (!ALLOW_ALL_TRIBE && $session->tribe != 1)) { $innertimestamp = $jobs['timestamp']; }
|
||||
}
|
||||
if($finish == 1){
|
||||
$gold=$database->getUserField($_SESSION['username'],'gold','username');
|
||||
$gold-=2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$technology->finishTech();
|
||||
$logging->goldFinLog($village->wid);
|
||||
$database->modifyGold($session->uid,0,0);
|
||||
$database->modifyGold($session->uid,2,0);
|
||||
$stillbuildingarray = $database->getJobs($village->wid);
|
||||
if(count($stillbuildingarray) == 1) {
|
||||
if($stillbuildingarray[0]['loopcon'] == 1) {
|
||||
@@ -703,7 +696,6 @@ class Building {
|
||||
}
|
||||
}
|
||||
header("Location: ".$session->referrer);
|
||||
}
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
}
|
||||
|
||||
@@ -139,6 +139,26 @@
|
||||
return $dbarray[$field];
|
||||
}
|
||||
|
||||
function getVrefField($ref, $field){
|
||||
$q = "SELECT $field FROM " . TB_PREFIX . "vdata where wref = '$ref'";
|
||||
$result = mysql_query($q, $this->connection) or die(mysql_error());
|
||||
$dbarray = mysql_fetch_array($result);
|
||||
return $dbarray[$field];
|
||||
}
|
||||
|
||||
function getVrefCapital($ref){
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "vdata where owner = '$ref' and capital = 1";
|
||||
$result = mysql_query($q, $this->connection) or die(mysql_error());
|
||||
$dbarray = mysql_fetch_array($result);
|
||||
return $dbarray;
|
||||
}
|
||||
|
||||
function getStarvation(){
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "vdata where starv != 0";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
|
||||
function getActivateField($ref, $field, $mode) {
|
||||
if(!$mode) {
|
||||
$q = "SELECT $field FROM " . TB_PREFIX . "activate where id = '$ref'";
|
||||
@@ -1475,8 +1495,17 @@
|
||||
case 8:
|
||||
$q = "UPDATE " . TB_PREFIX . "mdata set deltarget = 1,delowner = 1,viewed = 1 where id = $id";
|
||||
break;
|
||||
case 9:
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $id and send = 0 and archived = 0 and deltarget = 0 ORDER BY time DESC";
|
||||
break;
|
||||
case 10:
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE owner = $id and delowner = 0 ORDER BY time DESC";
|
||||
break;
|
||||
case 11:
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "mdata where target = $id and send = 0 and archived = 1 and deltarget = 0";
|
||||
break;
|
||||
}
|
||||
if($mode <= 3 || $mode == 6) {
|
||||
if($mode <= 3 || $mode == 6 || $mode > 8) {
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
} else {
|
||||
@@ -1531,13 +1560,7 @@
|
||||
}
|
||||
|
||||
function getNotice($uid) {
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid ORDER BY time DESC";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
|
||||
function getDelNotice($uid) {
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid and del = 1 ORDER BY time DESC";
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid and del = 0 ORDER BY time DESC";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
@@ -1548,6 +1571,12 @@
|
||||
$dbarray = mysql_fetch_array($result);
|
||||
return $dbarray[$field];
|
||||
}
|
||||
|
||||
function getNotice3($uid) {
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid ORDER BY time DESC";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
|
||||
function addBuilding($wid, $field, $type, $loop, $time, $master, $level) {
|
||||
$x = "UPDATE " . TB_PREFIX . "fdata SET f" . $field . "t=" . $type . " WHERE vref=" . $wid;
|
||||
@@ -2065,6 +2094,17 @@
|
||||
}
|
||||
return mysql_query($q, $this->connection);
|
||||
}
|
||||
|
||||
function modifyHeroByOwner($column,$value,$uid,$mode=0) {
|
||||
if(!$mode) {
|
||||
$q = "UPDATE `".TB_PREFIX."hero` SET $column = $value WHERE uid = $uid";
|
||||
} elseif($mode=1) {
|
||||
$q = "UPDATE `".TB_PREFIX."hero` SET $column = $column + $value WHERE uid = $uid";
|
||||
} else {
|
||||
$q = "UPDATE `".TB_PREFIX."hero` SET $column = $column - $value WHERE uid = $uid";
|
||||
}
|
||||
return mysql_query($q, $this->connection);
|
||||
}
|
||||
|
||||
function modifyHeroXp($column,$value,$heroid) {
|
||||
$q = "UPDATE ".TB_PREFIX."hero SET $column = $column + $value WHERE uid=$heroid";
|
||||
@@ -2768,19 +2808,16 @@
|
||||
}
|
||||
|
||||
function editSlotFarm($eid, $lid, $wref, $x, $y, $dist, $t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) {
|
||||
|
||||
$q = "UPDATE " . TB_PREFIX . "raidlist set lid = '$lid', towref = '$wref', x = '$x', y = '$y', t1 = '$t1', t2 = '$t2', t3 = '$t3', t4 = '$t4', t5 = '$t5', t6 = '$t6', t7 = '$t7', t8 = '$t8', t9 = '$t9', t10 = '$t10' WHERE id = $eid";
|
||||
return mysql_query($q, $this->connection);
|
||||
|
||||
}
|
||||
|
||||
function getArrayMemberVillage($uid){
|
||||
|
||||
$q = 'SELECT a.wref, a.name, b.x, b.y from '.TB_PREFIX.'vdata AS a left join '.TB_PREFIX.'wdata AS b ON b.id = a.wref where owner = '.$uid.' order by capital DESC,pop DESC';
|
||||
$result = mysql_query($q, $this->connection);
|
||||
$array = $this->mysql_fetch_all($result);
|
||||
return $array;
|
||||
}
|
||||
function getArrayMemberVillage($uid){
|
||||
$q = 'SELECT a.wref, a.name, b.x, b.y from '.TB_PREFIX.'vdata AS a left join '.TB_PREFIX.'wdata AS b ON b.id = a.wref where owner = '.$uid.' order by capital DESC,pop DESC';
|
||||
$result = mysql_query($q, $this->connection);
|
||||
$array = $this->mysql_fetch_all($result);
|
||||
return $array;
|
||||
}
|
||||
|
||||
function addPassword($uid, $npw, $cpw){
|
||||
$q = "REPLACE INTO `" . TB_PREFIX . "password`(uid, npw, cpw) VALUES ($uid, '$npw', '$cpw')";
|
||||
@@ -2801,6 +2838,77 @@
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function getCropProdstarv($wref) {
|
||||
global $bid4,$bid8,$bid9,$sesion,$technology;
|
||||
|
||||
$basecrop = $grainmill = $bakery = 0;
|
||||
$owner = $this->getVrefField($wref, 'owner');
|
||||
$bonus = $this->getUserField($owner, b4, 0);
|
||||
|
||||
$buildarray = $this->getResourceLevel($wref);
|
||||
$cropholder = array();
|
||||
for($i=1;$i<=38;$i++) {
|
||||
if($buildarray['f'.$i.'t'] == 4) {
|
||||
array_push($cropholder,'f'.$i);
|
||||
}
|
||||
if($buildarray['f'.$i.'t'] == 8) {
|
||||
$grainmill = $buildarray['f'.$i];
|
||||
}
|
||||
if($buildarray['f'.$i.'t'] == 9) {
|
||||
$bakery = $buildarray['f'.$i];
|
||||
}
|
||||
}
|
||||
$q = "SELECT type FROM `" . TB_PREFIX . "odata` WHERE conqured = $wref";
|
||||
$result = mysql_query($q, $this->connection) or die(mysql_error());
|
||||
$oasis = mysql_fetch_array($result);
|
||||
foreach($oasis as $oa){
|
||||
switch($oa['type']) {
|
||||
case 1:
|
||||
case 2:
|
||||
$wood += 1;
|
||||
break;
|
||||
case 3:
|
||||
$wood += 1;
|
||||
$cropo += 1;
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
$clay += 1;
|
||||
break;
|
||||
case 6:
|
||||
$clay += 1;
|
||||
$cropo += 1;
|
||||
break;
|
||||
case 7:
|
||||
case 8:
|
||||
$iron += 1;
|
||||
break;
|
||||
case 9:
|
||||
$iron += 1;
|
||||
$cropo += 1;
|
||||
break;
|
||||
case 10:
|
||||
case 11:
|
||||
$cropo += 1;
|
||||
break;
|
||||
case 12:
|
||||
$cropo += 2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
for($i=0;$i<=count($cropholder)-1;$i++) { $basecrop+= $bid4[$buildarray[$cropholder[$i]]]['prod']; }
|
||||
$crop = $basecrop + $basecrop * 0.25 * $cropo;
|
||||
if($grainmill >= 1 || $bakery >= 1) {
|
||||
$crop += $basecrop /100 * ($bid8[$grainmill]['attri'] + $bid9[$bakery]['attri']);
|
||||
}
|
||||
if($bonus > time()) {
|
||||
$crop *= 1.25;
|
||||
}
|
||||
$crop *= SPEED;
|
||||
return $crop;
|
||||
}
|
||||
|
||||
}
|
||||
;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
public $unread, $nunread = false;
|
||||
public $note;
|
||||
public $inbox, $sent, $reading, $reply, $archived, $noticearray, $delnoticearray, $readingNotice = array();
|
||||
public $inbox, $inbox1, $sent, $sent1, $reading, $reply, $archived, $archived1, $noticearray, $notice, $readingNotice = array();
|
||||
private $totalMessage, $totalNotice;
|
||||
private $allNotice = array();
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
}
|
||||
if (!is_array($type)) { $type = array($type); }
|
||||
$this->noticearray = $this->filter_by_value($database->getNotice($session->uid), "ntype", $type);
|
||||
$this->delnoticearray = $this->filter_by_value($database->getDelNotice($session->uid), "ntype", $type);
|
||||
$this->notice = $this->filter_by_value($database->getNotice3($session->uid), "ntype", $type);
|
||||
}
|
||||
if(isset($get['id'])) {
|
||||
$this->readingNotice = $this->getReadNotice($get['id']);
|
||||
@@ -179,9 +179,9 @@
|
||||
|
||||
private function getNotice() {
|
||||
global $database, $session;
|
||||
$this->allNotice = $database->getNotice($session->uid);
|
||||
$this->noticearray = $this->filter_by_value_except($this->allNotice, "ntype", 9);
|
||||
$this->delnoticearray = $this->filter_by_value_except($database->getDelNotice($session->uid), "ntype", 9);
|
||||
$this->allNotice = $database->getNotice3($session->uid);
|
||||
$this->noticearray = $this->filter_by_value_except($database->getNotice($session->uid), "ntype", 9);
|
||||
$this->notice = $this->filter_by_value_except($this->allNotice, "ntype", 9);
|
||||
$this->totalNotice = count($this->allNotice);
|
||||
}
|
||||
|
||||
@@ -285,8 +285,11 @@
|
||||
global $database, $session;
|
||||
$this->inbox = $database->getMessage($session->uid, 1);
|
||||
$this->sent = $database->getMessage($session->uid, 2);
|
||||
$this->inbox1 = $database->getMessage($session->uid, 9);
|
||||
$this->sent1 = $database->getMessage($session->uid, 10);
|
||||
if($session->plus) {
|
||||
$this->archived = $database->getMessage($session->uid, 6);
|
||||
$this->archived1 = $database->getMessage($session->uid, 11);
|
||||
}
|
||||
$this->totalMessage = count($this->inbox) + count($this->sent);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ ob_start();
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
if(!file_exists('GameEngine/config.php')) {header("Location: install/");}
|
||||
if(!file_exists('GameEngine/config.php') && !file_exists('../../GameEngine/config.php')) {header("Location: install/");}
|
||||
|
||||
$script_name = ($_SERVER['REQUEST_URI'] == 'karte.php') ? 'karte' : $_SERVER['REQUEST_URI'];
|
||||
include ("Battle.php");
|
||||
|
||||
+178
-66
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
| .: PLEASE DONT'T REMOVE OR CHANGE THIS NOTICE :. |
|
||||
@@ -6,6 +6,7 @@
|
||||
| Filename quest_core.tpl |
|
||||
| Version 0.1 |
|
||||
| Developed by: DesPlus <desplus@gmail.com> |
|
||||
| Edited by: Marvin |
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
||||
|
||||
include("GameEngine/Village.php");
|
||||
@@ -37,8 +38,10 @@ if (isset($qact)){
|
||||
$_SESSION['qst']= 1;
|
||||
break;
|
||||
|
||||
|
||||
//user does not follow the quest.
|
||||
|
||||
//user does not follow the quest.
|
||||
//Get reward: Resources: Every 24 hours (1 speed) 24/speed=hours
|
||||
//Gold: 25 gold
|
||||
case 'skip':
|
||||
$database->updateUserField($_SESSION['username'],'quest','90',0);
|
||||
$_SESSION['qst']= 90;
|
||||
@@ -47,12 +50,20 @@ if (isset($qact)){
|
||||
case '2':
|
||||
$database->updateUserField($_SESSION['username'],'quest','2',0);
|
||||
$_SESSION['qst']= 2;
|
||||
//Give Reward
|
||||
if(!$session->plus){
|
||||
mysql_query("UPDATE ".TB_PREFIX."users set plus = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+86400 where `username`='".$_SESSION['username']."'") or die(mysql_error());
|
||||
} else {
|
||||
$plus=$database->getUserField($_SESSION['username'],'plus','username');
|
||||
$plus+=86400;
|
||||
$database->updateUserField($_SESSION['username'],'plus',$plus,0);
|
||||
}
|
||||
break;
|
||||
|
||||
case '3':
|
||||
$database->updateUserField($_SESSION['username'],'quest','3',0);
|
||||
$_SESSION['qst']= 3;
|
||||
|
||||
|
||||
//Give Reward
|
||||
$database->modifyResource($session->villages[0],50,60,30,10,1);
|
||||
break;
|
||||
@@ -60,19 +71,19 @@ if (isset($qact)){
|
||||
case '4':
|
||||
$database->updateUserField($_SESSION['username'],'quest','4',0);
|
||||
$_SESSION['qst']= 4;
|
||||
|
||||
|
||||
//Give Reward
|
||||
$database->modifyResource($session->villages[0],30,60,30,20,1);
|
||||
break;
|
||||
|
||||
|
||||
case 'rank':
|
||||
$rSubmited=$qact2;
|
||||
break;
|
||||
|
||||
|
||||
case '5':
|
||||
$database->updateUserField($_SESSION['username'],'quest','5',0);
|
||||
$_SESSION['qst']= 5;
|
||||
|
||||
|
||||
//Give Reward
|
||||
$database->modifyResource($session->villages[0],40,30,20,30,1);
|
||||
break;
|
||||
@@ -82,23 +93,23 @@ if (isset($qact)){
|
||||
$_SESSION['qst']= 6;
|
||||
$Subject="Message From The Taskmaster";
|
||||
$Message="You are to be informed that a nice reward is waiting for you at the taskmaster.<br /><br />Hint: The message has been generated automatically. An answer is not necessary.";
|
||||
$database->sendMessage($session->userinfo['id'],0,$Subject,$Message,0);
|
||||
$database->sendMessage($session->userinfo['id'],4,$Subject,$Message,0);
|
||||
$RB=true;
|
||||
|
||||
|
||||
//Give Reward
|
||||
$database->modifyResource($session->villages[0],50,60,30,30,1);
|
||||
break;
|
||||
|
||||
|
||||
case '7':
|
||||
$database->updateUserField($_SESSION['username'],'quest','7',0);
|
||||
$_SESSION['qst']= 7;
|
||||
|
||||
|
||||
//Give Reward
|
||||
$gold=$database->getUserField($_SESSION['username'],'gold','username');
|
||||
$gold+=20;
|
||||
$database->updateUserField($_SESSION['username'],'gold',$gold,0);
|
||||
break;
|
||||
|
||||
|
||||
case '8':
|
||||
$crop = round($village->acrop);
|
||||
if ($crop>=200){
|
||||
@@ -120,7 +131,13 @@ if (isset($qact)){
|
||||
$_SESSION['qst']= 9;
|
||||
|
||||
//Give Reward
|
||||
$database->modifyResource($session->villages[0],75,80,30,50,1);
|
||||
if(!$session->plus){
|
||||
mysql_query("UPDATE ".TB_PREFIX."users set plus = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+172800 where `username`='".$_SESSION['username']."'") or die(mysql_error());
|
||||
} else {
|
||||
$plus=$database->getUserField($_SESSION['username'],'plus','username');
|
||||
$plus+=172800;
|
||||
$database->updateUserField($_SESSION['username'],'plus',$plus,0);
|
||||
}
|
||||
break;
|
||||
|
||||
case '10':
|
||||
@@ -232,6 +249,7 @@ if (isset($qact)){
|
||||
$database->updateUserField($_SESSION['username'],'gold',$gold,0);
|
||||
break;
|
||||
|
||||
|
||||
case '91':
|
||||
$database->updateUserField($_SESSION['username'],'quest','91',0);
|
||||
$database->updateUserField($_SESSION['username'],'quest_time',''.(time()+$skipp_time).'',0);
|
||||
@@ -330,10 +348,16 @@ if($session->access!=BANNED){
|
||||
//Check one of Woodcutters is level 1 or upper
|
||||
$tRes = $database->getResourceLevel($session->villages[0]);
|
||||
$woodL=$tRes['f1']+$tRes['f3']+$tRes['f14']+$tRes['f17'];
|
||||
//check if you are building a woodcutter to level 1
|
||||
foreach($building->buildArray as $jobs) {
|
||||
if($jobs['type']==1){
|
||||
$woodL="99";
|
||||
}
|
||||
}
|
||||
if ($woodL<1){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 1: Woodcutter<\/h1><br \/><i>„There are four green forests around your village. Construct a woodcutter on one of them. Lumber is an important resource for our new settlement.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a woodcutter.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"wood\"><\/div>\n\t\t","number":"-1","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 1: Woodcutter<\/h1><br \/><i>„Yes, that way you gain more lumber.I helped a bit and completed the order instantly.”<\/i><br \/><br \/><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/><div class=\"rew\"><p class=\"ta_aw\">Your reward:<\/p>Woodcutter instantly completed.<br \/><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','2');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"wood\"><\/div>\n\t\t","number":"-1","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 1: Woodcutter<\/h1><br \/><i>„There are four green forests around your village. Construct a woodcutter on one of them. Lumber is an important resource for our new settlement.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a woodcutter.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"wood\"><\/div>\n\t\t","number":"-1","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 1: Woodcutter<\/h1><br \/><i>„Yes, that way you gain more lumber.I helped a bit and completed the order instantly.”<\/i><br \/><br \/><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/><div class=\"rew\"><p class=\"ta_aw\">Your reward:<\/p>Woodcutter instantly completed.<br \/><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','2');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"wood\"><\/div>\n\t\t","number":"-1","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 2){
|
||||
@@ -342,9 +366,9 @@ if ($woodL<1){?>
|
||||
$tRes = $database->getResourceLevel($session->villages[0]);
|
||||
$cropL=$tRes['f2']+$tRes['f8']+$tRes['f9']+$tRes['f12']+$tRes['f13']+$tRes['f15'];
|
||||
if ($cropL<1){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 2: Crop<\/h1><br \/><i>„Now your subjects are hungry from working all day. Extend a cropland to improve your subjects' supply. Come back here once the building is complete.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend one cropland.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"farm\"><\/div>\n\t\t","number":"-2","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 2: Crop<\/h1><br \/><i>„Very good. Now your subjects have enough to eat again...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>50 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>60 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>10 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','3');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"farm\"><\/div>\n\t\t","number":2,"reward":{"plus":1},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 2: Crop<\/h1><br \/><i>„Now your subjects are hungry from working all day. Extend a cropland to improve your subjects' supply. Come back here once the building is complete.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend one cropland.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"farm\"><\/div>\n\t\t","number":"-2","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 2: Crop<\/h1><br \/><i>„Very good. Now your subjects have enough to eat again...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>1 day 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><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','3');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"farm\"><\/div>\n\t\t","number":2,"reward":{"plus":1},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 3){
|
||||
@@ -353,9 +377,9 @@ if ($cropL<1){?>
|
||||
|
||||
$vName=$village->vname;
|
||||
if ($vName==$session->userinfo['username']."'s village"){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/>Task 3: Your Village's Name<\/h1><br \/><i>„Creative as you are you can grant your village the ultimate name.\r\n<br \/><br \/>\r\nClick on 'profile' in the left hand menu and then select 'change profile'...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Change your village's name to something nice.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"village_name\"><\/div>\n\t\t","number":"-3","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/>Task 3: Your Village's Name<\/h1><br \/><i>„Wow, a great name for their village. It could have been the name of my village!...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>30 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>60 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>20 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','4');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"village_name\"><\/div>\n\t\t","number":3,"reward":{"wood":30,"clay":60,"iron":30,"crop":20},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/>Task 3: Your Village's Name<\/h1><br \/><i>„Creative as you are you can grant your village the ultimate name.\r\n<br \/><br \/>\r\nClick on 'profile' in the left hand menu and then select 'change profile'...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Change your village's name to something nice.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"village_name\"><\/div>\n\t\t","number":"-3","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/>Task 3: Your Village's Name<\/h1><br \/><i>„Wow, a great name for their village. It could have been the name of my village!...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>30 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>60 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>20 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','4');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"village_name\"><\/div>\n\t\t","number":3,"reward":{"wood":30,"clay":60,"iron":30,"crop":20},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 4){
|
||||
@@ -366,9 +390,9 @@ $ranking->procRankReq($temp);
|
||||
$displayarray = $database->getUserArray($temp['uid'],1);
|
||||
$rRes=$ranking->searchRank($displayarray['username'],"username");
|
||||
if ($rRes!=$rSubmited){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 4: Other Players<\/h1><br \/><i>„In <?php echo SERVER_NAME; ?> you play along with billions of other players. Click 'statistics' in the top menu to look up your rank and enter it here.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Look for your rank in the statistics and enter it here.<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"qst_next('','rank',document.getElementById('qst_val').value)\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"rank\"><\/div>\n\t\t","number":-4,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 4: Other Players<\/h1><br \/><i>"Exactly! That's your rank."<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>40 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>30 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>20 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','5');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 4: Other Players<\/h1><br \/><i>„In <?php echo SERVER_NAME; ?> you play along with billions of other players. Click 'statistics' in the top menu to look up your rank and enter it here.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Look for your rank in the statistics and enter it here.<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"qst_next('','rank',document.getElementById('qst_val').value)\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"rank\"><\/div>\n\t\t","number":-4,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 4: Other Players<\/h1><br \/><i>”Exactly! That's your rank.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>40 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>30 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>20 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','5');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 5){
|
||||
@@ -378,22 +402,22 @@ $tRes = $database->getResourceLevel($session->villages[0]);
|
||||
$ironL=$tRes['f4']+$tRes['f7']+$tRes['f10']+$tRes['f11'];
|
||||
$clayL=$tRes['f5']+$tRes['f6']+$tRes['f16']+$tRes['f18'];
|
||||
if ($ironL<1 || $clayL<1){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 5: Two Building Orders<\/h1><br \/><i>„Build an iron mine and a clay pit. Of iron and clay one can never have enough.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p><ul><li>Extend one iron mine.<\/li><li>Extend one clay pit.<\/li><\/ul><\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"clay_iron\"><\/div>\n\t\t","number":-5,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 5: Two Building Orders<\/h1><br \/><i>„As you noticed, building orders take rather long. The world of <?php echo SERVER_NAME; ?> will continue to spin even if you are offline. Even in a few months there will be many new things for you to discover.\r\n<br \/><br \/>\r\nThe best thing to do is occasionally checking your village and giving you subjects new tasks to do.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>50 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>60 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','6');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"clay_iron\"><\/div>\n\t\t","number":5,"reward":{"wood":50,"clay":60,"iron":30,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 5: Two Building Orders<\/h1><br \/><i>„Build an iron mine and a clay pit. Of iron and clay one can never have enough.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p><ul><li>Extend one iron mine.<\/li><li>Extend one clay pit.<\/li><\/ul><\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"clay_iron\"><\/div>\n\t\t","number":-5,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 5: Two Building Orders<\/h1><br \/><i>„As you noticed, building orders take rather long. The world of <?php echo SERVER_NAME; ?> will continue to spin even if you are offline. Even in a few months there will be many new things for you to discover.\r\n<br \/><br \/>\r\nThe best thing to do is occasionally checking your village and giving you subjects new tasks to do.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>50 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>60 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','6');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"clay_iron\"><\/div>\n\t\t","number":5,"reward":{"wood":50,"clay":60,"iron":30,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 6){
|
||||
|
||||
//Check message is viewed or no
|
||||
if ($message->unread || $RB==true){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 6: Messages<\/h1><br \/><i>„You can talk to other players using the messaging system. I sent a message to you. Read it and come back here.\r\n<br \/><br \/>\r\nP.S. Don't forget: on the left the reports, on the right the messages.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Read your new message.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"msg\"><\/div>\n\t\t","number":"-6","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"i2","altstep":0}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 6: Messages<\/h1><br \/><i>„You received it? Very good.\r\n<br \/><br \/>\r\nHere is some Gold. With Gold you can do several things, e.g. extend your <b><font color=\"#71D000\">P<\/font><font color=\"#FF6F0F\">l<\/font><font color=\"#71D000\">u<\/font><font color=\"#FF6F0F\">s<\/font><\/b>-Account or increase your resource production.To do so click <a href=\"plus.php?id=3\"><font color=\"#000000\"><?php echo SERVER_NAME; ?><\/font> <b><font color=\"#71D000\">P<\/font><font color=\"#FF6F0F\">l<\/font><font color=\"#71D000\">u<\/font><font color=\"#FF6F0F\">s<\/font><\/b><\/a> in the left hand menu.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>20 Gold<br \/><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','7');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"msg\"><\/div>\n\t\t","number":6,"reward":{"gold":20},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 6: Messages<\/h1><br \/><i>„You can talk to other players using the messaging system. I sent a message to you. Read it and come back here.\r\n<br \/><br \/>\r\nP.S. Don't forget: on the left the reports, on the right the messages.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Read your new message.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"msg\"><\/div>\n\t\t","number":"-6","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"i2","altstep":99}
|
||||
<?php $_SESSION['qstnew']='0'; }else{ $_SESSION['qstnew']='1'; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 6: Messages<\/h1><br \/><i>„You received it? Very good.\r\n<br \/><br \/>\r\nHere is some Gold. With Gold you can do several things, e.g. extend your <b><font color=\"#71D000\">P<\/font><font color=\"#FF6F0F\">l<\/font><font color=\"#71D000\">u<\/font><font color=\"#FF6F0F\">s<\/font><\/b>-Account or increase your resource production.To do so click <a href=\"plus.php?id=3\"><font color=\"#000000\"><?php echo SERVER_NAME; ?><\/font> <b><font color=\"#71D000\">P<\/font><font color=\"#FF6F0F\">l<\/font><font color=\"#71D000\">u<\/font><font color=\"#FF6F0F\">s<\/font><\/b><\/a> in the left hand menu.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>20 Gold<br \/><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','7');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"msg\"><\/div>\n\t\t","number":6,"reward":{"gold":20},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 7){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 7: Huge Army!<\/h1><br \/><i>„Now I've got a very special quest for you. I am hungry. Give me 200 crop!\r\n<br \/><br \/>\r\nIn return I will try to organize a huge army to protect your village.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Send 200 crop to the taskmaster.<\/div><br \/><img class=\"r4\" src=\"img\/x.gif\" title=\"Crop\" alt=\"Crop\" \/>200 <input type=\"hidden\" id=\"qst_val\" value=\"set\" \/><input onclick=\"javascript: qst_next('','8');\" name=\"qstin\" type=\"button\" value=\"Send crop.\" \/><br \/><font color='#FF0000'><?php if(isset($NoCrop)){echo $NoCrop;}?><font\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"army\"><\/div>\n\t\t","number":-8,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 7: Huge Army!<\/h1><br \/><i>„Now I've got a very special quest for you. I am hungry. Give me 200 crop!\r\n<br \/><br \/>\r\nIn return I will try to organize a huge army to protect your village.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Send 200 crop to the taskmaster.<\/div><br \/><img class=\"r4\" src=\"img\/x.gif\" title=\"Crop\" alt=\"Crop\" \/>200 <input type=\"hidden\" id=\"qst_val\" value=\"set\" \/><input onclick=\"javascript: qst_next('','8');\" name=\"qstin\" type=\"button\" value=\"Send crop.\" \/><br \/><font color='#FF0000'><?php if(isset($NoCrop)){echo $NoCrop;}?><font\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"army\"><\/div>\n\t\t","number":-8,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 8){
|
||||
|
||||
@@ -405,9 +429,9 @@ if($tRes['f5']>0){$clayL++;};if($tRes['f6']>0){$clayL++;};if($tRes['f16']>0){$cl
|
||||
if($tRes['f1']>0){$woodL++;};if($tRes['f3']>0){$woodL++;};if($tRes['f14']>0){$woodL++;};if($tRes['f17']>0){$woodL++;}
|
||||
if($tRes['f2']>0){$cropL++;};if($tRes['f8']>0){$cropL++;};if($tRes['f9']>0){$cropL++;};if($tRes['f12']>0){$cropL++;};if($tRes['f13']>0){$cropL++;};if($tRes['f15']>0){$cropL++;}
|
||||
if ($ironL<4 || $clayL<4 || $woodL<4 || $cropL<6){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/><?php echo $questc->q;?> Task 8: Everything to 1.<\/h1><br \/><i>„Now we should increase your resource production a bit. Extend all your resource tiles to level 1.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend all resource tiles to level 1.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":-12,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/><?php echo $questc->q;?> Task 8: Everything to 1.<\/h1><br \/><i>„Now we should increase your resource production a bit. Extend all your resource tiles to level 1.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend all resource tiles to level 1.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":-12,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 8: Everything to 1.<\/h1><br \/><i>„Very good, your resource production just thrives.\r\n<br \/><br \/>\r\nSoon we can start with constructing buildings in the village.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>75 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>80 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>50 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','9');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":12,"reward":{"wood":75,"clay":80,"iron":30,"crop":50},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 8: Everything to 1.<\/h1><br \/><i>„Very good, your resource production just thrives.\r\n<br \/><br \/>\r\nSoon we can start with constructing buildings in the village.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>75 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>80 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>50 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','9');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":12,"reward":{"wood":75,"clay":80,"iron":30,"crop":50},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 9){
|
||||
@@ -416,9 +440,9 @@ if ($ironL<4 || $clayL<4 || $woodL<4 || $cropL<6){?>
|
||||
$Dave= strrpos ($uArray['desc1'],'[#0]');
|
||||
$Dave2=strrpos ($uArray['desc2'],'[#0]');
|
||||
if (!is_numeric($Dave) and !is_numeric($Dave2)){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 9: Dove of Peace<\/h1><br \/><i>„The first days after signing up you are protected against attacks by your fellow players. You can see how long this protection lasts by adding the code <b>[#0]<\/b> to your profile.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Write the code <b>[#0]<\/b> into your profile by adding it to one of the two description fields.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"medal\"><\/div>\n\t\t","number":"-13","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 9: Dove of Peace<\/h1><br \/><i>„The first days after signing up you are protected against attacks by your fellow players. You can see how long this protection lasts by adding the code <b>[#0]<\/b> to your profile.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Write the code <b>[#0]<\/b> into your profile by adding it to one of the two description fields.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"medal\"><\/div>\n\t\t","number":"-13","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 9: Dove of Peace<\/h1><br \/><i>„Well done! Now everyone can see what a great warrior the world is approached by.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>120 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>200 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>140 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>100 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','10');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"medal\"><\/div>\n\t\t","number":13,"reward":{"wood":120,"clay":200,"iron":140,"crop":100},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 9: Dove of Peace<\/h1><br \/><i>„Well done! Now everyone can see what a great warrior the world is approached by.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>2 day's 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><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','10');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"medal\"><\/div>\n\t\t","number":13,"reward":{"plus":2},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 10){
|
||||
@@ -426,9 +450,9 @@ if (!is_numeric($Dave) and !is_numeric($Dave2)){?>
|
||||
//Check cranny builded or no
|
||||
$cranny = $building->getTypeLevel(23);
|
||||
if ($cranny == 0){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 10: Cranny<\/h1><br \/><i>„It's getting time to erect a cranny. The world of <?php echo SERVER_NAME; ?> is dangerous.\r\n<br \/><br \/>\r\nMany players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a Cranny.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"hide\"><\/div>\n\t\t","number":-14,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 10: Cranny<\/h1><br \/><i>„It's getting time to erect a cranny. The world of <?php echo SERVER_NAME; ?> is dangerous.\r\n<br \/><br \/>\r\nMany players live by stealing other players' resources. Build a cranny to hide some of your resources from enemies.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a Cranny.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"hide\"><\/div>\n\t\t","number":-14,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 10: Cranny<\/h1><br \/><i>„Well done, now it's way harder for your mean fellow players to plunder your village.\r\n<br \/><br \/>\r\nIf under attack, your villagers will hide the resources in the Cranny all on their own.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>150 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>180 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>130 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','11');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"hide\"><\/div>\n\t\t","number":14,"reward":{"wood":150,"clay":180,"iron":30,"crop":130},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 10: Cranny<\/h1><br \/><i>„Well done, now it's way harder for your mean fellow players to plunder your village.\r\n<br \/><br \/>\r\nIf under attack, your villagers will hide the resources in the Cranny all on their own.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>150 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>180 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>30 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>130 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','11');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"hide\"><\/div>\n\t\t","number":14,"reward":{"wood":150,"clay":180,"iron":30,"crop":130},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 11){
|
||||
@@ -441,18 +465,18 @@ if($tRes['f5']>1){$clayL++;};if($tRes['f6']>1){$clayL++;};if($tRes['f16']>1){$cl
|
||||
if($tRes['f1']>1){$woodL++;};if($tRes['f3']>1){$woodL++;};if($tRes['f14']>1){$woodL++;};if($tRes['f17']>1){$woodL++;}
|
||||
if($tRes['f2']>1){$cropL++;};if($tRes['f8']>1){$cropL++;};if($tRes['f9']>1){$cropL++;};if($tRes['f12']>1){$cropL++;};if($tRes['f13']>1){$cropL++;};if($tRes['f15']>1){$cropL++;}
|
||||
if ($ironL<1 || $clayL<1 || $woodL<1 || $cropL<1){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 11: To Two.<\/h1><br \/><i>„In <?php echo SERVER_NAME; ?> there is always something to do! Extend one woodcutter, one clay pit, one iron mine and one cropland to level 2 each.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend one of each resource tile to level 2.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":"-15","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 11: To Two.<\/h1><br \/><i>„In <?php echo SERVER_NAME; ?> there is always something to do! Extend one woodcutter, one clay pit, one iron mine and one cropland to level 2 each.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend one of each resource tile to level 2.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":"-15","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 11: To Two.<\/h1><br \/><i>„Very good, your village grows and thrives!”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>60 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>50 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>40 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','12');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":15,"reward":{"wood":60,"clay":50,"iron":40,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 11: To Two.<\/h1><br \/><i>„Very good, your village grows and thrives!”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>60 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>50 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>40 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','12');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":15,"reward":{"wood":60,"clay":50,"iron":40,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 12){
|
||||
|
||||
//Check player submited number Barracks cost lumber
|
||||
if ($lSubmited!=210){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 12: Instructions<\/h1><br \/><i>„In the ingame instructions you can find short information texts about different buildings and types of units.\r\n<br \/><br \/>\r\nClick on 'instructions' at the left to find out how much lumber is required for the barracks.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Enter how much lumber barracks cost<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"qst_next('','lumber',document.getElementById('qst_val').value)\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"cost\"><\/div>\n\t\t","number":"-16","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 12: Instructions<\/h1><br \/><i>„In the ingame instructions you can find short information texts about different buildings and types of units.\r\n<br \/><br \/>\r\nClick on 'instructions' at the left to find out how much lumber is required for the barracks.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Enter how much lumber barracks cost<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"qst_next('','lumber',document.getElementById('qst_val').value)\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"cost\"><\/div>\n\t\t","number":"-16","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 12: Instructions<\/h1><br \/><i>"Exactly! Barracks cost 210 lumber."<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>50 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>30 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>60 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>20 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','13');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":16,"reward":{"wood":50,"clay":30,"iron":60,"crop":20},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 12: Instructions<\/h1><br \/><i>„Exactly! Barracks cost 210 lumber.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>50 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>30 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>60 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>20 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','13');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":16,"reward":{"wood":50,"clay":30,"iron":60,"crop":20},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 13){
|
||||
@@ -473,24 +497,24 @@ $ranking->procRankReq($temp);
|
||||
$displayarray = $database->getUserArray($temp['uid'],1);
|
||||
$rRes=$ranking->searchRank($displayarray['username'],"username");
|
||||
if ($rRes!=$rSubmited){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 14: Advanced!<\/h1><br \/><i>„Look up your rank in the player statistics again and enjoy your progress.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Look for your rank in the statistics and enter it here.<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"qst_next('','rank',document.getElementById('qst_val').value)\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"rank\"><\/div>\n\t\t","number":"-18","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 14: Advanced!<\/h1><br \/><i>„Look up your rank in the player statistics again and enjoy your progress.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Look for your rank in the statistics and enter it here.<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"qst_next('','rank',document.getElementById('qst_val').value)\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"rank\"><\/div>\n\t\t","number":"-18","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 14: Advanced!<\/h1><br \/><i>"Well done! That's your current rank."<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">100 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">90 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">100 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">60 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','15');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":18,"reward":{"wood":100,"clay":90,"iron":100,"crop":60},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 14: Advanced!<\/h1><br \/><i>„Well done! That's your current rank.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">100 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">90 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">100 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">60 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','15');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":18,"reward":{"wood":100,"clay":90,"iron":100,"crop":60},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 15){
|
||||
|
||||
// Ask from plyer ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Weapons or Dough<\/h1><br \/><i>„Now you have to make a decision: Either trade peacefully or become a dreaded warrior.\r\n<br \/><br \/>\r\nFor the marketplace you need a granary, for the barracks you need a rally point.”<\/i><br \/><br \/><input type=\"hidden\" id=\"qst_val\" value=\"\" \/><input onclick=\"javascript: qst_next('','19');\" type=\"button\" value=\"Economy\" class=\"qb1\"\/><input onclick=\"javascript: qst_next('','16');\" type=\"button\" value=\"Military\" class=\"qb2\" \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":"-19","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Weapons or Dough<\/h1><br \/><i>„Now you have to make a decision: Either trade peacefully or become a dreaded warrior.\r\n<br \/><br \/>\r\nFor the marketplace you need a granary, for the barracks you need a rally point.”<\/i><br \/><br \/><input type=\"hidden\" id=\"qst_val\" value=\"\" \/><input onclick=\"javascript: qst_next('','19');\" type=\"button\" value=\"Economy\" class=\"qb1\"\/><input onclick=\"javascript: qst_next('','16');\" type=\"button\" value=\"Military\" class=\"qb2\" \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":"-19","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 16){
|
||||
|
||||
// Checking rollypoint builded or no
|
||||
$rallypoint = $building->getTypeLevel(16);
|
||||
if ($rallypoint==0){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Military<\/h1><br \/><i>„A brave decision. To be able to send troops you need a rally point.\r\n<br \/><br \/>\r\nThe rally point must be built on a specific building site. The <a href=\"build.php?id=39\">building site<\/a> is located on the right side of the main building, slightly below it. The building site itself is curved.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a rally point.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":"-19","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Military<\/h1><br \/><i>„A brave decision. To be able to send troops you need a rally point.\r\n<br \/><br \/>\r\nThe rally point must be built on a specific building site. The <a href=\"build.php?id=39\">building site<\/a> is located on the right side of the main building, slightly below it. The building site itself is curved.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a rally point.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":"-19","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Military<\/h1><br \/><i>„Your rally point has been erected! A good move towards world domination!”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>80 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>90 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>60 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>40 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','17');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":19,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Military<\/h1><br \/><i>„Your rally point has been erected! A good move towards world domination!”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>80 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>90 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>60 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>40 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','17');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":19,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']==17){
|
||||
@@ -498,9 +522,9 @@ if ($rallypoint==0){ ?>
|
||||
// Checking barrack builded or no
|
||||
$barrack = $building->getTypeLevel(19);
|
||||
if ($barrack==0){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Barracks<\/h1><br \/><i>„Now you have a main building level 3 and a rally point. That means that all prerequisites for building barracks have been fulfilled.\r\n<br><br>\r\nYou can use the barracks to train troops for fighting.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct barracks.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"barracks\"><\/div>\n\t\t","number":"-20","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Barracks<\/h1><br \/><i>„Now you have a main building level 3 and a rally point. That means that all prerequisites for building barracks have been fulfilled.\r\n<br><br>\r\nYou can use the barracks to train troops for fighting.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct barracks.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"barracks\"><\/div>\n\t\t","number":"-20","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Barracks<\/h1><br \/><i>„Well done... The best instructors from the whole country have gathered to train your men\u2019s fighting skills to top form.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>70 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>100 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>90 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>100 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','18');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"barracks\"><\/div>\n\t\t","number":20,"reward":{"wood":70,"clay":100,"iron":90,"crop":100},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Barracks<\/h1><br \/><i>„Well done... The best instructors from the whole country have gathered to train your men\u2019s fighting skills to top form.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>70 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>100 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>90 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>100 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','18');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"barracks\"><\/div>\n\t\t","number":20,"reward":{"wood":70,"clay":100,"iron":90,"crop":100},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 18){
|
||||
@@ -510,9 +534,9 @@ $units = $village->unitall;
|
||||
$unarray=array("","Legionnaire", "Clubswinger","Phalanx");
|
||||
$unarray2=array("","u1", "u11","u21");
|
||||
if ($units[$unarray2[$session->userinfo['tribe']]]<2){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Train.<\/h1><br \/><i>„Now that you have barracks you can start training troops. Train two <?php echo $unarray[$session->userinfo['tribe']];?>.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Please train 2 <?php echo $unarray[$session->userinfo['tribe']];?>.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"units\"><\/div>\n\t\t","number":"-21","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Train.<\/h1><br \/><i>„Now that you have barracks you can start training troops. Train two <?php echo $unarray[$session->userinfo['tribe']];?>.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Please train 2 <?php echo $unarray[$session->userinfo['tribe']];?>.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"units\"><\/div>\n\t\t","number":"-21","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Train.<\/h1><br \/><i>„The foundation for your glorious army has been laid.<br \/><br \/>\r\nBefore sending your army off to plunder you should check with the <a href=\"warsim.php\">Combat-Simulator<\/a> to see how many troops you need to successfully fight one rat without losses.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>300 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>320 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>360 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>570 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','22');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"units\"><\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Train.<\/h1><br \/><i>„The foundation for your glorious army has been laid.<br \/><br \/>\r\nBefore sending your army off to plunder you should check with the <a href=\"warsim.php\">Combat-Simulator<\/a> to see how many troops you need to successfully fight one rat without losses.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>300 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>320 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>360 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>570 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','22');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"units\"><\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 19){
|
||||
@@ -520,9 +544,9 @@ if ($units[$unarray2[$session->userinfo['tribe']]]<2){ ?>
|
||||
// Checking granary builded or no
|
||||
$granary = $building->getTypeLevel(11);
|
||||
if ($granary ==0){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Economy <\/h1><br \/><i>„"Trade & Economy was your choice. Golden times await you for sure!"<br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a Granary.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":"-19","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Economy <\/h1><br \/><i>„„Trade & Economy was your choice. Golden times await you for sure!”<br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct a Granary.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":"-19","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Economy <\/h1><br \/><i>„Well done! With the Granary you can store more wheat.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>80 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>90 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>60 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>40 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','20');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":19,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 16: Economy <\/h1><br \/><i>„Well done! With the Granary you can store more wheat.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>80 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>90 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>60 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>40 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','20');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"granary_rally\"><\/div>\n\t\t","number":19,"reward":{"wood":80,"clay":90,"iron":60,"crop":40},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']==20){
|
||||
@@ -530,9 +554,9 @@ if ($granary ==0){ ?>
|
||||
// Checking warehouse builded or no
|
||||
$warehouse = $building->getTypeLevel(10);
|
||||
if ($warehouse==0){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Warehouse<\/h1><br \/><i>„Not only Crop has to be saved. Other resources can go to waste as well if they are not stored correctly. Construct a Warehouse!”\r\n<br><br>\r\n<\/i><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct Warehouse.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"warehouse\"><\/div>\n\t\t","number":"-20","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Warehouse<\/h1><br \/><i>„Not only Crop has to be saved. Other resources can go to waste as well if they are not stored correctly. Construct a Warehouse!”\r\n<br><br>\r\n<\/i><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Construct Warehouse.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"warehouse\"><\/div>\n\t\t","number":"-20","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Warehouse<\/h1><br \/><i>„Well done, your Warehouse is complete...”<\/i><br \/>Now you have fulfilled all prerequisites required to construct a Marketplace.<br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>70 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>120 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>90 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>50 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','21');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"warehouse\"><\/div>\n\t\t","number":20,"reward":{"wood":70,"clay":120,"iron":90,"crop":50},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 17: Warehouse<\/h1><br \/><i>„Well done, your Warehouse is complete...”<\/i><br \/>Now you have fulfilled all prerequisites required to construct a Marketplace.<br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>70 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>120 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>90 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>50 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','21');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"warehouse\"><\/div>\n\t\t","number":20,"reward":{"wood":70,"clay":120,"iron":90,"crop":50},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 21){
|
||||
@@ -540,9 +564,9 @@ if ($warehouse==0){ ?>
|
||||
// Checking market builded or no
|
||||
$market = $building->getTypeLevel(17);
|
||||
if ($market==0){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Marketplace.<\/h1><br \/><i>„Construct a Marketplace so you can trade with your fellow players.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Please build a Marketplace.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"market\"><\/div>\n\t\t","number":"-21","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Marketplace.<\/h1><br \/><i>„Construct a Marketplace so you can trade with your fellow players.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Please build a Marketplace.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"market\"><\/div>\n\t\t","number":"-21","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Marketplace.<\/h1><br \/><i>„The Marketplace has been completed. Now you can make offers of your own and accept foreign offers! When creating your own offers, you should think about offering what other players need most to get more profit.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>200 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>200 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>700 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>450 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','22');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"market\"><\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 18: Marketplace.<\/h1><br \/><i>„The Marketplace has been completed. Now you can make offers of your own and accept foreign offers! When creating your own offers, you should think about offering what other players need most to get more profit.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>200 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>200 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>700 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>450 <\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','22');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"market\"><\/div>\n\t\t","number":21,"reward":{"wood":300,"clay":320,"iron":360,"crop":570},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 22){
|
||||
@@ -555,16 +579,21 @@ if($tRes['f5']>1){$clayL++;};if($tRes['f6']>1){$clayL++;};if($tRes['f16']>1){$cl
|
||||
if($tRes['f1']>1){$woodL++;};if($tRes['f3']>1){$woodL++;};if($tRes['f14']>1){$woodL++;};if($tRes['f17']>1){$woodL++;}
|
||||
if($tRes['f2']>1){$cropL++;};if($tRes['f8']>1){$cropL++;};if($tRes['f9']>1){$cropL++;};if($tRes['f12']>1){$cropL++;};if($tRes['f13']>1){$cropL++;};if($tRes['f15']>1){$cropL++;}
|
||||
if ($ironL<4 || $clayL<4 || $woodL<4 || $cropL<6){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 19: Everything to 2.<\/h1><br \/><i>„Now it's time again to extend the cornerstones of might and wealth! This time level 1 is not enough... it will take a while but in the end it will be worth it. Extend all your resource tiles to level 2!”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend all resource tiles to level 2.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":"-22","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 19: Everything to 2.<\/h1><br \/><i>„Now it's time again to extend the cornerstones of might and wealth! This time level 1 is not enough... it will take a while but in the end it will be worth it. Extend all your resource tiles to level 2!”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Extend all resource tiles to level 2.<\/div><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":"-22","reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 19: Everything to 2.<\/h1><br \/><i>„Congratulations! Your village grows and thrives...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>15 Gold<br \/><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','23');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":22,"reward":{"gold":15},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 19: Everything to 2.<\/h1><br \/><i>„Congratulations! Your village grows and thrives...”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p>15 Gold<br \/><\/div><br \/><span id=\"qst_accpt\"><a href=\"javascript: qst_next('','23');\">Continue with the next task.<\/a><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"allres\"><\/div>\n\t\t","number":22,"reward":{"gold":15},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
// End tasks message
|
||||
<?php } elseif($_SESSION['qst']== 23){
|
||||
$database->updateUserField($_SESSION['username'],'quest','24',0);
|
||||
$_SESSION['qst']= 24; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Tasks<\/h1><br \/><i>„<?php if ($skiped==true){echo 'Tasks skpiped <br \/> Your reward: 25 Gold.' ;}else{echo 'All tasks achieved!';}?>”<\/i><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"intro\"><\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"i2","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Tasks<\/h1><br \/><i>„All tasks achieved!”<\/i><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"intro\"><\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
//90+ is task skipped <a href=\"javascript: qst_next('','23');\">Continue with the next task.<\/a>
|
||||
@@ -574,6 +603,7 @@ $time=time();?>
|
||||
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\"><a href=\"javascript: qst_next('','91');\">fetch</a></td></tr><tr><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":91,"reward":{"gold":15,"plus":1},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
|
||||
|
||||
<?php
|
||||
//2
|
||||
} elseif($_SESSION['qst']==91){
|
||||
@@ -645,10 +675,11 @@ $_SESSION['qst']= 24; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Tasks<\/h1><br \/><i>„All tasks achieved!”<\/i><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"intro\"><\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
|
||||
|
||||
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Tasks<\/h1><br \/><i>„Not loaded!”<\/i><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"intro\"><\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
<?php }}else{
|
||||
|
||||
if($_SESSION['qst']== 0){
|
||||
?>
|
||||
|
||||
@@ -697,7 +728,7 @@ $rRes=$ranking->searchRank($displayarray['username'],"username");
|
||||
if ($rRes!=$rSubmited){?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 4: Other Players<\/h1><br \/><i>„In <?php echo SERVER_NAME; ?> you play along with billions of other players. Click 'statistics' in the top menu to look up your rank and enter it here.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\">Order:<\/p>Look for your rank in the statistics and enter it here.<\/div><br \/><input id=\"qst_val\" class=\"text\" type=\"text\" name=\"qstin\" \/> <input onclick=\"banned.php\" type=\"button\" value=\"complete task\"\/><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"rank\"><\/div>\n\t\t","number":-4,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 4: Other Players<\/h1><br \/><i>"Exactly! That's your rank."<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>40 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>30 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>20 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30 <\/div><br \/><span id=\"qst_accpt\"><a href=\"banned.php\">Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Task 4: Other Players<\/h1><br \/><i>”Exactly! That's your rank.”<\/i><br \/><br \/><div class=\"rew\"><p class=\"ta_aw\"><input type=\"hidden\" id=\"qst_val\" value=\"2\" \/>Your reward:<\/p><img src=\"img\/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\" \/>40 <img src=\"img\/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\" \/>30 <img src=\"img\/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\" \/>20 <img src=\"img\/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\" \/>30 <\/div><br \/><span id=\"qst_accpt\"><a href=\"banned.php\">Continue with the next task.<\/a><\/span><\/div>\n\t\t","number":4,"reward":{"wood":40,"clay":30,"iron":20,"crop":30},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
<?php }?>
|
||||
|
||||
<?php } elseif($_SESSION['qst']== 5){
|
||||
@@ -895,7 +926,88 @@ $database->updateUserField($_SESSION['username'],'quest','24',0);
|
||||
$_SESSION['qst']= 24; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Tasks<\/h1><br \/><i>„<?php if ($skiped==true){echo 'Tasks skpiped <br \/> Your reward: 25 Gold.' ;}else{echo 'All tasks achieved!';}?>”<\/i><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"intro\"><\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"i2","altstep":0}
|
||||
|
||||
<?php } else { ?>
|
||||
<?php
|
||||
//90+ is task skipped <a href=\"javascript: qst_next('','23');\">Continue with the next task.<\/a>
|
||||
//1
|
||||
} elseif($_SESSION['qst']==90){
|
||||
$time=time();?>
|
||||
|
||||
<?php }} ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\"><a href=\"banned.php\">fetch</a></td></tr><tr><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":91,"reward":{"gold":15,"plus":1},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
|
||||
|
||||
<?php
|
||||
//2
|
||||
} elseif($_SESSION['qst']==91){
|
||||
$time=time();
|
||||
if ($_SESSION['qst_time']>= $time ){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($_SESSION['qst_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"banned.php\">fetch</a></div></td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-92,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"banned.php\">fetch</a></td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":92,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php
|
||||
//3
|
||||
} else if($_SESSION['qst']==92){
|
||||
$time=time();
|
||||
if ($_SESSION['qst_time']>= $time ){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($_SESSION['qst_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"banned.php\">fetch</a></div></td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-93,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"banned.php\">fetch</a></td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":93,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
//4
|
||||
} else if($_SESSION['qst']==93){
|
||||
$time=time();
|
||||
if ($_SESSION['qst_time']>= $time ){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($_SESSION['qst_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"banned.php\">fetch</a></div></td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"banned.php\">fetch</a></td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
//5
|
||||
} else if($_SESSION['qst']==94){
|
||||
$time=time();
|
||||
if ($_SESSION['qst_time']>= $time ){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($_SESSION['qst_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"banned.php\">fetch</a></div></td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"banned.php\">fetch</a></td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":95,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php
|
||||
//6
|
||||
} else if($_SESSION['qst']==95){
|
||||
$time=time();
|
||||
if ($_SESSION['qst_time']>= $time ){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</div></td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($_SESSION['qst_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"banned.php\">fetch</a></div></td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-96,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"banned.php\">fetch</a></td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">on hold</td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":96,"reward":{"wood":217,"clay":247,"iron":177,"crop":207},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
//7
|
||||
} else if($_SESSION['qst']==96){
|
||||
$time=time();
|
||||
if ($_SESSION['qst_time']>= $time ){ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</div></td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><div id=\"qst_resonway\" style=\"display:;\"><span id=\"qst_timer\"><?php echo $generator->getTimeFormat($_SESSION['qst_time']-time());?></div><div id=\"qst_reshere\" style=\"display:none;\"><a href=\"banned.php\">fetch</a></div></td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":-24,"reward":{"gold":20,"plus":2},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php }else{ ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img/x.gif\" alt=\"\" title=\"\"> Resource overview</h1><br><table class=\"altquest\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><th colspan=\"4\">Your resource deliveries</th></tr><tr><td></td><td>Delivery</td><td>Delivery time</td><td>Status</td></tr></thead><tbody><tr class=\"c\"><td class=\"fc ra\">1</td><td class=\"desc\">1 day 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><br>15 Gold<br></td><td class=\"dur\">0:00:00</td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">2</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">3</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">4</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">5</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr class=\"c\"><td class=\"fc ra\">6</td><td class=\"desc\"><img src=\"img/x.gif\" class=\"r1\" alt=\"Lumber\" title=\"Lumber\">217 <img src=\"img/x.gif\" class=\"r2\" alt=\"Clay\" title=\"Clay\">247 <img src=\"img/x.gif\" class=\"r3\" alt=\"Iron\" title=\"Iron\">177 <img src=\"img/x.gif\" class=\"r4\" alt=\"Crop\" title=\"Crop\">207 </td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\">fetched</td></tr><tr><td class=\"fc ra\">7</td><td class=\"desc\">2 days 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><br>20 Gold<br></td><td class=\"dur\"><?php echo $generator->getTimeFormat($skipp_time); ?></td><td class=\"lc stat\"><a href=\"banned.php\">fetch</a></td></tr></tbody></table><span id=\"qst_accpt\"><input type=\"hidden\" id=\"qst_val\"></span></div>\n\t\t","number":24,"reward":{"gold":20,"plus":2},"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>g","msrc":"<?php echo $messagelol; ?>","altstep":99}
|
||||
<?php } ?>
|
||||
|
||||
// End tasks message
|
||||
<?php } else if($_SESSION['qst']== 97){
|
||||
$database->updateUserField($_SESSION['username'],'quest','24',0);
|
||||
$_SESSION['qst']= 24; ?>
|
||||
{"markup":"\n\t\t<div id=\"qstd\"><h1> <img class=\"point\" src=\"img\/x.gif\" alt=\"\" title=\"\"\/> Tasks<\/h1><br \/><i>„All tasks achieved!”<\/i><br \/><span id=\"qst_accpt\"><\/span><\/div>\n\t\t<div id=\"qstbg\" class=\"intro\"><\/div>\n\t\t","number":-25,"reward":false,"qgsrc":"q_l<?php echo $session->userinfo['tribe'];?>","msrc":"<?php echo $messagelol; ?>","altstep":0}
|
||||
|
||||
|
||||
|
||||
|
||||
<?php } else {
|
||||
|
||||
}} ?>
|
||||
@@ -9,7 +9,7 @@ $needed_plan = 0;
|
||||
}
|
||||
$alli_users = $database->getUserByAlliance($session->alliance);
|
||||
$wwbuildingplan = 0;
|
||||
if(!empty(($alli_users))){
|
||||
if(!empty($alli_users)){
|
||||
foreach($alli_users as $users){
|
||||
$villages = $database->getVillageID($users['id']);
|
||||
foreach($villages as $village){
|
||||
|
||||
@@ -15,17 +15,17 @@ include("menu.tpl");
|
||||
<th colspan="2" class="buttons">
|
||||
<input name="delmsg" value="delete" type="image" id="btn_delete" class="dynamic_img" src="img/x.gif" alt="delete" /> <input name="start" type="image" value="Back" alt="Back" id="btn_back" class="dynamic_img" src="img/x.gif" /></th>
|
||||
<th class="navi"><?php
|
||||
if(!isset($_GET['s']) && count($message->archived)-count($database->getDelArchive($session->uid)) < 10) {
|
||||
if(!isset($_GET['s']) && count($message->archived1) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($message->archived)-count($database->getDelArchive($session->uid)) > 10) {
|
||||
else if (!isset($_GET['s']) && count($message->archived1) > 10) {
|
||||
echo "«<a href=\"?s=10&o=0\">»</a>";
|
||||
}
|
||||
else if(isset($_GET['s']) && count($message->archived)-count($database->getDelArchive($session->uid)) > $_GET['s']) {
|
||||
if(count($message->archived)-count($database->getDelArchive($session->uid)) > ($_GET['s']+10) && $_GET['s']-10 < count($message->archived)-count($database->getDelArchive($session->uid)) && $_GET['s'] != 0) {
|
||||
else if(isset($_GET['s']) && count($message->archived1) > $_GET['s']) {
|
||||
if(count($message->archived1) > ($_GET['s']+10) && $_GET['s']-10 < count($message->archived1) && $_GET['s'] != 0) {
|
||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a><a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else if(count($message->archived)-count($database->getDelArchive($session->uid)) > $_GET['s']+10) {
|
||||
else if(count($message->archived1) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
@@ -42,7 +42,7 @@ include("menu.tpl");
|
||||
}
|
||||
$name = 1;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->archived)-count($database->getDelArchive($session->uid)) >= $i) {
|
||||
if(count($message->archived1) >= $i) {
|
||||
if($message->archived[$i-1]['owner'] == 0) {
|
||||
echo "<tr class=\"sup\">";
|
||||
}
|
||||
@@ -60,7 +60,7 @@ include("menu.tpl");
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->archived)-count($database->getDelArchive($session->uid)) == 0) {
|
||||
if(count($message->archived1) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no messages available in the archive.</td></tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
+15
-15
@@ -24,17 +24,17 @@ include("menu.tpl");
|
||||
<?php if($session->plus) { echo "<input name=\"archive\" value=\"Archive\" type=\"image\" id=\"btn_archiv\" class=\"dynamic_img\" src=\"img/x.gif\" alt=\"Archive\" />"; } ?>
|
||||
<input name="ft" value="m3" type="hidden" />
|
||||
</th><th class="navi"><?php
|
||||
if(!isset($_GET['s']) && count($message->inbox)-count($database->getDelInbox($session->uid)) < 10) {
|
||||
if(!isset($_GET['s']) && count($message->inbox1) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($message->inbox)-count($database->getDelInbox($session->uid)) > 10) {
|
||||
else if (!isset($_GET['s']) && count($message->inbox1) > 10) {
|
||||
echo "«<a href=\"?s=10&o=0\">»</a>";
|
||||
}
|
||||
else if(isset($_GET['s']) && count($message->inbox)-count($database->getDelInbox($session->uid)) > $_GET['s']) {
|
||||
if(count($message->inbox)-count($database->getDelInbox($session->uid)) > ($_GET['s']+10) && $_GET['s']-10 < count($message->inbox)-count($database->getDelInbox($session->uid)) && $_GET['s'] != 0) {
|
||||
else if(isset($_GET['s']) && count($message->inbox1) > $_GET['s']) {
|
||||
if(count($message->inbox1) > ($_GET['s']+10) && $_GET['s']-10 < count($message->inbox1) && $_GET['s'] != 0) {
|
||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a><a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else if(count($message->inbox)-count($database->getDelInbox($session->uid)) > $_GET['s']+10) {
|
||||
else if(count($message->inbox1) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
@@ -51,31 +51,31 @@ include("menu.tpl");
|
||||
}
|
||||
$name = 1;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->inbox)-count($database->getDelInbox($session->uid)) >= $i) {
|
||||
if($message->inbox[$i-1]['owner'] <= 1) {
|
||||
if(count($message->inbox1) >= $i) {
|
||||
if($message->inbox1[$i-1]['owner'] <= 1) {
|
||||
echo "<tr class=\"sup\">";
|
||||
}
|
||||
else {
|
||||
echo "<tr>";
|
||||
}
|
||||
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->inbox[$i-1]['id']."\" /></td>
|
||||
<td class=\"top\"><a href=\"nachrichten.php?id=".$message->inbox[$i-1]['id']."\">".$message->inbox[$i-1]['topic']."</a> ";
|
||||
if($message->inbox[$i-1]['viewed'] == 0) {
|
||||
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->inbox1[$i-1]['id']."\" /></td>
|
||||
<td class=\"top\"><a href=\"nachrichten.php?id=".$message->inbox1[$i-1]['id']."\">".$message->inbox1[$i-1]['topic']."</a> ";
|
||||
if($message->inbox1[$i-1]['viewed'] == 0) {
|
||||
echo "(new)";
|
||||
}
|
||||
$date = $generator->procMtime($message->inbox[$i-1]['time']);
|
||||
if($message->inbox[$i-1]['owner'] <= 1) {
|
||||
echo "</td><td class=\"send\"><a><u>".$database->getUserField($message->inbox[$i-1]['owner'],'username',0)."</u></a></td>
|
||||
$date = $generator->procMtime($message->inbox1[$i-1]['time']);
|
||||
if($message->inbox1[$i-1]['owner'] <= 1) {
|
||||
echo "</td><td class=\"send\"><a><u>".$database->getUserField($message->inbox1[$i-1]['owner'],'username',0)."</u></a></td>
|
||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||
}
|
||||
else {
|
||||
echo "</td><td class=\"send\"><a href=\"spieler.php?uid=".$message->inbox[$i-1]['owner']."\">".$database->getUserField($message->inbox[$i-1]['owner'],'username',0)."</a></td>
|
||||
echo "</td><td class=\"send\"><a href=\"spieler.php?uid=".$message->inbox1[$i-1]['owner']."\">".$database->getUserField($message->inbox1[$i-1]['owner'],'username',0)."</a></td>
|
||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||
}
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->inbox)-count($database->getDelInbox($session->uid)) == 0) {
|
||||
if(count($message->inbox1) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no messages available.</td></tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
+13
-13
@@ -30,17 +30,17 @@
|
||||
<input class="check" type="checkbox" id="s10" name="s10" onclick="Allmsg(this.form);" />
|
||||
<?php } ?></th>
|
||||
<th colspan="2" class="buttons"><input name="delmsg" value="delete" type="image" id="btn_delete" class="dynamic_img" src="img/x.gif" alt="delete" /></th><th class="navi"><?php
|
||||
if(!isset($_GET['s']) && count($message->sent)-count($database->getDelSent($session->uid)) < 10) {
|
||||
if(!isset($_GET['s']) && count($message->sent1) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($message->sent)-count($database->getDelSent($session->uid)) > 10) {
|
||||
else if (!isset($_GET['s']) && count($message->sent1) > 10) {
|
||||
echo "«<a href=\"?s=10&o=0\">»</a>";
|
||||
}
|
||||
else if(isset($_GET['s']) && count($message->sent)-count($database->getDelSent($session->uid)) > $_GET['s']) {
|
||||
if(count($message->sent)-count($database->getDelSent($session->uid)) > ($_GET['s']+10) && $_GET['s']-10 < count($message->sent)-count($database->getDelSent($session->uid)) && $_GET['s'] != 0) {
|
||||
else if(isset($_GET['s']) && count($message->sent1) > $_GET['s']) {
|
||||
if(count($message->sent1) > ($_GET['s']+10) && $_GET['s']-10 < count($message->sent1) && $_GET['s'] != 0) {
|
||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a><a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else if(count($message->sent)-count($database->getDelSent($session->uid)) > $_GET['s']+10) {
|
||||
else if(count($message->sent1) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
@@ -58,25 +58,25 @@
|
||||
}
|
||||
$name = 1;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->sent)-count($database->getDelSent($session->uid)) >= $i) {
|
||||
if($message->sent[$i-1]['target'] == 0) {
|
||||
if(count($message->sent1) >= $i) {
|
||||
if($message->sent1[$i-1]['target'] == 0) {
|
||||
echo "<tr class=\"sup\">";
|
||||
}
|
||||
else {
|
||||
echo "<tr>";
|
||||
}
|
||||
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->sent[$i-1]['id']."\" /></td>
|
||||
<td class=\"top\"><a href=\"nachrichten.php?id=".$message->sent[$i-1]['id']."\">".$message->sent[$i-1]['topic']."</a> ";
|
||||
if($message->sent[$i-1]['viewed'] == 0) {
|
||||
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->sent1[$i-1]['id']."\" /></td>
|
||||
<td class=\"top\"><a href=\"nachrichten.php?id=".$message->sent1[$i-1]['id']."\">".$message->sent1[$i-1]['topic']."</a> ";
|
||||
if($message->sent1[$i-1]['viewed'] == 0) {
|
||||
echo "(unread)";
|
||||
}
|
||||
$date = $generator->procMtime($message->sent[$i-1]['time']);
|
||||
echo "</td><td class=\"send\"><a href=\"spieler.php?uid=".$message->sent[$i-1]['target']."\">".$database->getUserField($message->sent[$i-1]['target'],'username',0)."</a></td>
|
||||
$date = $generator->procMtime($message->sent1[$i-1]['time']);
|
||||
echo "</td><td class=\"send\"><a href=\"spieler.php?uid=".$message->sent1[$i-1]['target']."\">".$database->getUserField($message->sent1[$i-1]['target'],'username',0)."</a></td>
|
||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->sent)-count($database->getDelSent($session->uid)) == 0) {
|
||||
if(count($message->sent1) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no sent messages available.</td></tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
+85
-6
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
//var_dump($dataarray);
|
||||
//echo $dataarray[147];
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
@@ -37,7 +37,7 @@ for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ for($i=3;$i<=12;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
@@ -62,7 +62,7 @@ for($i=13;$i<=22;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[148]</td>";
|
||||
}
|
||||
@@ -102,14 +102,19 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -120,6 +125,9 @@ $start=1; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -129,6 +137,9 @@ for($i=35;$i<=44;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -138,6 +149,10 @@ for($i=45;$i<=54;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -148,7 +163,13 @@ $start=11;?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -159,6 +180,9 @@ $start=11;?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -168,6 +192,9 @@ for($i=56;$i<=65;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -177,6 +204,10 @@ for($i=66;$i<=75;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
@@ -186,7 +217,13 @@ $start=21; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -197,6 +234,9 @@ $start=21; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -206,6 +246,9 @@ for($i=77;$i<=86;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -215,6 +258,10 @@ for($i=87;$i<=96;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -225,7 +272,13 @@ $start=31; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -236,6 +289,9 @@ $start=31; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -245,6 +301,9 @@ for($i=98;$i<=107;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -254,6 +313,10 @@ for($i=108;$i<=117;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -264,7 +327,13 @@ $start=41; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -275,6 +344,9 @@ $start=41; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -284,6 +356,9 @@ for($i=119;$i<=128;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -293,6 +368,10 @@ for($i=129;$i<=138;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
|
||||
+81
-1
@@ -4,6 +4,7 @@ $time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
@@ -103,14 +104,19 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -121,6 +127,9 @@ $start=1; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -130,6 +139,9 @@ for($i=35;$i<=44;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -139,6 +151,10 @@ for($i=45;$i<=54;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -149,7 +165,13 @@ $start=11;?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -160,6 +182,9 @@ $start=11;?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -169,6 +194,9 @@ for($i=56;$i<=65;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -178,6 +206,10 @@ for($i=66;$i<=75;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
@@ -187,7 +219,13 @@ $start=21; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -198,6 +236,9 @@ $start=21; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -207,6 +248,9 @@ for($i=77;$i<=86;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -216,6 +260,10 @@ for($i=87;$i<=96;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -226,7 +274,13 @@ $start=31; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -237,6 +291,9 @@ $start=31; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -246,6 +303,9 @@ for($i=98;$i<=107;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -255,6 +315,10 @@ for($i=108;$i<=117;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -265,7 +329,13 @@ $start=41; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -276,6 +346,9 @@ $start=41; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -285,6 +358,9 @@ for($i=119;$i<=128;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -294,6 +370,10 @@ for($i=129;$i<=138;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
|
||||
+81
-1
@@ -2,6 +2,7 @@
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
//var_dump($dataarray);
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
@@ -101,14 +102,19 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -119,6 +125,9 @@ $start=1; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -128,6 +137,9 @@ for($i=35;$i<=44;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -137,6 +149,10 @@ for($i=45;$i<=54;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -147,7 +163,13 @@ $start=11;?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -158,6 +180,9 @@ $start=11;?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -167,6 +192,9 @@ for($i=56;$i<=65;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -176,6 +204,10 @@ for($i=66;$i<=75;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
@@ -185,7 +217,13 @@ $start=21; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -196,6 +234,9 @@ $start=21; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -205,6 +246,9 @@ for($i=77;$i<=86;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -214,6 +258,10 @@ for($i=87;$i<=96;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -224,7 +272,13 @@ $start=31; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -235,6 +289,9 @@ $start=31; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -244,6 +301,9 @@ for($i=98;$i<=107;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -253,6 +313,10 @@ for($i=108;$i<=117;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -263,7 +327,13 @@ $start=41; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -274,6 +344,9 @@ $start=41; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -283,6 +356,9 @@ for($i=119;$i<=128;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -292,6 +368,10 @@ for($i=129;$i<=138;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
|
||||
+81
-1
@@ -4,6 +4,7 @@ $time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
@@ -103,14 +104,19 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -121,6 +127,9 @@ $start=1; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -130,6 +139,9 @@ for($i=35;$i<=44;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -139,6 +151,10 @@ for($i=45;$i<=54;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -149,7 +165,13 @@ $start=11;?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -160,6 +182,9 @@ $start=11;?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -169,6 +194,9 @@ for($i=56;$i<=65;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -178,6 +206,10 @@ for($i=66;$i<=75;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
@@ -187,7 +219,13 @@ $start=21; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -198,6 +236,9 @@ $start=21; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -207,6 +248,9 @@ for($i=77;$i<=86;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -216,6 +260,10 @@ for($i=87;$i<=96;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -226,7 +274,13 @@ $start=31; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -237,6 +291,9 @@ $start=31; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -246,6 +303,9 @@ for($i=98;$i<=107;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -255,6 +315,10 @@ for($i=108;$i<=117;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -265,7 +329,13 @@ $start=41; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -276,6 +346,9 @@ $start=41; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -285,6 +358,9 @@ for($i=119;$i<=128;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -294,6 +370,10 @@ for($i=129;$i<=138;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
|
||||
+225
-222
@@ -1,25 +1,27 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
//var_dump($dataarray);
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $message->readingNotice['topic']; ?></th>
|
||||
</tr>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $message->readingNotice['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($message->readingNotice['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
@@ -32,56 +34,58 @@ if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
if ($dataarray[148]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[148]</td>";
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[148]</td>";
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
|
||||
@@ -91,286 +95,285 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
|
||||
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
|
||||
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
|
||||
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=118;$i<=127;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[128]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=139;$i<=148;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
}else{
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }} ?>
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
+81
-81
@@ -4,6 +4,7 @@ $time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
@@ -103,14 +104,19 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -121,6 +127,9 @@ $start=1; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -130,6 +139,9 @@ for($i=35;$i<=44;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -139,6 +151,10 @@ for($i=45;$i<=54;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -149,7 +165,13 @@ $start=11;?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -160,6 +182,9 @@ $start=11;?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -169,6 +194,9 @@ for($i=56;$i<=65;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -178,6 +206,10 @@ for($i=66;$i<=75;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
@@ -187,7 +219,13 @@ $start=21; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -198,6 +236,9 @@ $start=21; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -207,6 +248,9 @@ for($i=77;$i<=86;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -216,18 +260,27 @@ for($i=87;$i<=96;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -238,6 +291,9 @@ $start=31; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -247,84 +303,8 @@ for($i=98;$i<=107;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=118;$i<=127;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[128]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=139;$i<=148;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
}else{
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
@@ -335,6 +315,10 @@ for($i=108;$i<=117;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -345,7 +329,13 @@ $start=41; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -356,6 +346,9 @@ $start=41; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -365,6 +358,9 @@ for($i=119;$i<=128;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -374,8 +370,12 @@ for($i=129;$i<=138;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }} ?>
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
+225
-222
@@ -1,25 +1,27 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
//var_dump($dataarray);
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $message->readingNotice['topic']; ?></th>
|
||||
</tr>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $message->readingNotice['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($message->readingNotice['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
@@ -32,56 +34,58 @@ if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
if ($dataarray[148]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[148]</td>";
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[148]</td>";
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
|
||||
@@ -91,286 +95,285 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
|
||||
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
|
||||
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
|
||||
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=118;$i<=127;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[128]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=139;$i<=148;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
}else{
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }} ?>
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
+81
-81
@@ -4,6 +4,7 @@ $time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
@@ -103,14 +104,19 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -121,6 +127,9 @@ $start=1; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -130,6 +139,9 @@ for($i=35;$i<=44;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -139,6 +151,10 @@ for($i=45;$i<=54;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -149,7 +165,13 @@ $start=11;?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -160,6 +182,9 @@ $start=11;?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -169,6 +194,9 @@ for($i=56;$i<=65;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -178,6 +206,10 @@ for($i=66;$i<=75;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
@@ -187,7 +219,13 @@ $start=21; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -198,6 +236,9 @@ $start=21; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -207,6 +248,9 @@ for($i=77;$i<=86;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -216,18 +260,27 @@ for($i=87;$i<=96;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -238,6 +291,9 @@ $start=31; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -247,84 +303,8 @@ for($i=98;$i<=107;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=118;$i<=127;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[128]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=139;$i<=148;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
}else{
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
@@ -335,6 +315,10 @@ for($i=108;$i<=117;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -345,7 +329,13 @@ $start=41; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -356,6 +346,9 @@ $start=41; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -365,6 +358,9 @@ for($i=119;$i<=128;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -374,8 +370,12 @@ for($i=129;$i<=138;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }} ?>
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
+225
-222
@@ -1,25 +1,27 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
//var_dump($dataarray);
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $message->readingNotice['topic']; ?></th>
|
||||
</tr>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $message->readingNotice['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($message->readingNotice['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
@@ -32,56 +34,58 @@ if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
if ($dataarray[148]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[148]</td>";
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[148]</td>";
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
|
||||
@@ -91,286 +95,285 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
|
||||
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
|
||||
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
|
||||
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=118;$i<=127;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[128]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=139;$i<=148;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
}else{
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }} ?>
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
+81
-81
@@ -4,6 +4,7 @@ $time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
@@ -103,14 +104,19 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -121,6 +127,9 @@ $start=1; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -130,6 +139,9 @@ for($i=35;$i<=44;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -139,6 +151,10 @@ for($i=45;$i<=54;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -149,7 +165,13 @@ $start=11;?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -160,6 +182,9 @@ $start=11;?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -169,6 +194,9 @@ for($i=56;$i<=65;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -178,6 +206,10 @@ for($i=66;$i<=75;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
@@ -187,7 +219,13 @@ $start=21; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -198,6 +236,9 @@ $start=21; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -207,6 +248,9 @@ for($i=77;$i<=86;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -216,18 +260,27 @@ for($i=87;$i<=96;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -238,6 +291,9 @@ $start=31; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -247,84 +303,8 @@ for($i=98;$i<=107;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=118;$i<=127;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[128]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=139;$i<=148;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
}else{
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
|
||||
<?php
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=98;$i<=107;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
@@ -335,6 +315,10 @@ for($i=108;$i<=117;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
@@ -345,7 +329,13 @@ $start=41; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php }else{ ?>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||
<?php } ?>
|
||||
</tr></thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
@@ -356,6 +346,9 @@ $start=41; ?>
|
||||
for($i=$start;$i<=($start+9);$i++) {
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -365,6 +358,9 @@ for($i=119;$i<=128;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
@@ -374,8 +370,12 @@ for($i=129;$i<=138;$i++) {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }} ?>
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -66,7 +66,6 @@ $noticeClass = array("Scout Report","Won as attacker without losses","Won as att
|
||||
$count = 0;
|
||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||
if(count($message->noticearray) >= $i) {
|
||||
if($message->noticearray[$i-1]['del'] == 0){
|
||||
echo "<tr><td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->noticearray[$i-1]['id']."\" /></td>
|
||||
<td class=\"sub\">";
|
||||
$type = (isset($_GET['t']) && $_GET['t'] == 5)? $message->noticearray[$i-1]['archive'] : $message->noticearray[$i-1]['ntype'];
|
||||
@@ -84,10 +83,10 @@ $noticeClass = array("Scout Report","Won as attacker without losses","Won as att
|
||||
}
|
||||
$date = $generator->procMtime($message->noticearray[$i-1]['time']);
|
||||
echo "</div></td><td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||
}}
|
||||
}
|
||||
$name++;
|
||||
}
|
||||
if(count($message->noticearray)-count($message->delnoticearray) == 0) {
|
||||
if(count($message->noticearray) == 0) {
|
||||
echo "<td colspan=\"3\" class=\"none\">There are no reports available.</td></tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -138,7 +138,7 @@ $tocoor = $database->getCoor($enforce['vref']);
|
||||
}
|
||||
}
|
||||
if ($enforce['hero']>0){
|
||||
$qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$from['owner']."";
|
||||
$qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$to['owner']."";
|
||||
$resulth = mysql_query($qh);
|
||||
$hero_f=mysql_fetch_array($resulth);
|
||||
$hero_unit=$hero_f['unit'];
|
||||
|
||||
@@ -1340,6 +1340,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%vdata` (
|
||||
`exp3` int(10) NOT NULL,
|
||||
`created` int(11) NOT NULL,
|
||||
`natar` tinyint(1) unsigned NOT NULL,
|
||||
`starv` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`wref`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user