diff --git a/Admin/Templates/Newmessage.tpl b/Admin/Templates/Newmessage.tpl index 6dfc45a3..10c51082 100644 --- a/Admin/Templates/Newmessage.tpl +++ b/Admin/Templates/Newmessage.tpl @@ -18,7 +18,7 @@ if(isset($id)) $varray = $database->getProfileVillages($id); $varmedal = $database->getProfileMedal($id); ?> - + - + diff --git a/Admin/Templates/msg.tpl b/Admin/Templates/msg.tpl index 55a40342..7c01a081 100644 --- a/Admin/Templates/msg.tpl +++ b/Admin/Templates/msg.tpl @@ -13,7 +13,7 @@ $msg = $database->getMessage($_GET['nid'],3); if($msg) { ?> - + diff --git a/Admin/Templates/report.tpl b/Admin/Templates/report.tpl index e408217e..7186ee69 100644 --- a/Admin/Templates/report.tpl +++ b/Admin/Templates/report.tpl @@ -22,7 +22,7 @@ if($rep1) //$att = $database->getUserArray($rep1['uid'],1); ?> - +

Under Construction

@@ -36,7 +36,7 @@ if($rep1) if($rep) { ?> - + diff --git a/Admin/Templates/village.tpl b/Admin/Templates/village.tpl index 08f7f2ad..178c03fa 100644 --- a/Admin/Templates/village.tpl +++ b/Admin/Templates/village.tpl @@ -20,7 +20,7 @@ if(isset($id)) $type = $database->getVillageType($village['wref']); $fdata = $database->getResourceLevel($village['wref']); $units = $database->getUnit($village['wref']); - $abtech = $database->getABTech($id); // Armory/blacksmith level + $abtech = $database->getABTech($id); // Armory/blacksmith level if($type == 1){ $typ = array(3,3,3,9); } elseif($type == 2){ $typ = array(3,4,5,6); } elseif($type == 3){ $typ = array(4,4,4,6); } @@ -40,7 +40,7 @@ if(isset($id)) if(count($result) >0) { foreach($result as $row) - { + { $type = $row['type']; if($type==1) { $type = ' + 25%'; $wood+=1;} elseif($type==2) { $type = ' + 25%'; $wood+=1;} @@ -54,13 +54,13 @@ if(isset($id)) elseif($type==10){ $type = ' + 25%'; $crop+=1;} elseif($type==11){ $type = ' + 25%'; $crop+=1;} elseif($type==12){ $type = ' + 50%'; $crop+=2;} - } + } } $ocounter = array($wood,$clay,$iron,$crop); $production=$admin->calculateProduction($id,$user['id'],$user['b1'],$user['b2'],$user['b3'],$user['b4'],$fdata, $ocounter, $village['pop']); $refreshiconfrm = "../img/admin/refresh.png"; $refreshicon = ""; - + class MyGenerator { public function getMapCheck($wref) @@ -69,14 +69,14 @@ if(isset($id)) } }; $generator = new MyGenerator; - + if($village and $user) { include("search2.tpl"); ?> - +
@@ -249,7 +249,7 @@ if(isset($id)) "; - } + } } elseif($result ==0) { diff --git a/Templates/Manual/433.tpl b/Templates/Manual/433.tpl index 8b29bfbc..9143c221 100644 --- a/Templates/Manual/433.tpl +++ b/Templates/Manual/433.tpl @@ -1,6 +1,6 @@

Brewery

BreweryTasty mead is brewed in the brewery and later quaffed by the soldiers during the celebrations.

-These drinks make your soldiers braver and stronger in battles (1% per level). Unfortunately the chiefs power of persuasion is decreased and catapults can only do random hits. +These drinks make your soldiers braver and stronger in battles (1% per level). Unfortunately the chiefs� power of persuasion is decreased and catapults can only do random hits.

It can only be built by Teutons and only in their capital. It affects the whole empire.

Costs and construction time for level 1:
Lumber1460 | Clay930 | Iron1250 | Crop1740 | Crop consumption6 | duration2:13:20

Prerequisites
Granary Level 20, Rally Point Level 10

diff --git a/Templates/field.tpl b/Templates/field.tpl index 551dce63..45dedbde 100644 --- a/Templates/field.tpl +++ b/Templates/field.tpl @@ -1,4 +1,4 @@ -"101,33,28","165,32,28","224,46,28","46,63,28","138,74,28" $arrayVillage = $village->resarray; ?> -procResType($arrayVillage['f'.$i.'t'])." Level ".$arrayVillage['f'.$i]."\"/>\r\n"; } ?> @@ -23,7 +23,17 @@ for($i=1;$i<=18;$i++) {echo "
-getJobs($village->wid); +$activeFields = []; +if (count($jobs)) { + foreach ($jobs as $job) { + if ( $job['type'] <= 4 ) { + $activeFields[ $job['field'] ] = true; + } + } +} + for($i=1;$i<=18;$i++) { if($arrayVillage['f'.$i.'t'] != 0) { $text = ""; @@ -33,7 +43,7 @@ for($i=1;$i<=18;$i++) { case 3:$text = "Iron Mine Level";break; case 4:$text = "Cropland Level";break; } - echo "\"$text"; + echo "\"$text"; } } ?> diff --git a/a2b.php b/a2b.php index 9a833b81..a43d5638 100644 --- a/a2b.php +++ b/a2b.php @@ -106,7 +106,7 @@ echo GP_LOCATE; -?>lang/en/compact.css?f4b7g" rel="stylesheet" type="text/css" /> +?>lang/en/compact.css?f4b7h" rel="stylesheet" type="text/css" /> gpack == null || GP_ENABLE == false) { @@ -180,10 +180,10 @@ $p_ander = $database->getCoor($prisoner['from']); $p_to = array('x'=>$p_ander['x'], 'y'=>$p_ander['y']); $p_tribe = $database->getUserField($p_owner,"tribe",0); - + $p_speeds = array(); - - //find slowest unit. + + //find slowest unit. for($i=1;$i<=10;$i++){ if ($prisoner['t'.$i]){ if($prisoner['t'.$i] != '' && $prisoner['t'.$i] > 0){ @@ -193,7 +193,7 @@ } } } - + if ($prisoner['t11']>0){ $p_qh = "SELECT unit FROM ".TB_PREFIX."hero WHERE uid = ".(int) $p_owner." AND dead = 0"; $p_resulth = mysqli_query($GLOBALS['link'],$p_qh); @@ -201,7 +201,7 @@ $p_hero_unit=$p_hero_f['unit']; $p_speeds[] = $GLOBALS['u'.$p_hero_unit]['speed']; } - + $p_artefact = count($database->getOwnUniqueArtefactInfo2($p_owner,2,3,0)); $p_artefact1 = count($database->getOwnUniqueArtefactInfo2($prisoner['from'],2,1,1)); $p_artefact2 = count($database->getOwnUniqueArtefactInfo2($p_owner,2,2,0)); diff --git a/a2b2.php b/a2b2.php index 4f4da176..019be444 100644 --- a/a2b2.php +++ b/a2b2.php @@ -43,7 +43,7 @@ - + gpack == null || GP_ENABLE == false) { echo " diff --git a/activate.php b/activate.php index 0e0c5954..70780131 100644 --- a/activate.php +++ b/activate.php @@ -29,7 +29,7 @@ - + diff --git a/allianz.php b/allianz.php index d00ba1fa..803ade0f 100644 --- a/allianz.php +++ b/allianz.php @@ -120,7 +120,7 @@ echo GP_LOCATE; -?>lang/en/compact.css?f4b7g" rel="stylesheet" type="text/css" /> +?>lang/en/compact.css?f4b7h" rel="stylesheet" type="text/css" /> gpack == null || GP_ENABLE == false) { diff --git a/anmelden.php b/anmelden.php index 8d672ac1..1b714ff4 100644 --- a/anmelden.php +++ b/anmelden.php @@ -35,7 +35,7 @@ - + diff --git a/banned.php b/banned.php index 7ec31782..192f3ccc 100644 --- a/banned.php +++ b/banned.php @@ -31,7 +31,7 @@ - + gpack == null || GP_ENABLE == false) { diff --git a/berichte.php b/berichte.php index 46fcf6a5..855c0b7c 100644 --- a/berichte.php +++ b/berichte.php @@ -50,7 +50,7 @@ - + gpack == null || GP_ENABLE == false) { echo " diff --git a/build.php b/build.php index 29e19289..59bc0b9a 100644 --- a/build.php +++ b/build.php @@ -332,7 +332,7 @@ - + gpack == null || GP_ENABLE == false) { echo " @@ -402,7 +402,7 @@ $building->finishAll("build.php?gid=".$_GET['id']."&ty=".$_GET['ty']); exit; } - } + } } }else{ header("Location: ".$_SERVER['PHP_SELF']."?id=39"); diff --git a/create_account.php b/create_account.php index 598a30e9..a4879b3e 100644 --- a/create_account.php +++ b/create_account.php @@ -61,7 +61,7 @@ - + gpack == null || GP_ENABLE == false) { diff --git a/crop_finder.php b/crop_finder.php index e3a4fbc0..a755e077 100644 --- a/crop_finder.php +++ b/crop_finder.php @@ -58,7 +58,7 @@ echo GP_LOCATE; -?>lang/en/compact.css?f4b7g" rel="stylesheet" type="text/css" /> +?>lang/en/compact.css?f4b7h" rel="stylesheet" type="text/css" /> gpack == null || GP_ENABLE == false) { diff --git a/dorf1.php b/dorf1.php index c292b8a3..edf13c5c 100644 --- a/dorf1.php +++ b/dorf1.php @@ -41,7 +41,7 @@ - + gpack == null || GP_ENABLE == false) { diff --git a/dorf2.php b/dorf2.php index 99f9d3df..eac1fdff 100644 --- a/dorf2.php +++ b/dorf2.php @@ -18,7 +18,7 @@ if(isset($_GET['newdid'])) { $_SESSION['wid'] = $_GET['newdid']; - $database->query("UPDATE ".TB_PREFIX."users SET village_select=".$database->escape((int) $_GET['newdid'])." WHERE id=".$session->uid); + $database->query("UPDATE ".TB_PREFIX."users SET village_select=".$database->escape((int) $_GET['newdid'])." WHERE id=".$session->uid); header("Location: ".$_SERVER['PHP_SELF']); exit; }else{ @@ -42,7 +42,7 @@ - + gpack == null || GP_ENABLE == false) { echo " diff --git a/dorf3.php b/dorf3.php index f84b3d44..40a7b781 100644 --- a/dorf3.php +++ b/dorf3.php @@ -45,7 +45,7 @@ - + gpack == null || GP_ENABLE == false) { echo " diff --git a/gpack/travian_default/img/g/s/glvlm.gif b/gpack/travian_default/img/g/s/glvlm.gif index 6dec5842..e8ef604d 100644 Binary files a/gpack/travian_default/img/g/s/glvlm.gif and b/gpack/travian_default/img/g/s/glvlm.gif differ diff --git a/gpack/travian_default/img/g/s/lvl11_20_active.gif b/gpack/travian_default/img/g/s/lvl11_20_active.gif new file mode 100644 index 00000000..bb4f4770 Binary files /dev/null and b/gpack/travian_default/img/g/s/lvl11_20_active.gif differ diff --git a/gpack/travian_default/img/g/s/lvl1_10_active.gif b/gpack/travian_default/img/g/s/lvl1_10_active.gif new file mode 100644 index 00000000..79cab4aa Binary files /dev/null and b/gpack/travian_default/img/g/s/lvl1_10_active.gif differ diff --git a/gpack/travian_default/img/g/s/lvl21_30_active.gif b/gpack/travian_default/img/g/s/lvl21_30_active.gif new file mode 100644 index 00000000..f9a06d9f Binary files /dev/null and b/gpack/travian_default/img/g/s/lvl21_30_active.gif differ diff --git a/gpack/travian_default/lang/en/b/zurueck.html b/gpack/travian_default/lang/en/b/zurueck.html index 1b0dc904..01abebcc 100644 --- a/gpack/travian_default/lang/en/b/zurueck.html +++ b/gpack/travian_default/lang/en/b/zurueck.html @@ -10,10 +10,10 @@ - - - - + + + + @@ -42,13 +42,13 @@
Nothing here!

Nothing here!

We looked 404 times already but can't find anything
- +
newsbox 1


- +
newsbox 2
Dear players, @@ -81,7 +81,7 @@
newsbox 3
".round($row['loyalty'])."% $type