big update

This commit is contained in:
unknown
2012-04-27 12:20:13 +03:00
parent 0b01b8cf2e
commit d0c55c4c3b
27 changed files with 578 additions and 187 deletions
+73 -53
View File
@@ -75,7 +75,7 @@ class Automation {
case 40: $build = "Wonder of the World"; break; case 40: $build = "Wonder of the World"; break;
case 41: $build = "Horse Drinking Trough"; break; case 41: $build = "Horse Drinking Trough"; break;
case 42: $build = "Great Workshop"; break; case 42: $build = "Great Workshop"; break;
default: $build = "Error"; break; default: $build = "Nothing had"; break;
} }
return $build; return $build;
} }
@@ -116,7 +116,9 @@ class Automation {
$this->ClearUser(); $this->ClearUser();
$this->ClearInactive(); $this->ClearInactive();
$this->oasisResoucesProduce();
$this->pruneResource(); $this->pruneResource();
$this->pruneOResource();
if(!file_exists("GameEngine/Prevention/culturepoints.txt") or time()-filemtime("GameEngine/Prevention/culturepoints.txt")>10) { if(!file_exists("GameEngine/Prevention/culturepoints.txt") or time()-filemtime("GameEngine/Prevention/culturepoints.txt")>10) {
$this->culturePoints(); $this->culturePoints();
} }
@@ -164,6 +166,7 @@ class Automation {
} }
$this->updateStore(); $this->updateStore();
} }
function activeCropDead(){ function activeCropDead(){
global $session,$village,$database,$_SESSION, $allcrop; global $session,$village,$database,$_SESSION, $allcrop;
// var_dump($session); // var_dump($session);
@@ -384,31 +387,31 @@ private function loyaltyRegeneration() {
foreach($needDelete as $need) { foreach($needDelete as $need) {
$needVillage = $database->getVillagesID($need['uid']); //wref $needVillage = $database->getVillagesID($need['uid']); //wref
foreach($needVillage as $village) { foreach($needVillage as $village) {
$q = "DELETE FROM ".TB_PREFIX."abdata where wref = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."abdata where wref = ".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."bdata where wid = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."bdata where wid = ".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."enforcement where vref = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."enforcement where vref = ".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."fdata where vref = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."fdata where vref = ".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."market where vref = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."market where vref = ".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."movement where to = ".$village['wref']." or from = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."movement where to = ".$village." or from = ".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."odata where wref = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."odata where wref = ".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."research where vref = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."research where vref = ".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."tdata where vref = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."tdata where vref = ".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."training where vref =".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."training where vref =".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."units where vref =".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."units where vref =".$village;
$database->query($q); $database->query($q);
$q = "DELETE FROM ".TB_PREFIX."vdata where wref = ".$village['wref']; $q = "DELETE FROM ".TB_PREFIX."vdata where owner = ".$village;
$database->query($q); $database->query($q);
$q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$village['wref']; $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$village;
$database->query($q); $database->query($q);
} }
$q = "DELETE FROM ".TB_PREFIX."mdata where target = ".$need['uid']." or owner = ".$need['uid']; $q = "DELETE FROM ".TB_PREFIX."mdata where target = ".$need['uid']." or owner = ".$need['uid'];
@@ -492,9 +495,6 @@ private function loyaltyRegeneration() {
} }
} }
private function culturePoints() { private function culturePoints() {
global $database,$session; global $database,$session;
$time = time()-600; $time = time()-600;
@@ -516,28 +516,6 @@ private function loyaltyRegeneration() {
} }
} }
# private function culturePoints() {
# global $database;
# $ourFileHandle = @fopen("GameEngine/Prevention/culturepoints.txt", 'w');
# @fclose($ourFileHandle);
# $time = time()-84600;
# $array = array();
# $q = "SELECT id, lastupdate FROM ".TB_PREFIX."users where lastupdate < $time";
# $array = $database->query_return($q);
#
# foreach($array as $indi) {
# if($indi['lastupdate'] < $time){
# $cp = $database->getVSumField($indi['id'], 'cp');
# $newupdate = time();
# $q = "UPDATE ".TB_PREFIX."users set cp = cp + 2000, lastupdate = $newupdate where id = '".$indi['id']."'";
# $database->query($q);
#}
#}
#if(file_exists("GameEngine/Prevention/culturepoints.txt")) {
# @unlink("GameEngine/Prevention/culturepoints.txt");
#}
#}
private function buildComplete() { private function buildComplete() {
global $database,$bid18,$bid10,$bid11,$bid38,$bid39; global $database,$bid18,$bid10,$bid11,$bid38,$bid39;
$time = time(); $time = time();
@@ -1316,7 +1294,6 @@ ${dead.$i}=$data['t'.$i];
$resulth = mysql_query($qh); $resulth = mysql_query($qh);
$hero_f=mysql_fetch_array($resulth); $hero_f=mysql_fetch_array($resulth);
$hero_unit=$hero_f['unit']; $hero_unit=$hero_f['unit'];
//echo "///".$GLOBALS['u'.$hero_unit]['speed']."///";
$speeds[] = $GLOBALS['u'.$hero_unit]['speed']; $speeds[] = $GLOBALS['u'.$hero_unit]['speed'];
} }
@@ -1354,8 +1331,8 @@ ${dead.$i}=$data['t'.$i];
{ {
if ($catp!='0') if ($catp!='0')
{ {
$villpop=$this->recountPop($data['to']);
if($toF['pop']<=0) if($villpop<=0)
{ {
$info_cat = ",".$catp_pic.", Village already destroyed."; $info_cat = ",".$catp_pic.", Village already destroyed.";
} }
@@ -1479,7 +1456,6 @@ ${dead.$i}=$data['t'.$i];
$q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$data['to']; $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$data['to'];
$database->query($q); $database->query($q);
$database->clearExpansionSlot($data['to']); $database->clearExpansionSlot($data['to']);
$logging->VillageDestroyCatalog($data['to']);
} }
} }
} }
@@ -1632,7 +1608,7 @@ ${dead.$i}=$data['t'.$i];
$database->query($q); $database->query($q);
$q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$data['to']; $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$data['to'];
$database->query($q); $database->query($q);
$logging->VillageDestroyCatalog($data['to']); $database->clearExpansionSlot($data['to']);
} }
} }
} }
@@ -1783,7 +1759,7 @@ ${dead.$i}=$data['t'.$i];
$database->query($q); $database->query($q);
$q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$data['to']; $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$data['to'];
$database->query($q); $database->query($q);
$logging->VillageDestroyCatalog($data['to']); $database->clearExpansionSlot($data['to']);
} }
} }
} }
@@ -1875,13 +1851,16 @@ ${dead.$i}=$data['t'.$i];
$pop2 = $database->getVillageField($data['to'],"pop"); $pop2 = $database->getVillageField($data['to'],"pop");
if($pop1 > $pop2){ if($pop1 > $pop2){
$buildlevel = $database->getResourceLevel($data['to']); $buildlevel = $database->getResourceLevel($data['to']);
for ($i=0; $i<=99; $i++){ for ($i=1; $i<=39; $i++){
if($buildlevel['f'.$i]!=0){ if($buildlevel['f'.$i]!=0){
$buildlevel2 = $buildlevel['f'.$i]; $leveldown = $buildlevel['f'.$i]-1;
$q = "UPDATE ".TB_PREFIX."fdata SET `".$buildlevel2."`='".$buildlevel2."' - 1 WHERE vref=".$data['to']; $database->setVillageLevel($data['to'],"f".$i,$leveldown);
$database->query($q);
} }
} }
if($buildlevel['f99']!=0){
$leveldown = $buildlevel['f99']-1;
$database->setVillageLevel($data['to'],"f99",$leveldown);
}
} }
//destroy wall //destroy wall
$database->setVillageLevel($data['to'],"f40",0); $database->setVillageLevel($data['to'],"f40",0);
@@ -1908,7 +1887,7 @@ ${dead.$i}=$data['t'.$i];
$value = $data['to']; $value = $data['to'];
} }
$database->setVillageField($data['from'],$exp,$value); $database->setVillageField($data['from'],$exp,$value);
$chiefing_village = 1;
} }
} }
@@ -2067,13 +2046,37 @@ $crannyimg = "<img src=\"gpack/travian_default/img/g/g23.gif\" height=\"30\" wid
} }
$database->setMovementProc($data['moveid']); $database->setMovementProc($data['moveid']);
if($chiefing_village != 1){
$database->addMovement(4,$to['wref'],$from['wref'],$data['ref'],time(),$endtime); $database->addMovement(4,$to['wref'],$from['wref'],$data['ref'],time(),$endtime);
}else{
$villreinf = $database->addEnforce($data);
$villtribe = $database->getUserField($from['owner'],"tribe",0);
$unittribe = $villtribe-1;
if($unittribe == 0){
$unittribe = "";
}
$database->modifyEnforce($villreinf,$unittribe.'1',$data['t1']-$dead1,1);
$database->modifyEnforce($villreinf,$unittribe.'2',$data['t2']-$dead2,1);
$database->modifyEnforce($villreinf,$unittribe.'3',$data['t3']-$dead3,1);
$database->modifyEnforce($villreinf,$unittribe.'4',$data['t4']-$dead4,1);
$database->modifyEnforce($villreinf,$unittribe.'5',$data['t5']-$dead5,1);
$database->modifyEnforce($villreinf,$unittribe.'6',$data['t6']-$dead6,1);
$database->modifyEnforce($villreinf,$unittribe.'7',$data['t7']-$dead7,1);
$database->modifyEnforce($villreinf,$unittribe.'8',$data['t8']-$dead8,1);
$database->modifyEnforce($villreinf,$unittribe.'9',$data['t9']-$dead9-1,1);
$database->modifyEnforce($villreinf,$unittribe.'10',$data['t10']-$dead10,1);
$database->modifyEnforce($villreinf,$unittribe.'11',$data['t11']-$dead11,1);
}
// send the bounty on type 6. // send the bounty on type 6.
if($type !== 1) if($type !== 1)
{ {
$reference = $database->sendResource($steal[0],$steal[1],$steal[2],$steal[3],0,0); $reference = $database->sendResource($steal[0],$steal[1],$steal[2],$steal[3],0,0);
$isoasis1 = $database->isVillageOases($to['wref']);
if ($isoasis1 == 0){
$database->modifyResource($to['wref'],$steal[0],$steal[1],$steal[2],$steal[3],0); $database->modifyResource($to['wref'],$steal[0],$steal[1],$steal[2],$steal[3],0);
}else{
$database->modifyOasisResource($to['wref'],$steal[0],$steal[1],$steal[2],$steal[3],0);
}
$database->addMovement(6,$to['wref'],$from['wref'],$reference,time(),$endtime); $database->addMovement(6,$to['wref'],$from['wref'],$reference,time(),$endtime);
//$database->updateVillage($to['wref']); //$database->updateVillage($to['wref']);
$totalstolengain=$steal[0]+$steal[1]+$steal[2]+$steal[3]; $totalstolengain=$steal[0]+$steal[1]+$steal[2]+$steal[3];
@@ -2132,6 +2135,8 @@ $crannyimg = "<img src=\"gpack/travian_default/img/g/g23.gif\" height=\"30\" wid
if($NonHeroPresent == 0 && $this->getTypeLevel(37,$data['to']) > 0) { if($NonHeroPresent == 0 && $this->getTypeLevel(37,$data['to']) > 0) {
//don't reinforce, addunit instead //don't reinforce, addunit instead
$database->modifyUnit($data['to'],array("hero"),array(1),array(1)); $database->modifyUnit($data['to'],array("hero"),array(1),array(1));
$heroid = $database->getHero($database->getVillageField($data['from'],"owner"),1);
$database->modifyHero("wref",$data['to'],$heroid,0);
$HeroTransfer = 1; $HeroTransfer = 1;
} }
} }
@@ -2822,8 +2827,7 @@ private function demolitionComplete() {
} }
// by SlimShady95, aka Manuel Mannhardt < manuel_mannhardt@web.de > // by SlimShady95, aka Manuel Mannhardt < manuel_mannhardt@web.de >
private function updateStore() private function updateStore() {
{
global $bid10, $bid38, $bid11, $bid39; global $bid10, $bid38, $bid11, $bid39;
$result = mysql_query('SELECT * FROM `' . TB_PREFIX . 'fdata`'); $result = mysql_query('SELECT * FROM `' . TB_PREFIX . 'fdata`');
@@ -2868,6 +2872,22 @@ private function demolitionComplete() {
mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `maxstore` = ' . $ress . ', `maxcrop` = ' . $crop . ' WHERE `wref` = ' . $row['vref']) or die(mysql_error()); mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `maxstore` = ' . $ress . ', `maxcrop` = ' . $crop . ' WHERE `wref` = ' . $row['vref']) or die(mysql_error());
} }
} }
private function oasisResoucesProduce() {
global $database;
$time = time();
$q = "SELECT * FROM ".TB_PREFIX."odata WHERE wood < 800 OR clay < 800 OR iron < 800 OR crop < 800";
$array = $database->query_return($q);
foreach($array as $getoasis) {
$oasiswood = (8*SPEED/3600)*(time()-$getoasis['lastupdated']);
$oasisclay = (8*SPEED/3600)*(time()-$getoasis['lastupdated']);
$oasisiron = (8*SPEED/3600)*(time()-$getoasis['lastupdated']);
$oasiscrop = (8*SPEED/3600)*(time()-$getoasis['lastupdated']);
$database->modifyOasisResource($getoasis['wref'],$oasiswood,$oasisclay,$oasisiron,$oasiscrop,1);
$database->updateOasis($getoasis['wref']);
}
}
} }
$automation = new Automation; $automation = new Automation;
?> ?>
+19 -5
View File
@@ -102,7 +102,7 @@ class Building {
return 8; return 8;
} }
else { else {
if($session->plus) { if($session->plus or $tid==40) {
if($this->plus == 0) { if($this->plus == 0) {
return 9; return 9;
} }
@@ -120,7 +120,7 @@ class Building {
return 8; return 8;
} }
else { else {
if($session->plus) { if($session->plus or $tid==40) {
if($this->plus == 0) { if($this->plus == 0) {
return 9; return 9;
} }
@@ -136,7 +136,7 @@ class Building {
} }
else { else {
if($this->basic == 1) { if($this->basic == 1) {
if($session->plus && $this->plus == 0) { if(($session->plus or $tid==40) && $this->plus == 0) {
return 9; return 9;
} }
else { else {
@@ -329,7 +329,7 @@ class Building {
$time = time() + round($dataarray[$village->resarray['f'.$id]-1]['time'] / 4); $time = time() + round($dataarray[$village->resarray['f'.$id]-1]['time'] / 4);
$loop = 0; $loop = 0;
if($this->inner == 1 || $this->basic == 1) { if($this->inner == 1 || $this->basic == 1) {
if($session->plus && $this->plus == 0) { if(($session->plus or $village->resarray['f'.$id.'t']==40)&& $this->plus == 0) {
$loop = 1; $loop = 1;
} }
} }
@@ -619,11 +619,19 @@ class Building {
} }
private function finishAll() { private function finishAll() {
global $database,$session,$logging,$village,$bid18,$bid10,$bid11,$technology; global $database,$session,$logging,$village,$bid18,$bid10,$bid11,$technology,$_SESSION;
if($session->access!=BANNED){
if($session->gold >= 2){
foreach($this->buildArray as $jobs) { foreach($this->buildArray as $jobs) {
if($jobs['wid']==$village->wid){
$wwvillage = $database->getResourceLevel($jobs['wid']);
if($wwvillage['f99t']!=40){
$level = $database->getFieldLevel($jobs['wid'],$jobs['field']); $level = $database->getFieldLevel($jobs['wid'],$jobs['field']);
$level = ($level == -1) ? 0 : $level; $level = ($level == -1) ? 0 : $level;
if($jobs['type'] != 25 AND $jobs['type'] != 26 AND $jobs['type'] != 40) { if($jobs['type'] != 25 AND $jobs['type'] != 26 AND $jobs['type'] != 40) {
$gold=$database->getUserField($_SESSION['username'],'gold','username');
$gold-=2;
$database->updateUserField($_SESSION['username'],'gold',$gold,0);
$resource = $this->resourceRequired($jobs['field'],$jobs['type']); $resource = $this->resourceRequired($jobs['field'],$jobs['type']);
$q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = f".$jobs['field']." + 1, f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid']; $q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = f".$jobs['field']." + 1, f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid'];
if($database->query($q)) { if($database->query($q)) {
@@ -670,6 +678,8 @@ class Building {
if(($jobs['field'] >= 19 && ($session->tribe == 1 || ALLOW_ALL_TRIBE)) || (!ALLOW_ALL_TRIBE && $session->tribe != 1)) { $innertimestamp = $jobs['timestamp']; } if(($jobs['field'] >= 19 && ($session->tribe == 1 || ALLOW_ALL_TRIBE)) || (!ALLOW_ALL_TRIBE && $session->tribe != 1)) { $innertimestamp = $jobs['timestamp']; }
} }
} }
}
}
$technology->finishTech(); $technology->finishTech();
$logging->goldFinLog($village->wid); $logging->goldFinLog($village->wid);
$database->modifyGold($session->uid,0,0); $database->modifyGold($session->uid,0,0);
@@ -682,6 +692,10 @@ class Building {
} }
header("Location: ".$session->referrer); header("Location: ".$session->referrer);
} }
}else{
header("Location: banned.php");
}
}
public function resourceRequired($id,$tid,$plus=1) { public function resourceRequired($id,$tid,$plus=1) {
$name = "bid".$tid; $name = "bid".$tid;
-9
View File
@@ -84,15 +84,6 @@ class Logging {
} }
} }
public function VillageDestroyCatalog($wid) {
global $database;
if(LOG_GOLD_FIN) {
$log = "Village destroyed";
$q = "Insert into ".TB_PREFIX."destroy_log values (0,$wid,'$log')";
$database->query($q);
}
}
public function addWarLog() { public function addWarLog() {
global $database; global $database;
} }
+3
View File
@@ -243,6 +243,8 @@ class Market {
private function tradeResource($post) { private function tradeResource($post) {
global $session,$database,$village; global $session,$database,$village;
$wwvillage = $database->getResourceLevel($village->wid);
if($wwvillage['f99t']!=40){
if($session->userinfo['gold'] >= 3) { if($session->userinfo['gold'] >= 3) {
//kijken of ze niet meer gs invoeren dan ze hebben //kijken of ze niet meer gs invoeren dan ze hebben
if($session->access == BANNED){ if($session->access == BANNED){
@@ -261,6 +263,7 @@ class Market {
header("Location: build.php?id=".$post['id']."&t=3"); header("Location: build.php?id=".$post['id']."&t=3");
} }
} }
}
}; };
$market = new Market; $market = new Market;
+30 -1
View File
@@ -323,6 +323,21 @@ class Units {
$post['t'.$i.'']='0'; $post['t'.$i.'']='0';
} }
} }
if(isset($post['t11'])){
if ($post['t11'] > $enforce['hero'])
{
$form->addError("error","You can't send more units than you have");
break;
}
if($post['t11']<0)
{
$form->addError("error","You can't send negative units.");
break;
}
} else {
$post['t11']='0';
}
if($form->returnErrors() > 0) { if($form->returnErrors() > 0) {
$_SESSION['errorarray'] = $form->getErrors(); $_SESSION['errorarray'] = $form->getErrors();
@@ -340,6 +355,7 @@ class Units {
} }
//get cord //get cord
$from = $database->getVillage($enforce['from']);
$fromcoor = $database->getCoor($enforce['from']); $fromcoor = $database->getCoor($enforce['from']);
$tocoor = $database->getCoor($enforce['vref']); $tocoor = $database->getCoor($enforce['vref']);
$fromCor = array('x'=>$tocoor['x'], 'y'=>$tocoor['y']); $fromCor = array('x'=>$tocoor['x'], 'y'=>$tocoor['y']);
@@ -361,8 +377,21 @@ class Units {
$post['t'.$i.'']='0'; $post['t'.$i.'']='0';
} }
} }
if (isset($post['t11'])){
if( $post['t11'] != '' && $post['t11'] > 0){
$qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$from['owner']."";
$resulth = mysql_query($qh);
$hero_f=mysql_fetch_array($resulth);
$hero_unit=$hero_f['unit'];
$speeds[] = $GLOBALS['u'.$hero_unit]['speed'];
} else {
$post['t11']='0';
}
} else {
$post['t11']='0';
}
$time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1);
$reference = $database->addAttack($enforce['from'],$post['t1'],$post['t2'],$post['t3'],$post['t4'],$post['t5'],$post['t6'],$post['t7'],$post['t8'],$post['t9'],$post['t10'],0,2,0,0,0,0); $reference = $database->addAttack($enforce['from'],$post['t1'],$post['t2'],$post['t3'],$post['t4'],$post['t5'],$post['t6'],$post['t7'],$post['t8'],$post['t9'],$post['t10'],$post['t11'],2,0,0,0,0);
$database->addMovement(4,$village->wid,$enforce['from'],$reference,time(),($time+time())); $database->addMovement(4,$village->wid,$enforce['from'],$reference,time(),($time+time()));
$technology->checkReinf($post['ckey']); $technology->checkReinf($post['ckey']);
+99 -10
View File
@@ -17,12 +17,17 @@ if ($units[$y]['sort_type']==3){
} else if ($units[$y]['attack_type']==4){ } else if ($units[$y]['attack_type']==4){
$actionType = "Raid on "; $actionType = "Raid on ";
} }
$reinfowner = $database->getVillageField($units[$y]['from'],"owner");
if($units[$y]['attack_type'] != 1){ if($units[$y]['attack_type'] != 1){
if($units[$y]['from'] != 0){ if($units[$y]['from'] != 0){
if($units[$y]['t11'] != 0 && $reinfowner == $session->uid) {
$colspan = 11;
}else{
$colspan = 10;
}
echo "<table class=\"troop_details\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><td class=\"role\"> echo "<table class=\"troop_details\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><td class=\"role\">
<a href=\"karte.php?d=".$units[$y]['from']."&c=".$generator->getMapCheck($units[$y]['from'])."\">".$database->getVillageField($units[$y]['from'],"name")."</a></td> <a href=\"karte.php?d=".$units[$y]['from']."&c=".$generator->getMapCheck($units[$y]['from'])."\">".$database->getVillageField($units[$y]['from'],"name")."</a></td>
<td colspan=\"10\">"; <td colspan=\"$colspan\">";
echo "<a href=\"spieler.php?uid=".$database->getVillageField($units[$y]['from'],"owner")."\">".$database->getUserField($database->getVillageField($units[$y]['from'],"owner"),"username",0)."'s troops</a>"; echo "<a href=\"spieler.php?uid=".$database->getVillageField($units[$y]['from'],"owner")."\">".$database->getUserField($database->getVillageField($units[$y]['from'],"owner"),"username",0)."'s troops</a>";
echo "</td></tr></thead><tbody class=\"units\">"; echo "</td></tr></thead><tbody class=\"units\">";
$tribe = $database->getUserField($database->getVillageField($units[$y]['from'],"owner"),"tribe",0); $tribe = $database->getUserField($database->getVillageField($units[$y]['from'],"owner"),"tribe",0);
@@ -31,10 +36,27 @@ if ($units[$y]['sort_type']==3){
echo "<tr><th>&nbsp;</th>"; echo "<tr><th>&nbsp;</th>";
for($i=$start;$i<=($end);$i++) { for($i=$start;$i<=($end);$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($units[$y]['t11'] != 0) {
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
} }
echo "</tr><tr><th>Troops</th>"; echo "</tr><tr><th>Troops</th>";
for($i=$start;$i<=($end);$i++) { for($i=1;$i<=$colspan;$i++) {
$totalunits = $units[$y]['t1']+$units[$y]['t2']+$units[$y]['t3']+$units[$y]['t4']+$units[$y]['t5']+$units[$y]['t6']+$units[$y]['t7']+$units[$y]['t8']+$units[$y]['t9']+$units[$y]['t10']+$units[$y]['t11']; $totalunits = $units[$y]['t1']+$units[$y]['t2']+$units[$y]['t3']+$units[$y]['t4']+$units[$y]['t5']+$units[$y]['t6']+$units[$y]['t7']+$units[$y]['t8']+$units[$y]['t9']+$units[$y]['t10']+$units[$y]['t11'];
if($units[$y]['attack_type'] == 2){
if($reinfowner != $session->uid){
echo "<td class=\"none\">?</td>";
}else{
if($units[$y]['t'.$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>";
echo $units[$y]['t'.$i]."</td>";
}
}}else{
if($totalunits > $building->getTypeLevel(16)){ if($totalunits > $building->getTypeLevel(16)){
echo "<td class=\"none\">?</td>"; echo "<td class=\"none\">?</td>";
}else{ }else{
@@ -45,6 +67,7 @@ if ($units[$y]['sort_type']==3){
} }
} }
} }
}
echo "</tr></tbody>"; echo "</tr></tbody>";
echo ' echo '
<tbody class="infos"> <tbody class="infos">
@@ -66,7 +89,7 @@ if ($units[$y]['sort_type']==3){
}else{ }else{
echo "<table class=\"troop_details\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><td class=\"role\"> echo "<table class=\"troop_details\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><td class=\"role\">
<a>village of the elders</a></td> <a>village of the elders</a></td>
<td colspan=\"10\">"; <td colspan=\"$colspan\">";
echo "<a>Taskmaster's troops</a>"; echo "<a>Taskmaster's troops</a>";
echo "</td></tr></thead><tbody class=\"units\">"; echo "</td></tr></thead><tbody class=\"units\">";
$tribe = $session->tribe; $tribe = $session->tribe;
@@ -77,7 +100,7 @@ if ($units[$y]['sort_type']==3){
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>";
} }
echo "</tr><tr><th>Troops</th>"; echo "</tr><tr><th>Troops</th>";
for($i=$start;$i<=($end);$i++) { for($i=1;$i<=10;$i++) {
echo "<td class=\"none\">?</td>"; echo "<td class=\"none\">?</td>";
} }
echo "</tr></tbody>"; echo "</tr></tbody>";
@@ -113,6 +136,7 @@ if ($units[$y]['sort_type']==3){
$to = $database->getMInfo($units[$y]['vref']); $to = $database->getMInfo($units[$y]['vref']);
if($units[$y]['from'] != 0){
?> ?>
<table class="troop_details" cellpadding="1" cellspacing="1"> <table class="troop_details" cellpadding="1" cellspacing="1">
<thead> <thead>
@@ -138,7 +162,6 @@ $to = $database->getMInfo($units[$y]['vref']);
<tr><th>Troops</th> <tr><th>Troops</th>
<?php <?php
for($i=1;$i<($units[$y]['t11'] != 0?12:11);$i++) { for($i=1;$i<($units[$y]['t11'] != 0?12:11);$i++) {
if($units[$y]['attack_type']!=2 or $units[$y]['from']==$village->wid){
if($units[$y]['t'.$i] == 0) { if($units[$y]['t'.$i] == 0) {
echo "<td class=\"none\">0</td>"; echo "<td class=\"none\">0</td>";
} }
@@ -146,19 +169,85 @@ $to = $database->getMInfo($units[$y]['vref']);
echo "<td>"; echo "<td>";
echo $units[$y]['t'.$i]."</td>"; echo $units[$y]['t'.$i]."</td>";
} }
}
?>
</tr>
<?php
$totalres = $res['wood']+$res['clay']+$res['iron']+$res['crop'];
if($units[$y]['attack_type']!=2 and $units[$y]['attack_type']!=1 and $totalres != ""){?>
<tr><th>Bounty</th>
<td colspan="<?php if($units[$y]['t11'] == 0) {echo"10";}else{echo"11";}?>">
<?php
$totalcarry = $units[$y]['t1']*${'u'.$start.''}['cap']+$units[$y]['t2']*${'u'.($start+1).''}['cap']+$units[$y]['t3']*${'u'.($start+2).''}['cap']+$units[$y]['t4']*${'u'.($start+3).''}['cap']+$units[$y]['t5']*${'u'.($start+4).''}['cap']+$units[$y]['t6']*${'u'.($start+5).''}['cap']+$units[$y]['t7']*${'u'.($start+6).''}['cap']+$units[$y]['t8']*${'u'.($start+7).''}['cap']+$units[$y]['t9']*${'u'.($start+8).''}['cap']+$units[$y]['t10']*${'u'.($start+9).''}['cap'];
echo "<div class=\"in small\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".$res['wood']."<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$res['clay']."<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$res['iron']."<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$res['crop']."</div>";
echo "<div class=\"in small\"><img class=\"car\" src=\"gpack/travian_default/img/a/car.gif\" alt=\"carry\" title=\"carry\"/>".$totalres."/".$totalcarry."</div>";
?>
</tr>
<?php } ?>
<tbody class="infos">
<tr>
<th>Arrival</th>
<td colspan="<?php if($units[$y]['t11'] == 0) {echo"10";}else{echo"11";}?>">
<?php
echo "<div class=\"in small\"><span id=timer".$timer.">".$generator->getTimeFormat($units[$y]['endtime']-time())."</span> h</div>";
$datetime = $generator->procMtime($units[$y]['endtime']);
echo "<div class=\"at small\">";
if($datetime[0] != "today") {
echo "on ".$datetime[0]." ";
}
echo "at ".$datetime[1]."</div>";
?>
</div>
</td>
</tr>
</tbody>
</table>
<?php
}else{ }else{
echo "<td class=\"none\">?</td>"; ?>
<table class="troop_details" cellpadding="1" cellspacing="1">
<thead>
<tr>
<td class="role"><a>?</a></td>
<td colspan="<?php if($units[$y]['t11'] != 0) {echo"11";}else{echo"10";}?>"><a href="karte.php?d=<?php echo $to['wref']."&c=".$generator->getMapCheck($to['wref']); ?>"><?php echo "Returning to ".$to['name']; ?></a></td>
</tr>
</thead>
<tbody class="units">
<?php
$tribe = $session->tribe;
$start = ($tribe-1)*10+1;
$end = ($tribe*10);
echo "<tr><th>&nbsp;</th>";
for($i=$start;$i<=($end);$i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
}
if($units[$y]['t11'] != 0) {
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
}
?>
</tr>
<tr><th>Troops</th>
<?php
for($i=1;$i<($units[$y]['t11'] != 0?12:11);$i++) {
if($units[$y]['t'.$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>";
echo $units[$y]['t'.$i]."</td>";
} }
} }
?> ?>
</tr> </tr>
<?php <?php
if($units[$y]['attack_type']!=2 and $units[$y]['attack_type']!=1){?> $totalres = $res['wood']+$res['clay']+$res['iron']+$res['crop'];
if($units[$y]['attack_type']!=2 and $units[$y]['attack_type']!=1 and $totalres != ""){?>
<tr><th>Bounty</th> <tr><th>Bounty</th>
<td colspan="<?php if($units[$y]['t11'] == 0) {echo"10";}else{echo"11";}?>"> <td colspan="<?php if($units[$y]['t11'] == 0) {echo"10";}else{echo"11";}?>">
<?php <?php
$totalres = $res['wood']+$res['clay']+$res['iron']+$res['crop'];
$totalcarry = $units[$y]['t1']*${'u'.$start.''}['cap']+$units[$y]['t2']*${'u'.($start+1).''}['cap']+$units[$y]['t3']*${'u'.($start+2).''}['cap']+$units[$y]['t4']*${'u'.($start+3).''}['cap']+$units[$y]['t5']*${'u'.($start+4).''}['cap']+$units[$y]['t6']*${'u'.($start+5).''}['cap']+$units[$y]['t7']*${'u'.($start+6).''}['cap']+$units[$y]['t8']*${'u'.($start+7).''}['cap']+$units[$y]['t9']*${'u'.($start+8).''}['cap']+$units[$y]['t10']*${'u'.($start+9).''}['cap']; $totalcarry = $units[$y]['t1']*${'u'.$start.''}['cap']+$units[$y]['t2']*${'u'.($start+1).''}['cap']+$units[$y]['t3']*${'u'.($start+2).''}['cap']+$units[$y]['t4']*${'u'.($start+3).''}['cap']+$units[$y]['t5']*${'u'.($start+4).''}['cap']+$units[$y]['t6']*${'u'.($start+5).''}['cap']+$units[$y]['t7']*${'u'.($start+6).''}['cap']+$units[$y]['t8']*${'u'.($start+7).''}['cap']+$units[$y]['t9']*${'u'.($start+8).''}['cap']+$units[$y]['t10']*${'u'.($start+9).''}['cap'];
echo "<div class=\"in small\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".$res['wood']."<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$res['clay']."<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$res['iron']."<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$res['crop']."</div>"; echo "<div class=\"in small\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".$res['wood']."<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".$res['clay']."<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".$res['iron']."<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".$res['crop']."</div>";
echo "<div class=\"in small\"><img class=\"car\" src=\"gpack/travian_default/img/a/car.gif\" alt=\"carry\" title=\"carry\"/>".$totalres."/".$totalcarry."</div>"; echo "<div class=\"in small\"><img class=\"car\" src=\"gpack/travian_default/img/a/car.gif\" alt=\"carry\" title=\"carry\"/>".$totalres."/".$totalcarry."</div>";
@@ -186,7 +275,7 @@ $to = $database->getMInfo($units[$y]['vref']);
</table> </table>
<?php <?php
} }
}
} }
+8 -3
View File
@@ -166,14 +166,16 @@ function testSum() {
<input type="hidden" name="id" value="<?php echo $id; ?>" /> <input type="hidden" name="id" value="<?php echo $id; ?>" />
<input type="hidden" name="ft" value="mk3" /> <input type="hidden" name="ft" value="mk3" />
<input type="hidden" name="t" value="3" /> <input type="hidden" name="t" value="3" />
<?php
$wwvillage = $database->getResourceLevel($village->wid);
if($wwvillage['f99t']!=40){
?>
<table id="npc" cellpadding="1" cellspacing="1"> <table id="npc" cellpadding="1" cellspacing="1">
<thead> <thead>
<tr> <tr>
<th colspan="5">NPC Trade</th> <th colspan="5">NPC Trade</th>
</tr> </tr>
<tr> <tr>
<td class="all"> <td class="all">
<a href="javascript:fillup(0);"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /></a> <a href="javascript:fillup(0);"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /></a>
<span id="org0"><?php echo floor($village->awood); ?></span> <span id="org0"><?php echo floor($village->awood); ?></span>
@@ -255,5 +257,8 @@ function testSum() {
testSum(); testSum();
</script> </script>
<?php } ?> <?php }else{ ?>
</br></br>
<?php echo "You can't use NPC trade in WW village.";
}} ?>
</div> </div>
+7 -6
View File
@@ -10,7 +10,8 @@
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ## ## ##
################################################################################# #################################################################################
$loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0;
$doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0;
?> ?>
<div id="build" class="gid40"><a href="#" onClick="return Popup(5,4);" class="build_logo"> <div id="build" class="gid40"><a href="#" onClick="return Popup(5,4);" class="build_logo">
@@ -29,7 +30,7 @@ echo 'You need to have World Wonder level 1 to be able to change its name.
<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>'; <center><br />World Wonder name: <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
} else if($village->resarray['f99'] > 0 and $village->resarray['f99'] < 11) { } else if($village->resarray['f99'] > 0 and $village->resarray['f99'] < 11) {
echo '<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>'; echo '<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
} else if ($village->resarray['f99'] < 0){ } else if ($village->resarray['f99'] > 10){
echo 'You can not change the name of the World Wonder after level 10. echo 'You can not change the name of the World Wonder after level 10.
<center><br />World Wonder name: <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>'; <center><br />World Wonder name: <input class="text" name="wwname" id="wwname" disabled="disabled" value="'.$wwname.'" maxlength="20"></center><p class="btn"><input type="image" value="" tabindex="9" name="s1" disabled="disabled" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>';
}?> }?>
@@ -46,9 +47,9 @@ if($village->resarray['f99'] == 100) {
echo "<p><span class=\"none\">Building already at max level</span></p>"; echo "<p><span class=\"none\">Building already at max level</span></p>";
} }
else { else {
$uprequire = $building->resourceRequired($id,$village->resarray['f99t']); $uprequire = $building->resourceRequired($id,$village->resarray['f99t'],($loopsame > 0 ? 2:1)+$doublebuild);
?> ?>
<p id="contract"><b>Costs</b> for upgrading to level <?php echo $village->resarray['f99']+1; ?>:<br /> <p id="contract"><b>Costs</b> for upgrading to level <?php echo $village->resarray['f99']+1+$loopsame+$doublebuild; ?>:<br />
<img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><span class="little_res"><?php echo $uprequire['wood']; ?></span> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><span class="little_res"><?php echo $uprequire['clay']; ?></span> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><span class="little_res"><?php echo $uprequire['iron']; ?></span> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><span class="little_res"><?php echo $uprequire['crop']; ?></span> | <img class="r5" src="img/x.gif" alt="Crop consumption" title="Crop consumption" /><?php echo $uprequire['pop']; ?> | <img class="clock" src="img/x.gif" alt="duration" title="duration" /><?php echo $generator->getTimeFormat($uprequire['time']); <img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><span class="little_res"><?php echo $uprequire['wood']; ?></span> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><span class="little_res"><?php echo $uprequire['clay']; ?></span> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><span class="little_res"><?php echo $uprequire['iron']; ?></span> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><span class="little_res"><?php echo $uprequire['crop']; ?></span> | <img class="r5" src="img/x.gif" alt="Crop consumption" title="Crop consumption" /><?php echo $uprequire['pop']; ?> | <img class="clock" src="img/x.gif" alt="duration" title="duration" /><?php echo $generator->getTimeFormat($uprequire['time']);
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
echo "|<a href=\"build.php?gid=17&t=3&r1=".$uprequire['wood']."&r2=".$uprequire['clay']."&r3=".$uprequire['iron']."&r4=".$uprequire['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>"; echo "|<a href=\"build.php?gid=17&t=3&r1=".$uprequire['wood']."&r2=".$uprequire['clay']."&r3=".$uprequire['iron']."&r4=".$uprequire['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
@@ -83,7 +84,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
else { else {
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">Upgrade to level "; echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">Upgrade to level ";
} }
echo $village->resarray['f99']+1; echo $village->resarray['f99']+1+$loopsame+$doublebuild;
echo ".</a>"; echo ".</a>";
} }
else if($bindicate == 9) { else if($bindicate == 9) {
@@ -96,7 +97,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
else { else {
echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">Upgrade to level "; echo "<a class=\"build\" href=\"dorf2.php?a=$id&c=$session->checker\">Upgrade to level ";
} }
echo $village->resarray['f99']+1; echo $village->resarray['f99']+1+$loopsame+$doublebuild;
echo ".</a> <span class=\"none\">(waiting loop)</span> "; echo ".</a> <span class=\"none\">(waiting loop)</span> ";
} }
} }
-10
View File
@@ -29,16 +29,6 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<?php <?php
if($_GET['buildingFinish'] == 1 AND $session->gold >= 2) {
if($session->access!=BANNED){
$gold=$database->getUserField($_SESSION['username'],'gold','username');
$gold-=2;
$database->updateUserField($_SESSION['username'],'gold',$gold,0);
}else{
header("Location: banned.php");
}
}
if(!isset($timer)) { if(!isset($timer)) {
$timer = 1; $timer = 1;
} }
+1 -3
View File
@@ -43,11 +43,9 @@ $done1 = "nothing has been done";
} }
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl"); include("Templates/Plus/3.tpl");
}else{ }else{
+1 -3
View File
@@ -43,11 +43,9 @@ $done1 = "nothing has been done";
} }
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl"); include("Templates/Plus/3.tpl");
}else{ }else{
+1 -3
View File
@@ -43,11 +43,9 @@ $done1 = "nothing has been done";
} }
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl"); include("Templates/Plus/3.tpl");
}else{ }else{
+1 -3
View File
@@ -43,11 +43,9 @@ $done1 = "&nbsp;&nbsp; Nothing has been Completed";
} }
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl"); include("Templates/Plus/3.tpl");
}else{ }else{
+1 -3
View File
@@ -44,11 +44,9 @@ $done1 = "nothing has been done";
} }
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl"); include("Templates/Plus/3.tpl");
}else{ }else{
+1 -3
View File
@@ -43,11 +43,9 @@ $done1 = "nothing has been done";
} }
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl"); include("Templates/Plus/3.tpl");
}else{ }else{
+13
View File
@@ -104,6 +104,12 @@ $tocoor = $database->getCoor($enforce['vref']);
<td class="line-last large"><img class="unit u6" src="img/x.gif" title="Equites Caesaris" alt="Equites Caesaris"> <input class="text" <?php if ($enforce['u6']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u6']; ?>" maxlength="6" type="text"> <td class="line-last large"><img class="unit u6" src="img/x.gif" title="Equites Caesaris" alt="Equites Caesaris"> <input class="text" <?php if ($enforce['u6']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u6']; ?>" maxlength="6" type="text">
<?php <?php
echo"<span class=\"none\">(".$enforce['u6'].")</span></td>"; echo"<span class=\"none\">(".$enforce['u6'].")</span></td>";
if($enforce['hero']>0){
?>
<td class="line-last large"><img class="unit uhero" src="img/x.gif" title="Hero" alt="Hero"> <input class="text" name="hero" value="<?php echo $enforce['hero']; ?>" maxlength="6" type="text">
<?php
echo"<span class=\"none\">(".$enforce['hero'].")</span></td>";
}
?> ?>
<td class="line-last regular"></td> <td class="line-last regular"></td>
<td class="line-last column-last"></td> </tr> <td class="line-last column-last"></td> </tr>
@@ -130,6 +136,13 @@ $tocoor = $database->getCoor($enforce['vref']);
$speeds[] = ${'u'.$i}['speed']; $speeds[] = ${'u'.$i}['speed'];
} }
} }
}
if ($enforce['hero']>0){
$qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$from['owner']."";
$resulth = mysql_query($qh);
$hero_f=mysql_fetch_array($resulth);
$hero_unit=$hero_f['unit'];
$speeds[] = $GLOBALS['u'.$hero_unit]['speed'];
} }
$time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1);
+13
View File
@@ -105,6 +105,12 @@ $tocoor = $database->getCoor($enforce['vref']);
<td class="line-last large"><img class="unit u16" src="img/x.gif" title="Teutonic Knight" alt="Teutonic Knight"> <input class="text" <?php if ($enforce['u16']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u16']; ?>" maxlength="6" type="text"> <td class="line-last large"><img class="unit u16" src="img/x.gif" title="Teutonic Knight" alt="Teutonic Knight"> <input class="text" <?php if ($enforce['u16']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u16']; ?>" maxlength="6" type="text">
<?php <?php
echo"<span class=\"none\">(".$enforce['u16'].")</span></td>"; echo"<span class=\"none\">(".$enforce['u16'].")</span></td>";
if($enforce['hero']>0){
?>
<td class="line-last large"><img class="unit uhero" src="img/x.gif" title="Hero" alt="Hero"> <input class="text" name="t11" value="<?php echo $enforce['hero']; ?>" maxlength="6" type="text">
<?php
echo"<span class=\"none\">(".$enforce['hero'].")</span></td>";
}
?> ?>
<td class="line-last regular"></td> <td class="line-last regular"></td>
<td class="line-last column-last"></td> </tr> <td class="line-last column-last"></td> </tr>
@@ -132,6 +138,13 @@ $tocoor = $database->getCoor($enforce['vref']);
} }
} }
} }
if ($enforce['hero']>0){
$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'];
$speeds[] = $GLOBALS['u'.$hero_unit]['speed'];
}
$time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1);
?> ?>
+13
View File
@@ -104,6 +104,12 @@ $tocoor = $database->getCoor($enforce['vref']);
<td class="line-last large"><img class="unit u26" src="img/x.gif" title="Haeduan" alt="Haeduan"> <input class="text" <?php if ($enforce['u26']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u26']; ?>" maxlength="6" type="text"> <td class="line-last large"><img class="unit u26" src="img/x.gif" title="Haeduan" alt="Haeduan"> <input class="text" <?php if ($enforce['u26']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u26']; ?>" maxlength="6" type="text">
<?php <?php
echo"<span class=\"none\">(".$enforce['u26'].")</span></td>"; echo"<span class=\"none\">(".$enforce['u26'].")</span></td>";
if($enforce['hero']>0){
?>
<td class="line-last large"><img class="unit uhero" src="img/x.gif" title="Hero" alt="Hero"> <input class="text" name="hero" value="<?php echo $enforce['hero']; ?>" maxlength="6" type="text">
<?php
echo"<span class=\"none\">(".$enforce['hero'].")</span></td>";
}
?> ?>
<td class="line-last regular"></td> <td class="line-last regular"></td>
<td class="line-last column-last"></td> </tr> <td class="line-last column-last"></td> </tr>
@@ -130,6 +136,13 @@ $tocoor = $database->getCoor($enforce['vref']);
$speeds[] = ${'u'.$i}['speed']; $speeds[] = ${'u'.$i}['speed'];
} }
} }
}
if ($enforce['hero']>0){
$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'];
$speeds[] = $GLOBALS['u'.$hero_unit]['speed'];
} }
$time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1);
+13
View File
@@ -105,6 +105,12 @@ $tocoor = $database->getCoor($enforce['vref']);
<td class="line-last large"><img class="unit u36" src="img/x.gif" title="Teutonic Knight" alt="Teutonic Knight"> <input class="text" <?php if ($enforce['u16']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u16']; ?>" maxlength="6" type="text"> <td class="line-last large"><img class="unit u36" src="img/x.gif" title="Teutonic Knight" alt="Teutonic Knight"> <input class="text" <?php if ($enforce['u16']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u16']; ?>" maxlength="6" type="text">
<?php <?php
echo"<span class=\"none\">(".$enforce['u36'].")</span></td>"; echo"<span class=\"none\">(".$enforce['u36'].")</span></td>";
if($enforce['hero']>0){
?>
<td class="line-last large"><img class="unit uhero" src="img/x.gif" title="Hero" alt="Hero"> <input class="text" name="hero" value="<?php echo $enforce['hero']; ?>" maxlength="6" type="text">
<?php
echo"<span class=\"none\">(".$enforce['hero'].")</span></td>";
}
?> ?>
<td class="line-last regular"></td> <td class="line-last regular"></td>
<td class="line-last column-last"></td> </tr> <td class="line-last column-last"></td> </tr>
@@ -131,6 +137,13 @@ $tocoor = $database->getCoor($enforce['vref']);
$speeds[] = ${'u'.$i}['speed']; $speeds[] = ${'u'.$i}['speed'];
} }
} }
}
if ($enforce['hero']>0){
$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'];
$speeds[] = $GLOBALS['u'.$hero_unit]['speed'];
} }
$time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1);
@@ -103,6 +103,12 @@ $tocoor = $database->getCoor($enforce['vref']);
<td class="line-last large"><img class="unit u46" src="img/x.gif" title="Natarian Knight" alt="Natarian Knight"> <input class="text" <?php if ($enforce['u6']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u6']; ?>" maxlength="6" type="text"> <td class="line-last large"><img class="unit u46" src="img/x.gif" title="Natarian Knight" alt="Natarian Knight"> <input class="text" <?php if ($enforce['u6']<=0) {echo ' disabled="disabled"';}?> name="t6" value="<?php echo $enforce['u6']; ?>" maxlength="6" type="text">
<?php <?php
echo"<span class=\"none\">(".$enforce['u6'].")</span></td>"; echo"<span class=\"none\">(".$enforce['u6'].")</span></td>";
if($enforce['hero']>0){
?>
<td class="line-last large"><img class="unit uhero" src="img/x.gif" title="Hero" alt="Hero"> <input class="text" name="hero" value="<?php echo $enforce['hero']; ?>" maxlength="6" type="text">
<?php
echo"<span class=\"none\">(".$enforce['hero'].")</span></td>";
}
?> ?>
<td class="line-last regular"></td> <td class="line-last regular"></td>
<td class="line-last column-last"></td> </tr> <td class="line-last column-last"></td> </tr>
@@ -129,6 +135,13 @@ $tocoor = $database->getCoor($enforce['vref']);
$speeds[] = ${'u'.$i}['speed']; $speeds[] = ${'u'.$i}['speed'];
} }
} }
}
if ($enforce['hero']>0){
$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'];
$speeds[] = $GLOBALS['u'.$hero_unit]['speed'];
} }
$time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1);
+1 -1
View File
@@ -104,7 +104,7 @@ else if(isset($_GET['vill']) && isset($_GET['id'])) {
for($i=1;$i<=count($session->villages);++$i){echo' for($i=1;$i<=count($session->villages);++$i){echo'
<tr> <tr>
<td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td> <td class="dot '.(($_SESSION['wid'] == $returnVillageArray[$i-1]['wref'] ) ? 'hl':'').'">●</td>
<td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&id=".$_GET['id'])."&vill=".$_GET['vill'].'">'.$returnVillageArray[$i-1]['name'].'</a></td> <td class="link"><a href="?newdid='.$returnVillageArray[$i-1]['wref'].(($id>=19) ? "&id=".$id : "&id=".$_GET['id']).'">'.$returnVillageArray[$i-1]['name'].'</a></td>
<td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>'; <td class="aligned_coords"><div class="cox">('.$returnVillageArray[$i-1]['x'].'</div><div class="pi">|</div><div class="coy">'.$returnVillageArray[$i-1]['y'].')</div></td></tr>';
}}?> }}?>
</tbody> </tbody>
-13
View File
@@ -1,13 +0,0 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
<?php
echo CALCULATED_IN."&nbsp;<b>";
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
echo "</b>&nbsp;".MILISECS."<br />\n";
echo SERVER_TIME.'&nbsp;<span id="tp1" class="b">'.date('H:i:s').'</span>';
?>
</div>
</div>
</div>
+4
View File
@@ -28,6 +28,10 @@ define("SERVER_NAME","%SERVERNAME%");
// Defines when has server started. // Defines when has server started.
define("COMMENCE","%STARTTIME%"); define("COMMENCE","%STARTTIME%");
// ***** Server Start Date / Time
define("START_DATE", "%SSTARTDATE%");
define("START_TIME", "%SSTARTTIME%");
// ***** Language // ***** Language
// Choose your server language. // Choose your server language.
define("LANG","%LANG%"); define("LANG","%LANG%");
+2 -21
View File
@@ -452,24 +452,6 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%demolition` (
-- --
-- --------------------------------------------------------
--
-- Table structure for table `%prefix%destroy_log`
--
CREATE TABLE IF NOT EXISTS `%PREFIX%destroy_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`wid` int(10) unsigned NOT NULL,
`log` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `%prefix%destroy_log`
--
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
@@ -1349,9 +1331,8 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%vdata` (
`exp2` int(10) NOT NULL, `exp2` int(10) NOT NULL,
`exp3` int(10) NOT NULL, `exp3` int(10) NOT NULL,
`created` int(11) NOT NULL, `created` int(11) NOT NULL,
PRIMARY KEY (`wref`), PRIMARY KEY (`wref`)
KEY `wref` (`wref`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --
-- Dumping data for table `%prefix%vdata` -- Dumping data for table `%prefix%vdata`
+2
View File
@@ -36,6 +36,8 @@
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: install\include\constant.php"); $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: install\include\constant.php");
$text = file_get_contents("data/constant_format.tpl"); $text = file_get_contents("data/constant_format.tpl");
$text = preg_replace("'%SERVERNAME%'", $_POST['servername'], $text); $text = preg_replace("'%SERVERNAME%'", $_POST['servername'], $text);
$text = preg_replace("'%SSTARTDATE%'", $_POST['start_date'], $text);
$text = preg_replace("'%SSTARTTIME%'", $_POST['start_time'], $text);
$text = preg_replace("'%LANG%'", $_POST['lang'], $text); $text = preg_replace("'%LANG%'", $_POST['lang'], $text);
$text = preg_replace("'%SPEED%'", $_POST['speed'], $text); $text = preg_replace("'%SPEED%'", $_POST['speed'], $text);
$text = preg_replace("'%INCSPEED%'", $_POST['incspeed'], $text); $text = preg_replace("'%INCSPEED%'", $_POST['incspeed'], $text);
+6 -1
View File
@@ -240,7 +240,12 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
</select></td></tr> </select></td></tr>
</table> </table>
</p> </p>
<br />
<span class="f10 c">Server Start Settings</span>
<table>
<tr><td><span class="f9 c6">Start Date:</span></td><td width="140"><input type="text" name="start_date" id="start_date" value="<?php echo date('m/d/Y'); ?>"></td></tr>
<tr><td><span class="f9 c6">Start Time:</span></td><td width="140"><input type="text" name="start_time" id="start_time" value="<?php echo date('H:i'); ?>"></td></tr>
</table>
<center> <center>
<input type="submit" name="Submit" id="Submit" value="Submit"> <input type="submit" name="Submit" id="Submit" value="Submit">
+218 -1
View File
@@ -64,10 +64,179 @@ else
?> ?>
<h5><img class="img_u04" src="img/x.gif" alt="login" /></h5> <h5><img class="img_u04" src="img/x.gif" alt="login" /></h5>
<p><?php echo COOKIES; ?></p> <p><?php echo COOKIES; ?></p>
<?php
if(START_DATE > date('m/d/Y')){
?>
<br/><center><big>Server will start in: </big></center>
<script language="JavaScript">
TargetDate = "<?php echo START_DATE; ?> <?php echo START_TIME; ?>";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%H%%:%%M%%:%%S%%";
FinishMessage = "START NOW";
function calcage(secs, num1, num2) {
s = ((Math.floor(secs/num1))%num2).toString();
if (LeadingZero && s.length < 2)
s = "0" + s;
return "" + s + "";
}
function CountBack(secs) {
if (secs < 0) {
document.getElementById("cntdwn").innerHTML = FinishMessage;
return;
}
DisplayStr = DisplayFormat.replace(/%%D%%/g, calcage(secs,86400,100000));
DisplayStr = DisplayStr.replace(/%%H%%/g, calcage(secs,3600,24));
DisplayStr = DisplayStr.replace(/%%M%%/g, calcage(secs,60,60));
DisplayStr = DisplayStr.replace(/%%S%%/g, calcage(secs,1,60));
document.getElementById("cntdwn").innerHTML = DisplayStr;
if (CountActive)
setTimeout("CountBack(" + (secs+CountStepper) + ")", SetTimeOutPeriod);
}
function putspan(backcolor, forecolor) {
document.write("<div class='activation_time' id='cntdwn'></div>");
}
if (typeof(BackColor)=="undefined")
BackColor = "white";
if (typeof(ForeColor)=="undefined")
ForeColor= "black";
if (typeof(TargetDate)=="undefined")
TargetDate = "12/31/2020 5:00 AM";
if (typeof(DisplayFormat)=="undefined")
DisplayFormat = "%%H%%:%%M%%:%%S%%";
if (typeof(CountActive)=="undefined")
CountActive = true;
if (typeof(FinishMessage)=="undefined")
FinishMessage = "";
if (typeof(CountStepper)!="number")
CountStepper = -1;
if (typeof(LeadingZero)=="undefined")
LeadingZero = true;
CountStepper = Math.ceil(CountStepper);
if (CountStepper == 0)
CountActive = false;
var SetTimeOutPeriod = (Math.abs(CountStepper)-1)*1000 + 990;
putspan(BackColor, ForeColor);
var dthen = new Date(TargetDate);
var dnow = new Date();
if(CountStepper>0)
ddiff = new Date(dnow-dthen);
else
ddiff = new Date(dthen-dnow);
gsecs = Math.floor(ddiff.valueOf()/1000);
CountBack(gsecs);
</script>
<?php
}elseif(START_DATE == date('m/d/Y')){
if(START_TIME > date('H:i')){
?>
<br/><center><big>Server will start in: </big></center>
<script language="JavaScript">
TargetDate = "<?php echo START_DATE; ?> <?php echo START_TIME; ?>";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%H%%:%%M%%:%%S%%";
FinishMessage = "START NOW";
function calcage(secs, num1, num2) {
s = ((Math.floor(secs/num1))%num2).toString();
if (LeadingZero && s.length < 2)
s = "0" + s;
return "" + s + "";
}
function CountBack(secs) {
if (secs < 0) {
document.getElementById("cntdwn").innerHTML = FinishMessage;
return;
}
DisplayStr = DisplayFormat.replace(/%%D%%/g, calcage(secs,86400,100000));
DisplayStr = DisplayStr.replace(/%%H%%/g, calcage(secs,3600,24));
DisplayStr = DisplayStr.replace(/%%M%%/g, calcage(secs,60,60));
DisplayStr = DisplayStr.replace(/%%S%%/g, calcage(secs,1,60));
document.getElementById("cntdwn").innerHTML = DisplayStr;
if (CountActive)
setTimeout("CountBack(" + (secs+CountStepper) + ")", SetTimeOutPeriod);
}
function putspan(backcolor, forecolor) {
document.write("<div class='activation_time' id='cntdwn'></div>");
}
if (typeof(BackColor)=="undefined")
BackColor = "white";
if (typeof(ForeColor)=="undefined")
ForeColor= "black";
if (typeof(TargetDate)=="undefined")
TargetDate = "12/31/2020 5:00 AM";
if (typeof(DisplayFormat)=="undefined")
DisplayFormat = "%%H%%:%%M%%:%%S%%";
if (typeof(CountActive)=="undefined")
CountActive = true;
if (typeof(FinishMessage)=="undefined")
FinishMessage = "";
if (typeof(CountStepper)!="number")
CountStepper = -1;
if (typeof(LeadingZero)=="undefined")
LeadingZero = true;
CountStepper = Math.ceil(CountStepper);
if (CountStepper == 0)
CountActive = false;
var SetTimeOutPeriod = (Math.abs(CountStepper)-1)*1000 + 990;
putspan(BackColor, ForeColor);
var dthen = new Date(TargetDate);
var dnow = new Date();
if(CountStepper>0)
ddiff = new Date(dnow-dthen);
else
ddiff = new Date(dthen-dnow);
gsecs = Math.floor(ddiff.valueOf()/1000);
CountBack(gsecs);
</script>
<?php
}elseif(START_TIME <= date('H:i')) {
?>
<form method="post" name="snd" action="login.php"> <form method="post" name="snd" action="login.php">
<input type="hidden" name="ft" value="a4" /> <input type="hidden" name="ft" value="a4" />
<script type="text/javascript">
Element.implement({
//imgid: falls zu dem link ein pfeil geh?rt kann dieser "auf/zugeklappt" werden
showOrHide: function(imgid) {
//einblenden
if (this.getStyle('display') == 'none')
{
if (imgid != '')
{
$(imgid).className = 'open';
}
}
//ausblenden
else
{
if (imgid != '')
{
$(imgid).className = 'close';
}
}
this.toggleClass('hide');
}
});
</script>
<table cellpadding="1" cellspacing="1" id="login_form"> <table cellpadding="1" cellspacing="1" id="login_form">
<tbody> <tbody>
<tr class="top"> <tr class="top">
@@ -89,6 +258,54 @@ else
</form> </form>
<?php <?php
} }
}else{ ?>
<form method="post" name="snd" action="login.php">
<input type="hidden" name="ft" value="a4" />
<script type="text/javascript">
Element.implement({
//imgid: falls zu dem link ein pfeil geh?rt kann dieser "auf/zugeklappt" werden
showOrHide: function(imgid) {
//einblenden
if (this.getStyle('display') == 'none')
{
if (imgid != '')
{
$(imgid).className = 'open';
}
}
//ausblenden
else
{
if (imgid != '')
{
$(imgid).className = 'close';
}
}
this.toggleClass('hide');
}
});
</script>
<table cellpadding="1" cellspacing="1" id="login_form">
<tbody>
<tr class="top">
<th><?php echo NAME; ?></th>
<td><input class="text" type="text" name="user" value="<?php echo $form->getDiff("user",$_COOKIE['COOKUSR']); ?>" maxlength="15" autocomplete='off' /> <span class="error"> <?php echo $form->getError("user"); ?></span></td>
</tr>
<tr class="btm">
<th><?php echo PASSWORD; ?></th>
<td><input class="text" type="password" name="pw" value="<?php echo $form->getValue("pw");?>" maxlength="20" autocomplete='off' /> <span class="error"><?php echo $form->getError("pw"); ?></span></td>
</tr>
</tbody>
</table>
<p class="btn">
<!--<input type="hidden" name="e1d9d0c" value="" />-->
<input type="image" value="login" name="s1" onclick="xy();" id="btn_login" class="dynamic_img" src="img/x.gif" alt="login button" />
</p>
</form>
<?php }
}
if ($form->getError("pw") == LOGIN_PW_ERROR) { if ($form->getError("pw") == LOGIN_PW_ERROR) {
echo "<p class=\"error_box\"> echo "<p class=\"error_box\">
<span class=\"error\">".PW_FORGOTTEN."</span><br> <span class=\"error\">".PW_FORGOTTEN."</span><br>