mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-20 10:11:00 +00:00
Merge branch 'TPLinux-master'
This commit is contained in:
@@ -35,7 +35,7 @@ class Automation {
|
|||||||
$isThere = mysql_num_rows($q);
|
$isThere = mysql_num_rows($q);
|
||||||
if($isThere > 0)
|
if($isThere > 0)
|
||||||
{
|
{
|
||||||
header('Location: /winner.php');
|
header('Location: winner.php');
|
||||||
}else{
|
}else{
|
||||||
## there is no winner
|
## there is no winner
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
## Version: 22.06.2015 ##
|
## Version: 22.06.2015 ##
|
||||||
## Filename Building.php ##
|
## Filename Building.php ##
|
||||||
## Developed by: Mr.php , Advocaite , brainiacX , yi12345 , Shadow , ronix ##
|
## Developed by: Mr.php , Advocaite , brainiacX , yi12345 , Shadow , ronix ##
|
||||||
## Fixed by: Shadow - STARVATION , HERO FIXED COMPL. ##
|
## Fixed by: Shadow - STARVATION , HERO FIXED COMPL., TPLinux ##
|
||||||
## Fixed by: InCube - double troops ##
|
## Fixed by: InCube - double troops ##
|
||||||
## License: TravianZ Project ##
|
## License: TravianZ Project ##
|
||||||
## Copyright: TravianZ (c) 2010-2015. All rights reserved. ##
|
## Copyright: TravianZ (c) 2010-2015. All rights reserved. ##
|
||||||
@@ -97,7 +97,7 @@ class Building {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(isset($get['buildingFinish']) && $session->plus) {
|
if(isset($get['buildingFinish']) && $session->plus) {
|
||||||
if($session->gold >= 2 && $session->sit == 0) {
|
if(intval($session->gold) >= 2 && $session->sit == 0) {
|
||||||
$this->finishAll();
|
$this->finishAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -278,7 +278,7 @@ class Building {
|
|||||||
return $build;
|
return $build;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function loadBuilding() {
|
public function loadBuilding() {
|
||||||
global $database,$village,$session;
|
global $database,$village,$session;
|
||||||
$this->buildArray = $database->getJobs($village->wid);
|
$this->buildArray = $database->getJobs($village->wid);
|
||||||
$this->allocated = count($this->buildArray);
|
$this->allocated = count($this->buildArray);
|
||||||
@@ -301,8 +301,11 @@ class Building {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// echo var_dump($this->buildArray);
|
||||||
$this->NewBuilding = true;
|
$this->NewBuilding = true;
|
||||||
}
|
}else{
|
||||||
|
$this->NewBuilding = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function removeBuilding($d) {
|
private function removeBuilding($d) {
|
||||||
|
|||||||
@@ -138,3 +138,21 @@ TienTN changes:
|
|||||||
I found out that unx.js handle a static map size(400x400).
|
I found out that unx.js handle a static map size(400x400).
|
||||||
So I fixed this with a m_c.world_max variable from mapview.tpl and changed the unx.js accordingly.
|
So I fixed this with a m_c.world_max variable from mapview.tpl and changed the unx.js accordingly.
|
||||||
7. Fix the constructor global variable missing in Session.php
|
7. Fix the constructor global variable missing in Session.php
|
||||||
|
|
||||||
|
|
||||||
|
TPLinux Changes:
|
||||||
|
1. Fix FinishAll with two gold issue/bug
|
||||||
|
2. Fix Reload crush issue after building construction finished
|
||||||
|
3. Fix in_array bug in show more buldings in WWV
|
||||||
|
4. Fix winner redirection
|
||||||
|
5. Fix winner WW image path
|
||||||
|
6. Convert '<?' To '<?php' in a2ab.php (Account transaction page)
|
||||||
|
7. Fixing ( Building shape not upgraded after Construct finish )
|
||||||
|
8. Change multihunter msg color to orange
|
||||||
|
9. Change fetch time to server speed if > 5
|
||||||
|
10. Fixing Quest not appears if press (play no tasks)
|
||||||
|
11. Fix the redirection from rally point when attack is finished
|
||||||
|
12. Remove Rally point advantage
|
||||||
|
13. Fix fullscreen map in rtl layout
|
||||||
|
14. Fix divesion by Zero bug in general statics
|
||||||
|
--
|
||||||
|
|||||||
@@ -40,9 +40,8 @@ if(SPEED == '1'){
|
|||||||
} else if(SPEED <= '5'){
|
} else if(SPEED <= '5'){
|
||||||
$skipp_time="7200";
|
$skipp_time="7200";
|
||||||
} else if(SPEED > '5'){
|
} else if(SPEED > '5'){
|
||||||
$skipp_time="3600";
|
$skipp_time= 3600 / SPEED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($qact)){
|
if (isset($qact)){
|
||||||
if ($qact == $_SESSION['qst']+1 && (($_SESSION['qst']>= 1 && $_SESSION['qst']<=30) || (time()-$_SESSION['qst_time']>=0 && ($_SESSION['qst'] >= 90 && $_SESSION['qst'] <=97))) || ($_SESSION['qst']== 0 && ($qact == "enter" || $qact == "skip")) || ($qact == "rank" && ($_SESSION['qst']== 4 || $_SESSION['qst']== 18)) || ($_SESSION['qst']== 7 && $qact == "coor") || ($_SESSION['qst']== 16 && $qact == "lumber") || ($_SESSION['qst']== 19 && $qact == 23) || ($_SESSION['qst']== 22 && $qact == 26) || ($_SESSION['qst']== 27 && $qact == "gold")) { //avoid hacking gold, resources or reward -- added by Ronix - Fixed by Pietro
|
if ($qact == $_SESSION['qst']+1 && (($_SESSION['qst']>= 1 && $_SESSION['qst']<=30) || (time()-$_SESSION['qst_time']>=0 && ($_SESSION['qst'] >= 90 && $_SESSION['qst'] <=97))) || ($_SESSION['qst']== 0 && ($qact == "enter" || $qact == "skip")) || ($qact == "rank" && ($_SESSION['qst']== 4 || $_SESSION['qst']== 18)) || ($_SESSION['qst']== 7 && $qact == "coor") || ($_SESSION['qst']== 16 && $qact == "lumber") || ($_SESSION['qst']== 19 && $qact == 23) || ($_SESSION['qst']== 22 && $qact == 26) || ($_SESSION['qst']== 27 && $qact == "gold")) { //avoid hacking gold, resources or reward -- added by Ronix - Fixed by Pietro
|
||||||
switch($qact) {
|
switch($qact) {
|
||||||
|
|||||||
@@ -171,14 +171,16 @@ $query = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE owner = ".$user."")
|
|||||||
while($villaggi_array = mysql_fetch_array($query)){
|
while($villaggi_array = mysql_fetch_array($query)){
|
||||||
|
|
||||||
//loop structure village
|
//loop structure village
|
||||||
$query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref']."");
|
$query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref']."");
|
||||||
$strutture= mysql_fetch_array($query1);
|
$strutture= mysql_fetch_array($query1);
|
||||||
|
if($strutture == false)
|
||||||
|
$strutture = [];
|
||||||
//search Castle in array structure village
|
//search Castle in array structure village
|
||||||
$test = in_array(26,$strutture);
|
$test = in_array(26,$strutture);
|
||||||
|
|
||||||
if ($test){
|
if ($test){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -297,7 +299,10 @@ while($villaggi_array = mysql_fetch_array($query)){
|
|||||||
$strutture= mysql_fetch_array($query1);
|
$strutture= mysql_fetch_array($query1);
|
||||||
|
|
||||||
//search Castle in array structure village
|
//search Castle in array structure village
|
||||||
$test = in_array(26,$strutture);
|
if($strutture !== false)
|
||||||
|
$test = in_array(26,$strutture);
|
||||||
|
else
|
||||||
|
$test = in_array(26,[]);
|
||||||
if ($test){
|
if ($test){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,11 +8,12 @@
|
|||||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
$building->loadBuilding();
|
||||||
?>
|
?>
|
||||||
|
<?php if($building->NewBuilding){ ?>
|
||||||
<table cellpadding="1" cellspacing="1" id="building_contract">
|
<table cellpadding="1" cellspacing="1" id="building_contract">
|
||||||
<thead><tr>
|
<thead><tr>
|
||||||
<th colspan="4"><?php echo BUILDING_UPGRADING;?>
|
<th colspan="4"><?php echo BUILDING_UPGRADING;?>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if($session->gold >= 2) {
|
if($session->gold >= 2) {
|
||||||
@@ -57,3 +58,8 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<script type="text/javascript">var bld=[{"stufe":1,"gid":"1","aid":"3"}]</script>
|
<script type="text/javascript">var bld=[{"stufe":1,"gid":"1","aid":"3"}]</script>
|
||||||
|
<?php }else{
|
||||||
|
$the_link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
||||||
|
header('Location: '. $the_link);
|
||||||
|
} ?>
|
||||||
|
|
||||||
|
|||||||
+81
-74
@@ -1,16 +1,16 @@
|
|||||||
<div id="content" class="messages">
|
x<div id="content" class="messages">
|
||||||
<h1>Messages</h1>
|
<h1>Messages</h1>
|
||||||
<?php
|
<?php
|
||||||
include("menu.tpl");
|
include("menu.tpl");
|
||||||
?>
|
?>
|
||||||
<form method="post" action="nachrichten.php" name="msg" ><table cellpadding="1" cellspacing="1" id="overview">
|
<form method="post" action="nachrichten.php" name="msg" ><table cellpadding="1" cellspacing="1" id="overview">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">Subject</th>
|
<th colspan="2">Subject</th>
|
||||||
<th>Sender</th>
|
<th>Sender</th>
|
||||||
<th class="sent">Sent</th>
|
<th class="sent">Sent</th>
|
||||||
</tr></thead><tfoot><tr><th>
|
</tr></thead><tfoot><tr><th>
|
||||||
<?php
|
<?php
|
||||||
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysql_error());
|
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysql_error());
|
||||||
$golds = mysql_fetch_array($MyGold);
|
$golds = mysql_fetch_array($MyGold);
|
||||||
$date2=strtotime("NOW");
|
$date2=strtotime("NOW");
|
||||||
@@ -18,67 +18,74 @@ include("menu.tpl");
|
|||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<input class="check" type="checkbox" id="s10" name="s10" onclick="Allmsg(this.form);" />
|
<input class="check" type="checkbox" id="s10" name="s10" onclick="Allmsg(this.form);" />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</th>
|
</th>
|
||||||
<th colspan="2" class="buttons">
|
<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="delmsg" value="delete" type="image" id="btn_delete" class="dynamic_img" src="img/x.gif" alt="delete" />
|
||||||
<?php if($session->plus) { echo "<input name=\"archive\" value=\"Archive\" type=\"image\" id=\"btn_archiv\" class=\"dynamic_img\" src=\"img/x.gif\" alt=\"Archive\" />"; } ?>
|
<?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" />
|
<input name="ft" value="m3" type="hidden" />
|
||||||
</th><th class="navi"><?php
|
</th><th class="navi"><?php
|
||||||
if(!isset($_GET['s']) && count($message->inbox1) < 10) {
|
if(!isset($_GET['s']) && count($message->inbox1) < 10) {
|
||||||
echo "«»";
|
echo "«»";
|
||||||
}
|
}
|
||||||
else if (!isset($_GET['s']) && count($message->inbox1) > 10) {
|
else if (!isset($_GET['s']) && count($message->inbox1) > 10) {
|
||||||
echo "«<a href=\"?s=10&o=0\">»</a>";
|
echo "«<a href=\"?s=10&o=0\">»</a>";
|
||||||
}
|
}
|
||||||
else if(isset($_GET['s']) && count($message->inbox1) > $_GET['s']) {
|
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) {
|
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>";
|
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a><a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||||
}
|
}
|
||||||
else if(count($message->inbox1) > $_GET['s']+10) {
|
else if(count($message->inbox1) > $_GET['s']+10) {
|
||||||
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
echo "«<a href=\"?s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a>»";
|
echo "<a href=\"?s=".($_GET['s']-10)."&o=0\">«</a>»";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?></th></tr></tfoot><tbody>
|
?></th></tr></tfoot><tbody>
|
||||||
<?php
|
<style>
|
||||||
if(isset($_GET['s'])) {
|
tr.multihunterMsg td.sel{
|
||||||
$s = $_GET['s'];
|
background-color:orange;
|
||||||
}
|
}
|
||||||
else {
|
</style>
|
||||||
$s = 0;
|
<?php
|
||||||
}
|
if(isset($_GET['s'])) {
|
||||||
$name = 1;
|
$s = $_GET['s'];
|
||||||
for($i=(1+$s);$i<=(10+$s);$i++) {
|
}
|
||||||
if(count($message->inbox1) >= $i) {
|
else {
|
||||||
if($message->inbox1[$i-1]['owner'] <= 1) {
|
$s = 0;
|
||||||
echo "<tr class=\"sup\">";
|
}
|
||||||
}
|
$name = 1;
|
||||||
else {
|
for($i=(1+$s);$i<=(10+$s);$i++) {
|
||||||
echo "<tr>";
|
if(count($message->inbox1) >= $i) {
|
||||||
}
|
if($message->inbox1[$i-1]['owner'] <= 1) {
|
||||||
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->inbox1[$i-1]['id']."\" /></td>
|
echo "<tr class=\"sup\">";
|
||||||
<td class=\"top\"><a href=\"nachrichten.php?id=".$message->inbox1[$i-1]['id']."\">".$message->inbox1[$i-1]['topic']."</a> ";
|
}elseif($message->inbox1[$i-1]['owner'] == 5){
|
||||||
if($message->inbox1[$i-1]['viewed'] == 0) {
|
echo "<tr class=\"multihunterMsg\">";
|
||||||
echo "(new)";
|
}
|
||||||
}
|
else {
|
||||||
$date = $generator->procMtime($message->inbox1[$i-1]['time']);
|
echo "<tr>";
|
||||||
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>
|
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->inbox1[$i-1]['id']."\" /></td>
|
||||||
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
<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) {
|
||||||
else {
|
echo "(new)";
|
||||||
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>";
|
$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>
|
||||||
$name++;
|
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
||||||
}
|
}
|
||||||
if(count($message->inbox1) == 0) {
|
else {
|
||||||
echo "<td colspan=\"4\" class=\"none\">There are no messages available.</td></tr>";
|
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>";
|
||||||
?>
|
}
|
||||||
</tbody></table>
|
}
|
||||||
</form>
|
$name++;
|
||||||
|
}
|
||||||
|
if(count($message->inbox1) == 0) {
|
||||||
|
echo "<td colspan=\"4\" class=\"none\">There are no messages available.</td></tr>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody></table>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
+1
-11
@@ -22,22 +22,12 @@ include("Templates/Plus/pmenu.tpl");
|
|||||||
<th colspan="2">Larger map</th>
|
<th colspan="2">Larger map</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="preview"><a href="plus.php?id=3"><img class="xxl_map" src="img/x.gif" alt="Larger map" title="Larger map" /></a></td>
|
<td class="preview"><a href="plus.php?id=3"><img class="xxl_map" src="img/x.gif" alt="Larger map" title="Larger map" /></a></td>
|
||||||
|
|
||||||
<td class="text">You can enlarge the map to get a better overview. Instead of 7x7 fields you can have a map of 13x13 fields. Other alliances which are allied or have a non-aggression pact (NAP) with you are shown in special colours.</td>
|
<td class="text">You can enlarge the map to get a better overview. Instead of 7x7 fields you can have a map of 13x13 fields. Other alliances which are allied or have a non-aggression pact (NAP) with you are shown in special colours.</td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td colspan="2" class="empty"></td>
|
<td colspan="2" class="empty"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<th colspan="2">Improved view in the rally point.</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
|
|
||||||
<td class="preview"><a href="plus.php?id=3"><img class="att_mark" src="img/x.gif" alt="Improved view in the rally point." title="Improved view in the rally point." /></a></td>
|
|
||||||
<td class="text">In your rally point you can mark incoming attacks in the colours green, yellow and red to be able to distinguish between what you think are severe and harmless attacks . Additionally the total movement time (without taking into consideration the tournament square or an artefact effect) of the troop types is shown.</td>
|
|
||||||
</tr><tr>
|
|
||||||
<td colspan="2" class="empty"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">Archive function for reports and messages</th>
|
<th colspan="2">Archive function for reports and messages</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -70,10 +70,18 @@
|
|||||||
<td><?php
|
<td><?php
|
||||||
echo $tribes[0]; ?></td>
|
echo $tribes[0]; ?></td>
|
||||||
|
|
||||||
<td><?php
|
<td>
|
||||||
$percents = 100 * (($tribes[0]) / $users);
|
<?php
|
||||||
echo $percents = intval($percents);
|
if($users > 0){
|
||||||
echo "%"; ?></td>
|
$percents = 100 * (($tribes[0]) / $users);
|
||||||
|
echo $percents = intval($percents);
|
||||||
|
echo "%";
|
||||||
|
}else{
|
||||||
|
echo '---';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
@@ -83,9 +91,14 @@
|
|||||||
echo $tribes[1]; ?></td>
|
echo $tribes[1]; ?></td>
|
||||||
|
|
||||||
<td><?php
|
<td><?php
|
||||||
$percents = 100 * ($tribes[1] / $users);
|
if($users > 0){
|
||||||
echo $percents = intval($percents);
|
$percents = 100 * ($tribes[1] / $users);
|
||||||
echo "%"; ?></td>
|
echo $percents = intval($percents);
|
||||||
|
echo "%";
|
||||||
|
}else{
|
||||||
|
echo '---';
|
||||||
|
}
|
||||||
|
?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
@@ -95,9 +108,14 @@
|
|||||||
echo $tribes[2]; ?></td>
|
echo $tribes[2]; ?></td>
|
||||||
|
|
||||||
<td><?php
|
<td><?php
|
||||||
$percents = 100 * ($tribes[2] / $users);
|
if($users > 0){
|
||||||
|
$percents = 100 * ($tribes[2] / $users);
|
||||||
echo $percents = intval($percents);
|
echo $percents = intval($percents);
|
||||||
echo "%"; ?></td>
|
echo "%";
|
||||||
|
}else{
|
||||||
|
echo '---';
|
||||||
|
}
|
||||||
|
?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
+24
-24
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||||
@@ -10,28 +10,28 @@
|
|||||||
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
$_SESSION['qtyp']=QTYPE;
|
$_SESSION['qtyp'] = QTYPE;
|
||||||
if (($_SESSION['qst']<38 && QTYPE==37 && QUEST==true) || ($_SESSION['qst']<31 && QTYPE==25 && QUEST==true)) {?>
|
if (($_SESSION['qst'] < 38 && QTYPE == 37 && QUEST == true) || ($_SESSION['qst'] < 31 && QTYPE == 25 && QUEST == true) || ($_SESSION['qst'] >= 90 && QTYPE == 25 && QUEST == true)) {?>
|
||||||
<div id="anm" style="width:120px; height:140px; visibility:hidden;"></div>
|
<div id="anm" style="width:120px; height:140px; visibility:hidden;"></div>
|
||||||
<div id="qge">
|
<div id="qge">
|
||||||
<?php if ($_SESSION['qst']==0 or (isset($_SESSION['qstnew']) && $_SESSION['qstnew']==1)){ ?>
|
<?php if ($_SESSION['qst'] == 0 or (isset($_SESSION['qstnew']) && $_SESSION['qstnew']==1)){ ?>
|
||||||
<img onclick="qst_handle();" src="<?php echo GP_LOCATE; ?>img/q/l<?php echo $session->userinfo['tribe'];?>g.jpg" title="to the task" style="height:174px" alt="to the task" />
|
<img onclick="qst_handle();" src="<?php echo GP_LOCATE; ?>img/q/l<?php echo $session->userinfo['tribe'];?>g.jpg" title="to the task" style="height:174px" alt="to the task" />
|
||||||
<?php }else{?>
|
<?php }else{?>
|
||||||
<img onclick="qst_handle();" src="<?php echo GP_LOCATE; ?>img/q/l<?php echo $session->userinfo['tribe'];?>.jpg" title="to the task" style="height:174px" alt="to the task" />
|
<img onclick="qst_handle();" src="<?php echo GP_LOCATE; ?>img/q/l<?php echo $session->userinfo['tribe'];?>.jpg" title="to the task" style="height:174px" alt="to the task" />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<?php if ($_SESSION['qst']==0){ ?>
|
<?php if ($_SESSION['qst']==0){ ?>
|
||||||
quest.number=null;
|
quest.number=null;
|
||||||
<?php }else{ ?>
|
<?php }else{ ?>
|
||||||
quest.number=0;
|
quest.number=0;
|
||||||
<?php } if ($_SESSION['qst']<38 && QTYPE==37){?>
|
<?php } if ($_SESSION['qst']<38 && QTYPE==37){?>
|
||||||
quest.last = 37;
|
quest.last = 37;
|
||||||
<?php } else {?>
|
<?php } else {?>
|
||||||
quest.last = 30;
|
quest.last = 30;
|
||||||
<?php }?>
|
<?php }?>
|
||||||
cache_preload = new Image();
|
cache_preload = new Image();
|
||||||
cache_preload.src = "img/x.gif";
|
cache_preload.src = "img/x.gif";
|
||||||
cache_preload.className = "wood";
|
cache_preload.className = "wood";
|
||||||
</script>
|
</script>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
@@ -112,7 +112,7 @@ $golds1 = mysql_fetch_array($MyGold);
|
|||||||
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
||||||
<p>Please mail your username, package, order time and email used to <a href="mailto:cata7007@gmail.com">our billing address</a>.</p>
|
<p>Please mail your username, package, order time and email used to <a href="mailto:cata7007@gmail.com">our billing address</a>.</p>
|
||||||
|
|
||||||
<?
|
<?php
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($amount == 499) {
|
if ($amount == 499) {
|
||||||
@@ -159,7 +159,7 @@ $golds1 = mysql_fetch_array($MyGold);
|
|||||||
</tbody></table>
|
</tbody></table>
|
||||||
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
||||||
<p>Please mail your username, package, order time and email used to <a href="mailto:cata7007@gmail.com">our billing address</a>.</p>
|
<p>Please mail your username, package, order time and email used to <a href="mailto:cata7007@gmail.com">our billing address</a>.</p>
|
||||||
<?
|
<?php
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($amount == 999) {
|
if ($amount == 999) {
|
||||||
@@ -206,7 +206,7 @@ $golds1 = mysql_fetch_array($MyGold);
|
|||||||
</tbody></table>
|
</tbody></table>
|
||||||
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
||||||
<p>Please mail your username, package, order time and email used to <a href="mailto:cata7007@gmail.com">our billing address</a>.</p>
|
<p>Please mail your username, package, order time and email used to <a href="mailto:cata7007@gmail.com">our billing address</a>.</p>
|
||||||
<?
|
<?php
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($amount == 1999) {
|
if ($amount == 1999) {
|
||||||
@@ -253,7 +253,7 @@ $golds1 = mysql_fetch_array($MyGold);
|
|||||||
</tbody></table>
|
</tbody></table>
|
||||||
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
||||||
<p>Please mail your username, package, order time and email used to <a href="cata7007@gmail.com">our billing address</a>.</p>
|
<p>Please mail your username, package, order time and email used to <a href="cata7007@gmail.com">our billing address</a>.</p>
|
||||||
<?
|
<?php
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($amount == 4999) {
|
if ($amount == 4999) {
|
||||||
@@ -300,7 +300,7 @@ $golds1 = mysql_fetch_array($MyGold);
|
|||||||
</tbody></table>
|
</tbody></table>
|
||||||
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
<p>Please verify the information.<br />It will let us know if the data is incorrect.</p>
|
||||||
<p>Please mail your username, package, order time and email used to <a href="mailto:cata7007@gmail.com">our billing address</a>.</p>
|
<p>Please mail your username, package, order time and email used to <a href="mailto:cata7007@gmail.com">our billing address</a>.</p>
|
||||||
<?
|
<?php
|
||||||
}
|
}
|
||||||
if ($amount == 0)
|
if ($amount == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ if(isset($_GET['id']) or isset($_GET['gid']) or $route == 1 or isset($_GET['rout
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
header("Location: dorf1.php");
|
header("Location: ".$_SERVER['PHP_SELF']."?id=39");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
window.dlang = 'ar'; // edit it to en if fullscreen map not working
|
||||||
var timer=new Object();var ab=new Object();var bb=new Object();var cb=db();var eb=0;var auto_reload=1;var fb=new Object();var is_opera=window.opera!==undefined;var is_ie=document.all!==undefined&&window.opera===undefined;var is_ie6p=document.compatMode!==undefined&&document.all!==undefined&&window.opera===undefined;var is_ie7=document.documentElement!==undefined&&document.documentElement.style.maxHeight!==undefined;var is_ie6=is_ie6p&&!is_ie7;var is_ff2p=window.Iterator!==undefined;var is_ff3p=document.getElementsByClassName!==undefined;var is_ff2=is_ff2p&&!is_ff3p
|
var timer=new Object();var ab=new Object();var bb=new Object();var cb=db();var eb=0;var auto_reload=1;var fb=new Object();var is_opera=window.opera!==undefined;var is_ie=document.all!==undefined&&window.opera===undefined;var is_ie6p=document.compatMode!==undefined&&document.all!==undefined&&window.opera===undefined;var is_ie7=document.documentElement!==undefined&&document.documentElement.style.maxHeight!==undefined;var is_ie6=is_ie6p&&!is_ie7;var is_ff2p=window.Iterator!==undefined;var is_ff3p=document.getElementsByClassName!==undefined;var is_ff2=is_ff2p&&!is_ff3p
|
||||||
function gb(){return hb('height');}
|
function gb(){return hb('height');}
|
||||||
function ib(){return hb('width');}
|
function ib(){return hb('width');}
|
||||||
@@ -58,15 +59,40 @@ for(i=1;;i++){pb=document.getElementById("timer"+i);if(pb!=null){bb[i]=new Objec
|
|||||||
else{break;}
|
else{break;}
|
||||||
}
|
}
|
||||||
executeCounter();}
|
executeCounter();}
|
||||||
function executeCounter(){for(var i in ab){wb=db()-cb;xb=rb(ab[i].counter_time+wb);ab[i].node.innerHTML=xb;}
|
function executeCounter(){
|
||||||
for(i in bb){wb=db()-cb;yb=bb[i].counter_time-wb;
|
for(var i in ab){
|
||||||
if(eb==0&&yb<1){eb=1;if(auto_reload==1){setTimeout("document.location.reload()",1000);}
|
wb = db() - cb;
|
||||||
else if(auto_reload==0){setTimeout("mreload()",1000);}
|
xb = rb(ab[i].counter_time + wb);
|
||||||
}
|
ab[i].node.innerHTML = xb;
|
||||||
else{}
|
}
|
||||||
xb=rb(yb);bb[i].node.innerHTML=xb;}
|
for(i in bb){
|
||||||
if(eb==0){window.setTimeout("executeCounter()",1000);}
|
wb = db() - cb;
|
||||||
|
yb = bb[i].counter_time - wb;
|
||||||
|
// console.log('yb: ' + yb);
|
||||||
|
if(eb == 0 && yb < 0){
|
||||||
|
bb[i] = null;
|
||||||
|
eb = 1;
|
||||||
|
setTimeout(function(){window.location.href = ''},1000);
|
||||||
|
}
|
||||||
|
// eb = 1;
|
||||||
|
// if(auto_reload == 1){
|
||||||
|
// setTimeout("document.location.reload()",1000);
|
||||||
|
// }
|
||||||
|
// else if(auto_reload==0){
|
||||||
|
// setTimeout("mreload()",1000);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
else{
|
||||||
|
xb=rb(yb);
|
||||||
|
bb[i].node.innerHTML = xb;
|
||||||
|
}
|
||||||
|
if(eb == 0 && yb >= 0){
|
||||||
|
setTimeout("executeCounter()",1000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
setTimeout("executeCounter()",1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function mb(zb){pb=document.getElementById(zb);if(pb!=null){fb[zb]=new Object();var $b=pb.innerHTML.match(/(\d+)\/(\d+)/);element=$b[0].split("/");_b=parseInt(element[0]);ac=parseInt(element[1]);bc=pb.title;if(bc!=0){cc=nb();timer[zb]=new Object();timer[zb].start=cc;timer[zb].production=bc;timer[zb].start_res=_b;timer[zb].max_res=ac;timer[zb].ms=3600000/bc;dc=100;if(timer[zb].ms<dc){timer[zb].ms=dc;}
|
function mb(zb){pb=document.getElementById(zb);if(pb!=null){fb[zb]=new Object();var $b=pb.innerHTML.match(/(\d+)\/(\d+)/);element=$b[0].split("/");_b=parseInt(element[0]);ac=parseInt(element[1]);bc=pb.title;if(bc!=0){cc=nb();timer[zb]=new Object();timer[zb].start=cc;timer[zb].production=bc;timer[zb].start_res=_b;timer[zb].max_res=ac;timer[zb].ms=3600000/bc;dc=100;if(timer[zb].ms<dc){timer[zb].ms=dc;}
|
||||||
timer[zb].node=pb;executeTimer(zb);}
|
timer[zb].node=pb;executeTimer(zb);}
|
||||||
else
|
else
|
||||||
@@ -108,8 +134,12 @@ function Popup(i,j,sc){
|
|||||||
function PopupMap(i){
|
function PopupMap(i){
|
||||||
if(typeof sc=='undefined'){sc='s';}
|
if(typeof sc=='undefined'){sc='s';}
|
||||||
pb=document.getElementById("ce");
|
pb=document.getElementById("ce");
|
||||||
if(pb!=null){
|
if(pb!=null){
|
||||||
var tc='<div class="popup_map">'+'<div id="drag2"><a href="#" onClick="Close(); return false;"><img src="img/x.gif" border="0" width="20px" height="20px" alt="Move"></a></div>'+'<iframe frameborder="0" id="Frame" src="karte2.php?z='+i+'" width="1000" height="575" border="0" scrolling="no"></iframe>'+'</div>';
|
if(window.dlang== 'ar'){
|
||||||
|
var tc='<div class="popup_map" style="right: 320px; left: -100px; top: 20px">'+'<div id="drag2"><a href="#" style="position: absolute;right: 968px;margin-top: 10px;" id="map_popclose" onClick="Close(); return false;"><img src="img/x.gif" border="0" width="20px" height="20px" alt="Move"></a>'+'<iframe frameborder="0" id="Frame" src="karte2.php?z='+i+'" width="1000" height="575" border="0" scrolling="no"></iframe>'+'</div></div>';
|
||||||
|
}else{
|
||||||
|
var tc='<div class="popup_map">'+'<div id="drag2"><a href="#" id="map_popclose" onClick="Close(); return false;"><img src="img/x.gif" border="0" width="20px" height="20px" alt="Move"></a>'+'<iframe frameborder="0" id="Frame" src="karte2.php?z='+i+'" width="1000" height="575" border="0" scrolling="no"></iframe>'+'</div></div>';
|
||||||
|
}
|
||||||
pb.innerHTML=tc;uc2();
|
pb.innerHTML=tc;uc2();
|
||||||
}
|
}
|
||||||
vc();
|
vc();
|
||||||
@@ -123,8 +153,12 @@ $$('.popup3')[0].grab(new Element('div',{'id':'drag'}
|
|||||||
);if($$('body')[0].getStyle('direction').toLowerCase()=='rtl'){$$('.popup3')[0].setStyle('direction','rtl').getParent().setStyle('direction','ltr');}
|
);if($$('body')[0].getStyle('direction').toLowerCase()=='rtl'){$$('.popup3')[0].setStyle('direction','rtl').getParent().setStyle('direction','ltr');}
|
||||||
}
|
}
|
||||||
function uc2(){
|
function uc2(){
|
||||||
if($('drag')){return;}
|
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'});
|
||||||
|
}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'){
|
if($$('body')[0].getStyle('direction').toLowerCase()=='rtl'){
|
||||||
$$('.popup_map')[0].setStyle('direction','rtl').getParent().setStyle('direction','ltr');
|
$$('.popup_map')[0].setStyle('direction','rtl').getParent().setStyle('direction','ltr');
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -193,7 +193,7 @@ $q = "
|
|||||||
<div id="mid">
|
<div id="mid">
|
||||||
<?php include("Templates/menu.tpl"); ?>
|
<?php include("Templates/menu.tpl"); ?>
|
||||||
<div id="content" class="village2" style="font-size: 9pt;">
|
<div id="content" class="village2" style="font-size: 9pt;">
|
||||||
<img src="../gpack/travian_default/img/misc/win.png" align="right" style="padding-top: 40px;">
|
<img src="./gpack/travian_default/img/misc/win.png" align="right" style="padding-top: 40px;">
|
||||||
<p>
|
<p>
|
||||||
<b>Dear <?php echo SERVER_NAME; ?> Players,</b>
|
<b>Dear <?php echo SERVER_NAME; ?> Players,</b>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
|
|||||||
Reference in New Issue
Block a user