diff --git a/Admin/Templates/Newmessage.tpl b/Admin/Templates/Newmessage.tpl index 76b50512..38a4fa97 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 381c2ae6..61a5a7e2 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 a77bc609..f22dd2d5 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 9d9b4292..a09fcbaa 100644 --- a/Admin/Templates/village.tpl +++ b/Admin/Templates/village.tpl @@ -76,7 +76,7 @@ if(isset($id)) - +
diff --git a/a2b.php b/a2b.php index abd94eba..498f8170 100644 --- a/a2b.php +++ b/a2b.php @@ -90,7 +90,7 @@ if(isset($_GET['o'])) { - + +?>lang/en/compact.css?f4b7e" rel="stylesheet" type="text/css" /> gpack == null || GP_ENABLE == false) { diff --git a/a2b2.php b/a2b2.php index c77775ab..c29c97ee 100644 --- a/a2b2.php +++ b/a2b2.php @@ -36,10 +36,10 @@ $automation->isWinner(); - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/activate.php b/activate.php index f26a39c1..723f057e 100644 --- a/activate.php +++ b/activate.php @@ -23,9 +23,9 @@ include('GameEngine/Account.php'); - + - + diff --git a/allianz.php b/allianz.php index fcce6fc6..fe3e8a36 100644 --- a/allianz.php +++ b/allianz.php @@ -103,7 +103,7 @@ if(isset($_GET['aid']) or isset($_GET['fid']) or isset($_GET['fid2']) or $sessio - + +?>lang/en/compact.css?f4b7e" rel="stylesheet" type="text/css" /> gpack == null || GP_ENABLE == false) { diff --git a/anmelden.php b/anmelden.php index a96b519f..7f66ef28 100644 --- a/anmelden.php +++ b/anmelden.php @@ -24,9 +24,9 @@ $invited=(isset($_GET['uid'])) ? filter_var($_GET['uid'], FILTER_SANITIZE_NUMBER - + - + diff --git a/banned.php b/banned.php index ae6e932b..120005df 100644 --- a/banned.php +++ b/banned.php @@ -25,9 +25,9 @@ if($session->access == BANNED){ - + - + gpack == null || GP_ENABLE == false) { diff --git a/berichte.php b/berichte.php index 5a9adec2..ab63f6ba 100644 --- a/berichte.php +++ b/berichte.php @@ -42,10 +42,10 @@ if(isset($_GET['t'])) { - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/build.php b/build.php index 776772d3..b45190a7 100644 --- a/build.php +++ b/build.php @@ -299,10 +299,10 @@ $automation->isWinner(); - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/create_account.php b/create_account.php index 57b53084..9ab1e2a3 100644 --- a/create_account.php +++ b/create_account.php @@ -46,9 +46,9 @@ $start = $generator->pageLoadTimeStart(); - + - + gpack == null || GP_ENABLE == false) { diff --git a/crop_finder.php b/crop_finder.php index 349525ce..e4262a3a 100644 --- a/crop_finder.php +++ b/crop_finder.php @@ -42,7 +42,7 @@ - + +?>lang/en/compact.css?f4b7e" rel="stylesheet" type="text/css" /> gpack == null || GP_ENABLE == false) { diff --git a/dorf1.php b/dorf1.php index 5f2e7fb8..6e40cff9 100644 --- a/dorf1.php +++ b/dorf1.php @@ -34,9 +34,9 @@ if(isset($_GET['newdid'])) { - + - + gpack == null || GP_ENABLE == false) { diff --git a/dorf2.php b/dorf2.php index 62c37879..3c5075c8 100644 --- a/dorf2.php +++ b/dorf2.php @@ -32,10 +32,10 @@ $building->procBuild($_GET); - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/dorf3.php b/dorf3.php index 36831b01..3902f191 100644 --- a/dorf3.php +++ b/dorf3.php @@ -37,10 +37,10 @@ if(isset($_GET['newdid'])) { - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/gpack/travian_default/lang/en/b/zurueck.html b/gpack/travian_default/lang/en/b/zurueck.html index a2623677..e1197f90 100644 --- a/gpack/travian_default/lang/en/b/zurueck.html +++ b/gpack/travian_default/lang/en/b/zurueck.html @@ -8,9 +8,9 @@ - + - + diff --git a/gpack/travian_default/lang/en/compact.css b/gpack/travian_default/lang/en/compact.css index 4ebcdbe6..5dd9fa9e 100644 --- a/gpack/travian_default/lang/en/compact.css +++ b/gpack/travian_default/lang/en/compact.css @@ -212,9 +212,6 @@ div.popup_map div#drag { div.popup_map div#drag2 { cursor:pointer; height: 20px; - left: 300%; - position: absolute; - top: 100%; width: 20px; z-index: 2; } @@ -9073,3 +9070,7 @@ td.wm_getippt { input.cancel{width:12px;height:12px;background-image:url(../../img/a/del.gif);} input.accept{width:12px;height:12px;background-image:url(../../img/a/acc.gif);} +#Frame { + top: 0; + z-index: 1000; +} \ No newline at end of file diff --git a/gpack/travian_t4/lang/en/b/zurueck.html b/gpack/travian_t4/lang/en/b/zurueck.html index a2623677..e1197f90 100644 --- a/gpack/travian_t4/lang/en/b/zurueck.html +++ b/gpack/travian_t4/lang/en/b/zurueck.html @@ -8,9 +8,9 @@ - + - + diff --git a/gpack/travian_t4/lang/en/compact.css b/gpack/travian_t4/lang/en/compact.css index 3440b355..427e1d66 100644 --- a/gpack/travian_t4/lang/en/compact.css +++ b/gpack/travian_t4/lang/en/compact.css @@ -212,9 +212,6 @@ div.popup_map div#drag { div.popup_map div#drag2 { cursor:pointer; height: 20px; - left: 1050px; - position: absolute; - top: -525px; width: 20px; z-index: 2; } @@ -9029,3 +9026,7 @@ td.wm_getippt { input.cancel{width:12px;height:12px;background-image:url(../../img/a/del.gif);} input.accept{width:12px;height:12px;background-image:url(../../img/a/acc.gif);} +#Frame { + top: 0; + z-index: 1000; +} \ No newline at end of file diff --git a/img/admin/b/zurueck.html b/img/admin/b/zurueck.html index a2623677..e1197f90 100644 --- a/img/admin/b/zurueck.html +++ b/img/admin/b/zurueck.html @@ -8,9 +8,9 @@ - + - + diff --git a/install/index.php b/install/index.php index bc76888f..44f9b2ec 100644 --- a/install/index.php +++ b/install/index.php @@ -37,10 +37,10 @@ date_default_timezone_set($t_zone); - + - + diff --git a/karte.php b/karte.php index 2d65f409..3910f2ac 100644 --- a/karte.php +++ b/karte.php @@ -43,10 +43,10 @@ else{ - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/karte2.php b/karte2.php index fd33da5d..569959da 100644 --- a/karte2.php +++ b/karte2.php @@ -23,10 +23,10 @@ if($session->plus){ - + - + - + - + diff --git a/logout.php b/logout.php index 99d45fe0..3ced0b28 100644 --- a/logout.php +++ b/logout.php @@ -25,10 +25,10 @@ $start = $generator->pageLoadTimeStart(); - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/manual.php b/manual.php index 34992578..44e15467 100644 --- a/manual.php +++ b/manual.php @@ -24,9 +24,9 @@ include("GameEngine/config.php"); - + - + diff --git a/massmessage.php b/massmessage.php index 5a0f7482..c753d206 100644 --- a/massmessage.php +++ b/massmessage.php @@ -91,10 +91,10 @@ if (isset($_GET['send']) && isset($_GET['from'])) - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/nachrichten.php b/nachrichten.php index cfbdb42c..4d02c6cc 100644 --- a/nachrichten.php +++ b/nachrichten.php @@ -81,7 +81,7 @@ exit; - + gpack == null || GP_ENABLE == false) { echo " diff --git a/notification/index.php b/notification/index.php index ff329dae..a65698c1 100644 --- a/notification/index.php +++ b/notification/index.php @@ -32,7 +32,7 @@ if(T4_COMING==true){ - + - + - + gpack == null || GP_ENABLE == false) { diff --git a/password.php b/password.php index 450b342c..cb5956cb 100644 --- a/password.php +++ b/password.php @@ -35,9 +35,9 @@ if(!isset($_REQUEST['npw'])){ - + - + diff --git a/plus.php b/plus.php index ee58977e..c414594b 100644 --- a/plus.php +++ b/plus.php @@ -58,10 +58,10 @@ $automation->isWinner(); - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/plus1.php b/plus1.php index 62ff004d..06cbc986 100644 --- a/plus1.php +++ b/plus1.php @@ -23,10 +23,10 @@ else { - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/rules.php b/rules.php index 2ae05c85..0625fafb 100644 --- a/rules.php +++ b/rules.php @@ -31,10 +31,10 @@ if(isset($_GET['newdid'])) { - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/spieler.php b/spieler.php index 9cdd570e..fe82ba2b 100644 --- a/spieler.php +++ b/spieler.php @@ -46,10 +46,10 @@ $automation->isWinner(); - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/statistiken.php b/statistiken.php index 608fb81a..1a3ba627 100644 --- a/statistiken.php +++ b/statistiken.php @@ -65,10 +65,10 @@ if(isset($_GET['newdid'])) { - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/support.php b/support.php index 23c1f1e8..703a0733 100644 --- a/support.php +++ b/support.php @@ -33,9 +33,9 @@ $automation->isWinner(); - + - + diff --git a/sysmsg.php b/sysmsg.php index bbc2bf9b..ff3dc8f0 100644 --- a/sysmsg.php +++ b/sysmsg.php @@ -69,10 +69,10 @@ if (@isset($_POST['confirm'])) - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/unx.js b/unx.js index b292681f..d195a3ea 100644 --- a/unx.js +++ b/unx.js @@ -134,7 +134,11 @@ function Popup(i,j,sc){ if(typeof sc=='undefined'){sc='s';} pb=document.getElementById("ce"); if(pb!=null){ - var tc='
'+'Move'+''+'
'; + var + iframeHeight = 440, + iframeWidth = 412; + + var tc='
'+'Move'+''+'
'; pb.innerHTML=tc;uc(); } vc(); @@ -145,10 +149,13 @@ function PopupMap(i){ if(typeof sc=='undefined'){sc='s';} pb=document.getElementById("ce"); if(pb!=null){ + var + iframeHeight = 575, + iframeWidth = 1000; if(window.dlang== 'ar'){ - var tc=''; + var tc=''; }else{ - var tc=''; + var tc=''; } pb.innerHTML=tc;uc2(); } @@ -165,25 +172,36 @@ $$('.popup3')[0].grab(new Element('div',{'id':'drag'} function uc2(){ if($('drag')){return;} if(window.dlang== 'ar'){ - $$('.popup_map')[0].grab(new Element('div',{'id':'drag', "style": "width: 1000px;height: 10px;background-color: #fff0;position: absolute;cursor: move;"}),'top').makeDraggable({'handle':'drag'}); + //$$('.popup_map')[0].grab(new Element('div',{'id':'drag', "style": "width: 1000px;height: 10px;background-color: #fff0;position: absolute;cursor: move;"}),'top').makeDraggable({'handle':'drag'}); }else{ - $$('.popup_map')[0].grab(new Element('div',{'id':'drag'}),'top').makeDraggable({'handle':'drag'}); + //$$('.popup_map')[0].grab(new Element('div',{'id':'drag'}),'top').makeDraggable({'handle':'drag'}); } if($$('body')[0].getStyle('direction').toLowerCase()=='rtl'){ $$('.popup_map')[0].setStyle('direction','rtl').getParent().setStyle('direction','ltr'); } } + function vc(){ var frm = document.getElementById("Frame"); if (!frm || frm == null || typeof(frm) == 'undefined') { frm = document.getElementById("ce"); } - if(gb()<700||ib()<700){ - frm.style.position='absolute';wc=true; - } else{ - frm.style.position='fixed';wc=false; - } + //if(gb()<700||ib()<700){ + frm.style.position = 'absolute'; + wc=true; + //} else{ + //frm.style.position='fixed';wc=false; + //} } + +window.addEvent('resize', function(){ + $f = $$('#Frame'); + + if (typeof($f) != 'undefined' && typeof($f[0]) != 'undefined') { + $f[0].style.left = (Math.round((documentWidth() - $f[0].width) / 2)) + 'px'; + } +}); + function Close(){pb=document.getElementById("ce");if(pb!=null){pb.innerHTML='';} if(quest.anmstep!==false){quest.anmstep=false;} } @@ -850,3 +868,12 @@ function gmwd(){if(is_ff2&&document.getElementById("gmwi").offsetWidth<50){docum else{document.cookie="a3=1; expires=Wed, 1 Jan 2020 00:00:00 GMT";} } function gmc(){document.getElementById("gmw").style.display="none";document.cookie="a3=3; expires=Wed, 1 Jan 2020 00:00:00 GMT";} +function documentWidth() { + return Math.max( + document.documentElement.clientWidth, + document.body.scrollWidth, + document.documentElement.scrollWidth, + document.body.offsetWidth, + document.documentElement.offsetWidth + ); +} \ No newline at end of file diff --git a/version.php b/version.php index 20529679..dbba462c 100644 --- a/version.php +++ b/version.php @@ -35,10 +35,10 @@ $automation->isWinner(); - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/warsim.php b/warsim.php index f45769c9..1a1795cf 100644 --- a/warsim.php +++ b/warsim.php @@ -26,10 +26,10 @@ $battle->procSim($_POST); - + - + gpack == null || GP_ENABLE == false) { echo " diff --git a/winner.php b/winner.php index 5a129c6c..677758cc 100644 --- a/winner.php +++ b/winner.php @@ -166,10 +166,10 @@ $q = " - + - + gpack == null || GP_ENABLE == false) {