mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
more fixes
This commit is contained in:
@@ -92,6 +92,7 @@ $timeformat = new timeFormatGenerator;
|
||||
{ ?>
|
||||
<a href="<?php echo HOMEPAGE; ?>">Server Homepage</a>
|
||||
<a href="admin.php">Control Panel Home</a>
|
||||
<a href="<?php echo SERVER; ?>dorf1.php">Return to the server</a>
|
||||
<br />
|
||||
<a href="?action=logout">Logout</a>
|
||||
<br />
|
||||
|
||||
@@ -24,7 +24,7 @@ $sessionaccess = $access['access'];
|
||||
|
||||
if($sessionaccess != 9) die("<h1><font color=\"red\">Access Denied: You are not Admin!</font></h1>");
|
||||
|
||||
mysql_query("DELETE FROM ".TB_PREFIX."allimedal WHERE id = ".$delete."");
|
||||
mysql_query("UPDATE ".TB_PREFIX."allimedal set del = 1 WHERE id = ".$delete."");
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=alliance&aid=".$aid."");
|
||||
?>
|
||||
@@ -24,7 +24,7 @@ $sessionaccess = $access['access'];
|
||||
|
||||
if($sessionaccess != 9) die("<h1><font color=\"red\">Access Denied: You are not Admin!</font></h1>");
|
||||
|
||||
mysql_query("DELETE FROM ".TB_PREFIX."allimedal WHERE allyid = ".$aid."");
|
||||
mysql_query("UPDATE ".TB_PREFIX."allimedal set del = 1 WHERE allyid = ".$aid."");
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=alliance&aid=".$aid."");
|
||||
?>
|
||||
@@ -23,7 +23,7 @@ $sessionaccess = $access['access'];
|
||||
|
||||
if($sessionaccess != 9) die("<h1><font color=\"red\">Access Denied: You are not Admin!</font></h1>");
|
||||
|
||||
mysql_query("DELETE FROM ".TB_PREFIX."allimedal WHERE week = ".$deleteweek."");
|
||||
mysql_query("UPDATE ".TB_PREFIX."allimedal set del = 1 WHERE week = ".$deleteweek."");
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=delallymedal");
|
||||
?>
|
||||
@@ -23,7 +23,7 @@ $sessionaccess = $access['access'];
|
||||
|
||||
if($sessionaccess != 9) die("<h1><font color=\"red\">Access Denied: You are not Admin!</font></h1>");
|
||||
|
||||
mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE userid = ".$userid."");
|
||||
mysql_query("UPDATE ".TB_PREFIX."medal set del = 1 WHERE userid = ".$userid."");
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=player&uid=".$userid."");
|
||||
?>
|
||||
@@ -23,7 +23,7 @@ $sessionaccess = $access['access'];
|
||||
|
||||
if($sessionaccess != 9) die("<h1><font color=\"red\">Access Denied: You are not Admin!</font></h1>");
|
||||
|
||||
mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek."");
|
||||
mysql_query("UPDATE ".TB_PREFIX."medal set del = 1 WHERE week = ".$deleteweek."");
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=delmedal");
|
||||
?>
|
||||
@@ -19,7 +19,7 @@ if ($session->access < ADMIN) die("Access Denied: You are not Admin!");
|
||||
$medalid = $_POST['medalid'];
|
||||
$uid = $_POST['uid'];
|
||||
|
||||
mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE id = ".$medalid."");
|
||||
mysql_query("UPDATE ".TB_PREFIX."medal set del = 1 WHERE id = ".$medalid."");
|
||||
|
||||
$name = mysql_query("SELECT name FROM ".TB_PREFIX."users WHERE id= ".$uid."");
|
||||
$name = mysql_result($name, 0);
|
||||
@@ -28,7 +28,7 @@ mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Deleted medal
|
||||
|
||||
|
||||
$deleteweek = $_POST['medalweek'];
|
||||
mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek."");
|
||||
mysql_query("UPDATE ".TB_PREFIX."medal set del = 1 WHERE week = ".$deleteweek."");
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=player&uid=".$uid."");
|
||||
?>
|
||||
@@ -143,7 +143,7 @@ class Automation {
|
||||
return $popT;
|
||||
}
|
||||
|
||||
public function Automation() {
|
||||
public function Automation() {
|
||||
|
||||
$this->ClearUser();
|
||||
$this->ClearInactive();
|
||||
@@ -205,6 +205,7 @@ class Automation {
|
||||
$this->updateGeneralAttack();
|
||||
$this->checkInvitedPlayes();
|
||||
$this->updateStore();
|
||||
$this->procClimbers();
|
||||
}
|
||||
|
||||
private function loyaltyRegeneration() {
|
||||
@@ -3828,6 +3829,61 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
|
||||
}
|
||||
}
|
||||
|
||||
private function procClimbers() {
|
||||
global $database, $ranking;
|
||||
$users = "SELECT * FROM " . TB_PREFIX . "users WHERE tribe!=0 AND tribe!=4 AND tribe!=5";
|
||||
$array = $database->query_return($users);
|
||||
$ranking->procRankArray();
|
||||
foreach($array as $session){
|
||||
$oldrank = $ranking->searchRank($session['username'], "username");
|
||||
$q = "SELECT * FROM ".TB_PREFIX."medal order by week DESC LIMIT 0, 1";
|
||||
$result = mysql_query($q);
|
||||
if(mysql_num_rows($result)) {
|
||||
$row=mysql_fetch_assoc($result);
|
||||
$week=($row['week']+1);
|
||||
} else {
|
||||
$week='1';
|
||||
}
|
||||
if($week > 1){
|
||||
if($session['oldrank'] > $oldrank) {
|
||||
$totalpoints = $session['oldrank'] - $oldrank;
|
||||
$database->addclimberrankpop($session['id'], $totalpoints);
|
||||
$database->updateoldrank($session['id'], $oldrank);
|
||||
} else
|
||||
if($session['oldrank'] < $oldrank) {
|
||||
$totalpoints = $oldrank - $session['oldrank'];
|
||||
$database->removeclimberrankpop($session['id'], $session['oldrank']);
|
||||
$database->updateoldrank($session['id'], $oldrank);
|
||||
}
|
||||
}else{
|
||||
$totalpoints = count($ranking->getRank()) - $oldrank;
|
||||
$database->setclimberrankpop($session['id'], $totalpoints);
|
||||
$database->updateoldrank($session['id'], $oldrank);
|
||||
}
|
||||
$database->updateoldrank($session['id'], $oldrank);
|
||||
}
|
||||
$countally = count($database->countAlli());
|
||||
if($countally > 0){
|
||||
for($i=1;$i<=$countally;$i++){
|
||||
$memberlist = $database->getAllMember($i);
|
||||
$oldrank = 0;
|
||||
foreach($memberlist as $member) {
|
||||
$oldrank += $database->getVSumField($member['id'],"pop");
|
||||
}
|
||||
$ally = $database->getAlliance($i);
|
||||
if($ally['oldrank'] < $oldrank) {
|
||||
$totalpoints = $oldrank - $ally['oldrank'];
|
||||
$database->addclimberrankpopAlly($ally['id'], $totalpoints);
|
||||
$database->updateoldrankAlly($ally['id'], $oldrank);
|
||||
} else
|
||||
if($ally['oldrank'] > $oldrank) {
|
||||
$totalpoints = $ally['oldrank'] - $oldrank;
|
||||
$database->removeclimberrankpopAlly($ally['id'], $totalpoints);
|
||||
$database->updateoldrankAlly($ally['id'], $oldrank);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$automation = new Automation;
|
||||
?>
|
||||
@@ -659,14 +659,14 @@ class MYSQL_DB {
|
||||
}
|
||||
|
||||
function getProfileMedal($uid) {
|
||||
$q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "medal where userid = $uid order by id desc";
|
||||
$q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "medal where userid = $uid and del = 0 order by id desc";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
|
||||
}
|
||||
|
||||
function getProfileMedalAlly($uid) {
|
||||
$q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "allimedal where allyid = $uid order by id desc";
|
||||
$q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "allimedal where allyid = $uid and del = 0 order by id desc";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
|
||||
@@ -2584,6 +2584,10 @@ class MYSQL_DB {
|
||||
$q = "UPDATE " . TB_PREFIX . "users set clp = clp - '$cp'' where id = $user";
|
||||
return mysql_query($q, $this->connection);
|
||||
}
|
||||
function setclimberrankpop($user, $cp) {
|
||||
$q = "UPDATE " . TB_PREFIX . "users set clp = '$cp' where id = $user";
|
||||
return mysql_query($q, $this->connection);
|
||||
}
|
||||
function updateoldrank($user, $cp) {
|
||||
$q = "UPDATE " . TB_PREFIX . "users set oldrank = '$cp' where id = $user";
|
||||
return mysql_query($q, $this->connection);
|
||||
|
||||
+1
-28
@@ -66,21 +66,6 @@
|
||||
$this->getStart(1);
|
||||
} else {
|
||||
$this->getStart($this->searchRank($session->alliance, "id"));
|
||||
$oldrank = $this->searchRank($session->alliance, "id");
|
||||
|
||||
|
||||
$ally = $database->getAlliance($session->alliance);
|
||||
if($ally['oldrank'] > $oldrank) {
|
||||
$totalpoints = $ally['oldrank'] - $oldrank;
|
||||
$database->addclimberrankpopAlly($ally['id'], $totalpoints);
|
||||
$database->updateoldrankAlly($ally['id'], $oldrank);
|
||||
} else
|
||||
if($ally['oldrank'] < $oldrank) {
|
||||
$totalpoints = $oldrank - $ally['oldrank'];
|
||||
$database->removeclimberrankpopAlly($ally['id'], $totalpoints);
|
||||
$database->updateoldrankAlly($ally['id'], $oldrank);
|
||||
}
|
||||
$database->updateoldrankAlly($ally['id'], $oldrank);
|
||||
}
|
||||
break;
|
||||
case 41:
|
||||
@@ -103,18 +88,6 @@
|
||||
} else {
|
||||
$this->procRankArray();
|
||||
$this->getStart($this->searchRank($session->username, "username"));
|
||||
$oldrank = $this->searchRank($session->username, "username");
|
||||
if($session->oldrank > $oldrank) {
|
||||
$totalpoints = $session->oldrank - $oldrank;
|
||||
$database->addclimberrankpop($session->uid, $totalpoints);
|
||||
$database->updateoldrank($session->uid, $oldrank);
|
||||
} else
|
||||
if($session->oldrank < $oldrank) {
|
||||
$totalpoints = $oldrank - $session->oldrank;
|
||||
$database->removeclimberrankpop($session->uid, $session->oldrank);
|
||||
$database->updateoldrank($session->uid, $oldrank);
|
||||
}
|
||||
$database->updateoldrank($session->uid, $oldrank);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,7 +171,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
private function procRankArray() {
|
||||
public function procRankArray() {
|
||||
global $database, $multisort;
|
||||
//$array = $database->getRanking();
|
||||
$holder = array();
|
||||
|
||||
@@ -27,12 +27,12 @@ include ("Database.php");
|
||||
include ("Mailer.php");
|
||||
include ("Form.php");
|
||||
include ("Generator.php");
|
||||
include ("Multisort.php");
|
||||
include ("Ranking.php");
|
||||
include ("Automation.php");
|
||||
include ("Lang/" . LANG . ".php");
|
||||
include ("Logging.php");
|
||||
include ("Message.php");
|
||||
include ("Multisort.php");
|
||||
include ("Ranking.php");
|
||||
include ("Alliance.php");
|
||||
include ("Profile.php");
|
||||
|
||||
|
||||
@@ -161,20 +161,13 @@ class Units {
|
||||
$form->addError("error","Player is under beginners protection. You can't attack him");
|
||||
}
|
||||
|
||||
//check if banned:
|
||||
//check if banned/admin:
|
||||
$villageOwner = $database->getVillageField($id,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
if($userAccess == '0'){
|
||||
if($userAccess == '0' or $userAccess == '8' or $userAccess == '9'){
|
||||
$form->addError("error","Player is Banned. You can't attack him");
|
||||
//break;
|
||||
}
|
||||
//check if admin:
|
||||
$villageOwner = $database->getVillageField($id,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
if($userAccess == '9'){
|
||||
$form->addError("error","Player is Admin. You can't attack him");
|
||||
//break;
|
||||
}
|
||||
|
||||
//check if attacking same village that units are in
|
||||
if($id == $village->wid){
|
||||
|
||||
@@ -21,6 +21,7 @@ if(!$session->goldclub) {
|
||||
<?php include "Templates/goldClub/farmlist.tpl"; ?>
|
||||
</div>
|
||||
<br />
|
||||
<?php if($hideevasion == 0){ ?>
|
||||
<table cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -72,5 +73,6 @@ if(!$session->goldclub) {
|
||||
<div class="clear"></div><p><input type="image" value="ok" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" tabindex="8" alt="OK" <?php if(!$market->merchantAvail()) { echo "DISABLED"; }?>/></p></form>
|
||||
</tr>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -23,6 +23,8 @@ else if($_POST['dname']!=""){
|
||||
$getwref = $database->getVillageByName($_POST['dname']);
|
||||
$checkexist = $database->checkVilExist($getwref);
|
||||
}
|
||||
$villageOwner = $database->getVillageField($getwref,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
$maxcarry = $market->maxcarry;
|
||||
$maxcarry *= $market->merchantAvail();
|
||||
if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist){
|
||||
@@ -209,6 +211,9 @@ if(isset($_POST['ft'])=='check'){
|
||||
|
||||
if(!$checkexist){
|
||||
$error = '<span class="error"><b>No Coordinates selected</b></span>';
|
||||
}elseif($userAccess == '0' or $userAccess == '8' or $userAccess == '9'){
|
||||
$error = '<span class="error"><b>Player is Banned. You cannot send resources to him.</b></span>';
|
||||
}
|
||||
}elseif($_POST['r1']==0 && $_POST['r2']==0 && $_POST['r3']==0 && $_POST['r4']==0){
|
||||
$error = '<span class="error"><b>Resources not selected.</b></span>';
|
||||
}elseif(!$_POST['x'] && !$_POST['y'] && !$_POST['dname']){
|
||||
|
||||
@@ -504,12 +504,8 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
$data1 = mysql_fetch_assoc($query1);
|
||||
$query2 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'users` WHERE `id` = ' . $data1['owner']);
|
||||
$data2 = mysql_fetch_assoc($query2);
|
||||
if($data2['access']=='0') {
|
||||
echo "» Send troops. (Player is banned)";
|
||||
} else if($data2['access']=='8') {
|
||||
echo "» Send Troops. (Moderator)";
|
||||
} else if($data2['access']=='9') {
|
||||
echo "» Send Troops. (Administrator)";
|
||||
if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') {
|
||||
echo "» Send troops. (Player is banned)";
|
||||
} else if($data2['protect'] < time()) {
|
||||
echo $village->resarray['f39']? "<a href=\"a2b.php?z=".$_GET['d']."\">» Send troops." : "» Send troops. (build a rally point)";
|
||||
} else {
|
||||
@@ -517,11 +513,18 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="none"><?php echo $building->getTypeLevel(17)? "<a href=\"build.php?z=".$_GET['d']."&id=" . $building->getTypeField(17) . "\">» Send merchant(s)." : "» Send merchant(s). (build marketplace)"; ?></td>
|
||||
<td class="none">
|
||||
<?php
|
||||
if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') {
|
||||
echo "» Send merchant(s). (banned)";
|
||||
} else {
|
||||
echo $building->getTypeLevel(17)? "<a href=\"build.php?z=".$_GET['d']."&id=" . $building->getTypeField(17) . "\">» Send merchant(s)." : "» Send merchant(s). (build marketplace)";
|
||||
}
|
||||
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
<tr>
|
||||
<td>No.</td>
|
||||
<td>Alliance</td>
|
||||
<td>Ranks</td>
|
||||
<td>Population</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
$t1 = $row['t1'];$t2 = $row['t2'];$t3 = $row['t3'];$t4 = $row['t4'];$t5 = $row['t5'];
|
||||
$t6 = $row['t6'];$t7 = $row['t7'];$t8 = $row['t8'];$t9 = $row['t9'];$t10 = $row['t10'];
|
||||
$t11 = 0;
|
||||
$villageOwner = $database->getVillageField($wref,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
if($userAccess != '0' && $userAccess != '8' && $userAccess != '9'){
|
||||
if($tribe == 1){ $uname = "u"; } elseif($tribe == 2){ $uname = "u1"; } elseif($tribe == 3){ $uname = "u2"; }elseif($tribe == 4){ $uname = "u3"; }else {$uname = "u4"; }
|
||||
if($tribe == 1){ $uname1 = "u1"; } elseif($tribe == 2){ $uname1 = "u2"; } elseif($tribe == 3){ $uname1 = "u3"; }elseif($tribe == 4){ $uname1 = "u4"; }else {$uname1 = "u5"; }
|
||||
if($tribe == 1){ $uname2 = ""; } elseif($tribe == 2){ $uname2 = "1"; } elseif($tribe == 3){ $uname2 = "2"; }elseif($tribe == 4){ $uname2 = "3"; }else {$uname2 = "4"; }
|
||||
@@ -79,5 +82,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
header("Location: build.php?id=39&t=99");
|
||||
?>
|
||||
@@ -360,9 +360,12 @@ $NUM1++;
|
||||
<?php } ?>
|
||||
|
||||
<?php if($create == 1){
|
||||
$hideevasion = 1;
|
||||
include("Templates/goldClub/farmlist_add.tpl");
|
||||
}else if($create == 2){
|
||||
$hideevasion = 1;
|
||||
include("Templates/goldClub/farmlist_addraid.tpl");
|
||||
}else if($create == 3){
|
||||
$hideevasion = 1;
|
||||
include("Templates/goldClub/farmlist_editraid.tpl");
|
||||
}
|
||||
@@ -13,8 +13,6 @@ $WrefY = $WrefCoor['y'];
|
||||
$type = $database->getVillageType2($Wref);
|
||||
$oasistype = $type['oasistype'];
|
||||
$vdata = $database->getVillage($Wref);
|
||||
$villageOwner = $database->getVillageField($Wref,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
}elseif($_POST['x']!="" && $_POST['y']!="" && is_numeric($_POST['x']) && is_numeric($_POST['y'])){
|
||||
$Wref = $database->getVilWref($_POST['x'], $_POST['y']);
|
||||
$WrefX = $_POST['x'];
|
||||
@@ -22,15 +20,11 @@ $WrefY = $_POST['y'];
|
||||
$type = $database->getVillageType2($Wref);
|
||||
$oasistype = $type['oasistype'];
|
||||
$vdata = $database->getVillage($Wref);
|
||||
$villageOwner = $database->getVillageField($Wref,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
}
|
||||
if($_POST['x']=="" && $_POST['y']=="" && $_POST['target_id'] == ""){
|
||||
$errormsg .= "Enter coordinates.";
|
||||
}elseif(($_POST['x']=="" || $_POST['y']=="") && $_POST['target_id'] == ""){
|
||||
$errormsg .= "Enter the correct coordinates.";
|
||||
}elseif($userAccess == '9'){
|
||||
$errormsg .= "Player is Admin. You can't attack him.";
|
||||
}elseif($oasistype == 0 && $vdata == 0){
|
||||
$errormsg .= "There is no village on those coordinates.";
|
||||
}elseif($troops == 0){
|
||||
|
||||
@@ -16,8 +16,6 @@ $WrefY = $WrefCoor['y'];
|
||||
$type = $database->getVillageType2($Wref);
|
||||
$oasistype = $type['oasistype'];
|
||||
$vdata = $database->getVillage($Wref);
|
||||
$villageOwner = $database->getVillageField($Wref,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
}elseif($_POST['x']!="" && $_POST['y']!="" && is_numeric($_POST['x']) && is_numeric($_POST['y'])){
|
||||
$Wref = $database->getVilWref($_POST['x'], $_POST['y']);
|
||||
$WrefX = $_POST['x'];
|
||||
@@ -25,8 +23,6 @@ $WrefY = $_POST['y'];
|
||||
$type = $database->getVillageType2($Wref);
|
||||
$oasistype = $type['oasistype'];
|
||||
$vdata = $database->getVillage($Wref);
|
||||
$villageOwner = $database->getVillageField($Wref,'owner');
|
||||
$userAccess = $database->getUserField($villageOwner,'access',0);
|
||||
}
|
||||
$troops = "".$_POST['t1']."+".$_POST['t2']."+".$_POST['t3']."+".$_POST['t4']."+".$_POST['t5']."+".$_POST['t6']."+".$_POST['t7']."+".$_POST['t8']."+".$_POST['t9']."+".$_POST['t10']."";
|
||||
|
||||
@@ -34,8 +30,6 @@ $troops = "".$_POST['t1']."+".$_POST['t2']."+".$_POST['t3']."+".$_POST['t4']."+"
|
||||
$errormsg .= "Enter coordinates.";
|
||||
}elseif(($_POST['x']=="" || $_POST['y']=="") && $_POST['target_id'] == ""){
|
||||
$errormsg .= "Enter the correct coordinates.";
|
||||
}elseif($userAccess == '9'){
|
||||
$errormsg .= "Player is Admin. You can't attack him.";
|
||||
}elseif($oasistype == 0 && $vdata == 0){
|
||||
$errormsg .= "There is no village on those coordinates.";
|
||||
}elseif($troops == 0){
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/*
|
||||
*------------------------------------------------------------------------------
|
||||
* LANG is used to define the language-specific images and settings.
|
||||
*
|
||||
* Contains:
|
||||
* width, height, background-image, background-repeat, background-position
|
||||
*------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@import "../../modules/new_layout_ltr.css";
|
||||
|
||||
/* --- Colors ------------------------- */
|
||||
@import "../../modules/new_colors.css";
|
||||
|
||||
/* --- Icons, Images and Backgrounds ---------- */
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/*
|
||||
*------------------------------------------------------------------------------
|
||||
* LANG is used to define the language-specific images and settings.
|
||||
*
|
||||
* Contains:
|
||||
* width, height, background-image, background-repeat, background-position
|
||||
*------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@import "../../modules/new_layout_ltr.css";
|
||||
|
||||
/* --- Colors ------------------------- */
|
||||
@import "../../modules/new_colors.css";
|
||||
|
||||
/* --- Icons, Images and Backgrounds ---------- */
|
||||
@import "../../modules/new_images.css";
input#btn_login {width:97px; background-image: url(b/login.gif);}
input#btn_signup {width:97px; background-image: url(b/signup.gif);}
input#btn_ok {width:47px; background-image: url(b/ok.gif);}
input#btn_reply {width:97px; background-image: url(b/reply.gif);}
input#btn_send {width:97px; background-image: url(b/send.gif);}
input#btn_save {width:97px; background-image: url(b/save.gif);}
input#btn_delete {width:97px; background-image: url(b/delete.gif);}
input#btn_archiv {width:97px; background-image: url(b/archiv.gif);}
input#btn_back {width:97px; background-image: url(b/zurueck.html);}
input#btn_train {width:97px; background-image: url(b/train.gif);}
input#btn_back {width:97px; background-image: url(b/back.gif);}
input#btn_forward {width:97px; background-image: url(b/forward.gif);}
input#btn_demolish {width:97px; background-image: url(b/demolish.gif);}
input#btn_search {width:97px; background-image: url(b/search.gif);}
/* Ally Forum */
div.forum input#fbtn_ok {width:47px; background-image:url(b/ok.gif);}
div.forum input#fbtn_vote {width:97px; background-image:url(f/vote.gif);}
div.forum input#fbtn_result {width:97px; background-image:url(f/result.gif);}
div.forum input#fbtn_voting {width:97px; background-image:url(f/voting.gif);}
div.forum img#fbtn_reply {width:97px; background-image:url(f/reply.gif);}
div.forum img#fbtn_post {width:97px; background-image:url(f/post.gif);}
div.forum img#fbtn_newforum {width:97px; background-image:url(f/newforum.gif);}
/* ------------------- Texts ------------------- */
/* --------------------------------------------- */
/* news */
div#side_info h5 img {width:160px; height:15px;}
/* login */
div.login h1 img.img_login {width:468px; height:60px; background-image:url(t1/login.gif);}
div.login h5 img.img_u04 {width:160px; height:15px; background-image:url(t2/u04.gif);}
/* signup */
div.signup h1 img.anmelden {width:468px; height:60px; background-image:url(t1/anmelden.gif);}
div.signup h5 img.img_u05 {width:160px; height:15px; background-image:url(t2/u05.gif);}
div.signup img.img_u06 {width:160px; height:15px; background-image:url(t2/u06.gif);}
div.signup img.img_u07 {width:160px; height:15px; background-image:url(t2/u07.gif);}
/* activate */
div.activate h1 img.passwort {width:468px; height:60px; background-image:url(t1/passwort.gif);}
div.activate h5 img.img_u22 {width:160px; height:15px; background-image:url(t2/u22.gif);}
/* read/write message */
div.messages div.msg_content img#label {width:77px; height:34px;}
div.messages div.msg_content img.send {background-image:url(msg/block_bg24b.gif);}
div.messages div.msg_content img.read {background-image:url(msg/block_bg24a.gif);}
/* ------------------- Images ------------------- */
/* ---------------------------------------------- */
/* travian logo */
div#side_navi a#logo img {width:116px; height:60px; background-image:url(a/travian0.gif);}
div#side_navi a#logo img.logo_plus {background-image:url(a/travian1.gif);}
/* plus previews */
div.plus table#plus_features td.preview img.autovv {width:200px; height:56px; background-image:url(p/autovv.gif);}
div.plus table#plus_features td.preview img.bfilter {width:200px; height:45px; background-image:url(p/bfilter.gif);}
div.plus table#plus_features td.preview img.dorf3 {width:200px; height:186px; background-image:url(p/dorf3.jpg);}
div.plus table#plus_features td.preview img.p1 {width:179px; height:29px; background-image:url(p/p1.gif);}
div.plus table#plus_features td.preview img.p3 {width:163px; height:120px; background-image:url(p/p3.gif);}
div.plus table#plus_features td.preview img.p4 {width:197px; height:41px; background-image:url(p/p4.gif);}
div.plus table#plus_features td.preview img.p5 {width:132px; height:51px; background-image:url(p/p5.gif);}
div.plus table#plus_features td.preview img.p6 {width:111px; height:29px; background-image:url(p/p6.gif);}
div.plus table#plus_features td.preview img.p7 {width:61px; height:86px; background-image:url(p/p7.gif);}
div.plus table#plus_features td.preview img.p8 {width:117px; height:121px; background-image:url(p/p8.gif);}
div.plus table#plus_features td.preview img.sort {width:200px; height:38px; background-image:url(p/sort.jpg);}
div.plus table#plus_features td.preview img.st1 {width:200px; height:90px; background-image:url(p/st1.gif);}
div.plus table#plus_features td.preview img.xxl_map {width:146px; height:112px; background-image:url(p/xxl_map.gif);}
input#btn_search {width:97px; background-image: url(b/search.gif);}
|
||||
|
||||
@@ -1,58 +1,58 @@
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
.wrapper {background: transparent url(../images/header_background.jpg) repeat-x left top;}
|
||||
|
||||
div#footer {background: #F1F1F1 url(../images/footer_background.gif) repeat-x center top;}
|
||||
|
||||
div#footer div#mfoot {background: transparent url(../images/footer_logo.gif) no-repeat 0px 21px;}
|
||||
|
||||
div#dynamic_header,
|
||||
body.mod1 div#dynamic_header,
|
||||
body.mod3 div#dynamic_header {background: transparent url(../images/artwork1-ltr.jpg) no-repeat center top;}
|
||||
|
||||
body.mod2 div#dynamic_header {background: transparent url(../images/artwork2-ltr.jpg) no-repeat center top;}
|
||||
|
||||
div#header {background-image: none;}
|
||||
|
||||
div#side_navi {background: transparent url(../images/shadow-a-ltr.png) no-repeat right top; margin-top: 30px;}
|
||||
div#side_navi a:hover {background: transparent url(../images/menu-bg-ltr.gif) no-repeat left top;}
|
||||
|
||||
body.v35 a#n1 img {background-image: url(../images/n1-ltr.gif);}
|
||||
body.v35 a#n2 img {background-image: url(../images/n2-ltr.gif);}
|
||||
body.v35 a#n3 img {background-image: url(../images/n3-ltr.gif);}
|
||||
body.v35 a#n4 img {background-image: url(../images/n4-ltr.gif);}
|
||||
body.v35 div.i1 {background-image:url(../images/m1-ltr.gif);} /* beide */
|
||||
body.v35 div.i2 {background-image:url(../images/m2-ltr.gif);} /* IGM */
|
||||
body.v35 div.i3 {background-image:url(../images/m3-ltr.gif);} /* Report */
|
||||
body.v35 div.i4 {background-image:url(../images/m4-ltr.gif);} /* none */
|
||||
|
||||
|
||||
div#mtop a#plus {background: transparent url(../images/plus_bg.gif) repeat-x 0 0px; margin-left:135px;}
|
||||
div#mtop a#plus span.plus_text {
|
||||
display: block;
|
||||
background: transparent url(../images/plus_start-ltr.gif) no-repeat left top;
|
||||
height: 29px;
|
||||
padding: 6px 14px;
|
||||
float:left;
|
||||
cursor: pointer;
|
||||
}
|
||||
div#mtop a#plus span span {display: inline; cursor: pointer;}
|
||||
div#mtop a#plus {display: block; font-size: 13px; height: 40px; margin-top:16px; position: relative;}
|
||||
img#btn_plus {
|
||||
background-position: left top;
|
||||
background-repeat: no-repeat;
|
||||
height: 29px;
|
||||
width: 36px;
|
||||
float:left;
|
||||
}
|
||||
#plus img.active {background-image: url(../images/plus_active-ltr.gif);}
|
||||
#plus img.inactive {background-image: url(../images/plus_inactive-ltr.gif);}
|
||||
|
||||
|
||||
|
||||
div#side_info,
|
||||
body.mod1 div#side_info,
|
||||
body.mod2 div#side_info,
|
||||
body.mod3 div#side_info {background: transparent url(../images/shadow-b-ltr.png) no-repeat left top;}
|
||||
|
||||
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
.wrapper {background: transparent url(../images/header_background.jpg) repeat-x left top;}
|
||||
|
||||
div#footer {background: #F1F1F1 url(../images/footer_background.gif) repeat-x center top;}
|
||||
|
||||
div#footer div#mfoot {background: transparent url(../images/footer_logo.gif) no-repeat 0px 21px;}
|
||||
|
||||
div#dynamic_header,
|
||||
body.mod1 div#dynamic_header,
|
||||
body.mod3 div#dynamic_header {background: transparent url(../images/artwork1-ltr.jpg) no-repeat center top;}
|
||||
|
||||
body.mod2 div#dynamic_header {background: transparent url(../images/artwork2-ltr.jpg) no-repeat center top;}
|
||||
|
||||
div#header {background-image: none;}
|
||||
|
||||
div#side_navi {background: transparent url(../images/shadow-a-ltr.png) no-repeat right top; margin-top: 30px;}
|
||||
div#side_navi a:hover {background: transparent url(../images/menu-bg-ltr.gif) no-repeat left top;}
|
||||
|
||||
body.v35 a#n1 img {background-image: url(../images/n1-ltr.gif);}
|
||||
body.v35 a#n2 img {background-image: url(../images/n2-ltr.gif);}
|
||||
body.v35 a#n3 img {background-image: url(../images/n3-ltr.gif);}
|
||||
body.v35 a#n4 img {background-image: url(../images/n4-ltr.gif);}
|
||||
body.v35 div.i1 {background-image:url(../images/m1-ltr.gif);} /* beide */
|
||||
body.v35 div.i2 {background-image:url(../images/m2-ltr.gif);} /* IGM */
|
||||
body.v35 div.i3 {background-image:url(../images/m3-ltr.gif);} /* Report */
|
||||
body.v35 div.i4 {background-image:url(../images/m4-ltr.gif);} /* none */
|
||||
|
||||
|
||||
div#mtop a#plus {background: transparent url(../images/plus_bg.gif) repeat-x 0 0px; margin-left:135px;}
|
||||
div#mtop a#plus span.plus_text {
|
||||
display: block;
|
||||
background: transparent url(../images/plus_start-ltr.gif) no-repeat left top;
|
||||
height: 29px;
|
||||
padding: 6px 14px;
|
||||
float:left;
|
||||
cursor: pointer;
|
||||
}
|
||||
div#mtop a#plus span span {display: inline; cursor: pointer;}
|
||||
div#mtop a#plus {display: block; font-size: 13px; height: 40px; margin-top:16px; position: relative;}
|
||||
img#btn_plus {
|
||||
background-position: left top;
|
||||
background-repeat: no-repeat;
|
||||
height: 29px;
|
||||
width: 36px;
|
||||
float:left;
|
||||
}
|
||||
#plus img.active {background-image: url(../images/plus_active-ltr.gif);}
|
||||
#plus img.inactive {background-image: url(../images/plus_inactive-ltr.gif);}
|
||||
|
||||
|
||||
|
||||
div#side_info,
|
||||
body.mod1 div#side_info,
|
||||
body.mod2 div#side_info,
|
||||
body.mod3 div#side_info {background: transparent url(../images/shadow-b-ltr.png) no-repeat left top;}
|
||||
|
||||
|
||||
|
||||
@@ -1,189 +1,189 @@
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/* --- Scrollbarantiwackler --- */
|
||||
body {overflow-y:scroll;}
|
||||
|
||||
body.manual {overflow-y: hidden; }
|
||||
|
||||
|
||||
/* Layout */
|
||||
html, body {height: 100%;}
|
||||
.wrapper {height: auto !important; /* Important Regel für moderne Browser */ height: 100%; /* Mindesthöhe für den IE */ min-height: 100%; position: relative;}
|
||||
|
||||
.ie6 .wrapper {text-align: center;} /* IE6 Hack damit das alles zentriert wird */
|
||||
.ie6 .wrapper * {text-align: left;} /* IE6 Hack im Content rückgängig machgen */
|
||||
|
||||
/* --- Table Row Highlight --- */
|
||||
table.row_table_data tr.hlight td {background-color: #fffaf0;}
|
||||
table.row_table_data tr.marked td {background-color: #fff8dc;}
|
||||
|
||||
/* Body */
|
||||
body {background-color: #FFFFFF;}
|
||||
body.manual {background-image: none;}
|
||||
|
||||
|
||||
div.popup3 {
|
||||
left: 50%;
|
||||
top:170px;
|
||||
margin-left: -285px;
|
||||
}
|
||||
#ce {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* --- Main Header --- */
|
||||
body.mod1 div#dynamic_header div.dyn1,
|
||||
body.mod1 div#dynamic_header div.dyn2,
|
||||
body.mod2 div#dynamic_header div.dyn1,
|
||||
body.mod2 div#dynamic_header div.dyn2,
|
||||
body.mod3 div#dynamic_header div.dyn1,
|
||||
body.mod3 div#dynamic_header div.dyn2 {display: none;}
|
||||
|
||||
body.mod2 div#dynamic_header {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
body.mod2 div#dynamic_header #ad_iframe{
|
||||
left: 50%;
|
||||
margin-left: -303px;
|
||||
}
|
||||
|
||||
div#dynamic_header,
|
||||
body.mod1 div#dynamic_header,
|
||||
body.mod2 div#dynamic_header,
|
||||
body.mod3 div#dynamic_header { height: 100px;}
|
||||
|
||||
/* Header Menu */
|
||||
div#header {height: 72px;}
|
||||
div#mtop,
|
||||
body.mod1 div#mtop,
|
||||
body.mod2 div#mtop,
|
||||
body.mod3 div#mtop {height: 72px; left: 50%; margin-left: -241px; z-index: 2; width: 700px;}
|
||||
a#n1 img, a#n2 img, a#n3 img, a#n4 img, div#n5 {height: 72px;}
|
||||
div#mtop div#n5 .reports {float: left;}
|
||||
div#mtop div#n5 .messages {float: right;}
|
||||
|
||||
|
||||
a#logo {display: none;}
|
||||
|
||||
/* World Status Peace, Day Night */
|
||||
img.day, img.night, div.peace {left: 12px; top: -89px;}
|
||||
div.peace {left: 12px; top: -98px;}
|
||||
|
||||
/* Exe Time */
|
||||
div#stime {display: inline; height: 0; left: 0; top: 0; width: 0;}
|
||||
div#ltime,
|
||||
body.mod1 div#ltime,
|
||||
body.mod2 div#ltime,
|
||||
body.mod3 div#ltime {min-width: 980px; left: 0; top: 111px; width: 100%; z-index: 1;}
|
||||
div#ltime div#ltimeWrap {margin: 0 auto 0 auto; width: 905px; position: relative;}
|
||||
div#ltime div.devEvents {position: absolute; bottom: -25px; left: 0px;}
|
||||
|
||||
/* Ressources */
|
||||
div#res,
|
||||
body.mod1 div#res,
|
||||
body.mod2 div#res,
|
||||
body.mod3 div#res {left: 0; min-width: 980px; top: 175px; width: 100%; z-index: 2;}
|
||||
div#resWrap {left: 50%; margin-left: -335px; position: relative; width: 552px;}
|
||||
div#res table {background-color: transparent;}
|
||||
div#res table td {background-color: transparent;}
|
||||
|
||||
/* Content */
|
||||
div#mid {background-image: none; float: none; height: auto; margin: 0 auto; width: 980px;}
|
||||
div#content,
|
||||
body.mod1 div#content,
|
||||
body.mod2 div#content,
|
||||
body.mod3 div#content {height: auto !important; /* Important Regel für moderne Browser */ /* Mindesthöhe für den IE */ min-height: 450px;}
|
||||
|
||||
.ie6div#content {padding-bottom: 5px;}
|
||||
/* Content Menu */
|
||||
div#side_navi {height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ min-height: 453px; width: 155px;}
|
||||
|
||||
|
||||
/* Content Villages & Links */
|
||||
div#side_info,
|
||||
body.mod1 div#side_info,
|
||||
body.mod2 div#side_info,
|
||||
body.mod3 div#side_info { height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ margin-left: 0; min-height: 453px; padding-left: 16px; width: 257px; z-index: 3;}
|
||||
div#side_info td.dot {
|
||||
width: 8px;
|
||||
|
||||
}
|
||||
div#side_info td.link {
|
||||
padding-right: 0px;
|
||||
white-space: normal;
|
||||
line-height: 18px;
|
||||
}
|
||||
div#side_info td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer-stopper {float: left; margin-bottom: 100px;} /* Stoppt den Footer beim nach obenschieben */
|
||||
.ie6 .footer-stopper, .ie7 .footer-stopper {height: 100px;} /* IE 6 und IE7 Hack damit Footer nicht über dem Content steht */
|
||||
div#footer {bottom: 0px; height: 90px; left: 0; margin-top: 90px; min-width: 980px; position: absolute; right: 0;
|
||||
font-size: 11px; line-height: 19px;
|
||||
}
|
||||
div#footer div#mfoot {height: 28px; margin: 0 auto; width: 905px;}
|
||||
div#footer div.footer-menu {color: #797979; text-align: right;}
|
||||
div#footer div#mfoot {text-align: right;}
|
||||
div#footer div#mfoot a, div#footer div#mfoot a:visited, div#footer div#mfoot a:active {color: #797979;}
|
||||
div#footer div#mfoot div.copyright {text-align: right; font-size: 11px;}
|
||||
|
||||
/* Footer Menu */
|
||||
div#footer ul.menu {list-style-type: none; margin: 0; padding: 0; position: absolute; top: 31px;}
|
||||
div#footer ul.menu.menu2 {right: 210px;}
|
||||
div#footer ul.menu li {float: left; margin: 0 5px;}
|
||||
div#footer ul.menu li a {color: #797979; margin: 0 3px;}
|
||||
div#footer ul.menu li.copyright {direction: ltr;}
|
||||
|
||||
|
||||
div#side_info table td {
|
||||
|
||||
}
|
||||
|
||||
#guide1 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-left: 1px dashed red;
|
||||
height: 100%;
|
||||
left: 50%;
|
||||
margin-left: -480px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide2 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-left: 1px dashed red;
|
||||
height: 100%;
|
||||
left: 50%;
|
||||
margin-left: -336px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide3 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-right: 1px dashed red;
|
||||
height: 100%;
|
||||
right: 50%;
|
||||
margin-right: -218px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide4 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-right: 1px dashed red;
|
||||
height: 100%;
|
||||
right: 50%;
|
||||
margin-right: -480px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
div.player p.btn, div.login p.btn {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/* --- Scrollbarantiwackler --- */
|
||||
body {overflow-y:scroll;}
|
||||
|
||||
body.manual {overflow-y: hidden; }
|
||||
|
||||
|
||||
/* Layout */
|
||||
html, body {height: 100%;}
|
||||
.wrapper {height: auto !important; /* Important Regel für moderne Browser */ height: 100%; /* Mindesthöhe für den IE */ min-height: 100%; position: relative;}
|
||||
|
||||
.ie6 .wrapper {text-align: center;} /* IE6 Hack damit das alles zentriert wird */
|
||||
.ie6 .wrapper * {text-align: left;} /* IE6 Hack im Content rückgängig machgen */
|
||||
|
||||
/* --- Table Row Highlight --- */
|
||||
table.row_table_data tr.hlight td {background-color: #fffaf0;}
|
||||
table.row_table_data tr.marked td {background-color: #fff8dc;}
|
||||
|
||||
/* Body */
|
||||
body {background-color: #FFFFFF;}
|
||||
body.manual {background-image: none;}
|
||||
|
||||
|
||||
div.popup3 {
|
||||
left: 50%;
|
||||
top:170px;
|
||||
margin-left: -285px;
|
||||
}
|
||||
#ce {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* --- Main Header --- */
|
||||
body.mod1 div#dynamic_header div.dyn1,
|
||||
body.mod1 div#dynamic_header div.dyn2,
|
||||
body.mod2 div#dynamic_header div.dyn1,
|
||||
body.mod2 div#dynamic_header div.dyn2,
|
||||
body.mod3 div#dynamic_header div.dyn1,
|
||||
body.mod3 div#dynamic_header div.dyn2 {display: none;}
|
||||
|
||||
body.mod2 div#dynamic_header {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
body.mod2 div#dynamic_header #ad_iframe{
|
||||
left: 50%;
|
||||
margin-left: -303px;
|
||||
}
|
||||
|
||||
div#dynamic_header,
|
||||
body.mod1 div#dynamic_header,
|
||||
body.mod2 div#dynamic_header,
|
||||
body.mod3 div#dynamic_header { height: 100px;}
|
||||
|
||||
/* Header Menu */
|
||||
div#header {height: 72px;}
|
||||
div#mtop,
|
||||
body.mod1 div#mtop,
|
||||
body.mod2 div#mtop,
|
||||
body.mod3 div#mtop {height: 72px; left: 50%; margin-left: -241px; z-index: 2; width: 700px;}
|
||||
a#n1 img, a#n2 img, a#n3 img, a#n4 img, div#n5 {height: 72px;}
|
||||
div#mtop div#n5 .reports {float: left;}
|
||||
div#mtop div#n5 .messages {float: right;}
|
||||
|
||||
|
||||
a#logo {display: none;}
|
||||
|
||||
/* World Status Peace, Day Night */
|
||||
img.day, img.night, div.peace {left: 12px; top: -89px;}
|
||||
div.peace {left: 12px; top: -98px;}
|
||||
|
||||
/* Exe Time */
|
||||
div#stime {display: inline; height: 0; left: 0; top: 0; width: 0;}
|
||||
div#ltime,
|
||||
body.mod1 div#ltime,
|
||||
body.mod2 div#ltime,
|
||||
body.mod3 div#ltime {min-width: 980px; left: 0; top: 111px; width: 100%; z-index: 1;}
|
||||
div#ltime div#ltimeWrap {margin: 0 auto 0 auto; width: 905px; position: relative;}
|
||||
div#ltime div.devEvents {position: absolute; bottom: -25px; left: 0px;}
|
||||
|
||||
/* Ressources */
|
||||
div#res,
|
||||
body.mod1 div#res,
|
||||
body.mod2 div#res,
|
||||
body.mod3 div#res {left: 0; min-width: 980px; top: 175px; width: 100%; z-index: 2;}
|
||||
div#resWrap {left: 50%; margin-left: -335px; position: relative; width: 552px;}
|
||||
div#res table {background-color: transparent;}
|
||||
div#res table td {background-color: transparent;}
|
||||
|
||||
/* Content */
|
||||
div#mid {background-image: none; float: none; height: auto; margin: 0 auto; width: 980px;}
|
||||
div#content,
|
||||
body.mod1 div#content,
|
||||
body.mod2 div#content,
|
||||
body.mod3 div#content {height: auto !important; /* Important Regel für moderne Browser */ /* Mindesthöhe für den IE */ min-height: 450px;}
|
||||
|
||||
.ie6div#content {padding-bottom: 5px;}
|
||||
/* Content Menu */
|
||||
div#side_navi {height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ min-height: 453px; width: 155px;}
|
||||
|
||||
|
||||
/* Content Villages & Links */
|
||||
div#side_info,
|
||||
body.mod1 div#side_info,
|
||||
body.mod2 div#side_info,
|
||||
body.mod3 div#side_info { height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ margin-left: 0; min-height: 453px; padding-left: 16px; width: 257px; z-index: 3;}
|
||||
div#side_info td.dot {
|
||||
width: 8px;
|
||||
|
||||
}
|
||||
div#side_info td.link {
|
||||
padding-right: 0px;
|
||||
white-space: normal;
|
||||
line-height: 18px;
|
||||
}
|
||||
div#side_info td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer-stopper {float: left; margin-bottom: 100px;} /* Stoppt den Footer beim nach obenschieben */
|
||||
.ie6 .footer-stopper, .ie7 .footer-stopper {height: 100px;} /* IE 6 und IE7 Hack damit Footer nicht über dem Content steht */
|
||||
div#footer {bottom: 0px; height: 90px; left: 0; margin-top: 90px; min-width: 980px; position: absolute; right: 0;
|
||||
font-size: 11px; line-height: 19px;
|
||||
}
|
||||
div#footer div#mfoot {height: 28px; margin: 0 auto; width: 905px;}
|
||||
div#footer div.footer-menu {color: #797979; text-align: right;}
|
||||
div#footer div#mfoot {text-align: right;}
|
||||
div#footer div#mfoot a, div#footer div#mfoot a:visited, div#footer div#mfoot a:active {color: #797979;}
|
||||
div#footer div#mfoot div.copyright {text-align: right; font-size: 11px;}
|
||||
|
||||
/* Footer Menu */
|
||||
div#footer ul.menu {list-style-type: none; margin: 0; padding: 0; position: absolute; top: 31px;}
|
||||
div#footer ul.menu.menu2 {right: 210px;}
|
||||
div#footer ul.menu li {float: left; margin: 0 5px;}
|
||||
div#footer ul.menu li a {color: #797979; margin: 0 3px;}
|
||||
div#footer ul.menu li.copyright {direction: ltr;}
|
||||
|
||||
|
||||
div#side_info table td {
|
||||
|
||||
}
|
||||
|
||||
#guide1 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-left: 1px dashed red;
|
||||
height: 100%;
|
||||
left: 50%;
|
||||
margin-left: -480px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide2 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-left: 1px dashed red;
|
||||
height: 100%;
|
||||
left: 50%;
|
||||
margin-left: -336px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide3 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-right: 1px dashed red;
|
||||
height: 100%;
|
||||
right: 50%;
|
||||
margin-right: -218px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide4 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-right: 1px dashed red;
|
||||
height: 100%;
|
||||
right: 50%;
|
||||
margin-right: -480px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
div.player p.btn, div.login p.btn {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/* Travian 3.6 Redesign Grafikpack */
|
||||
/* Version 1.05 */
|
||||
|
||||
|
||||
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/* Travian 3.6 Redesign Grafikpack */
|
||||
/* Version 1.05 */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/*
|
||||
*------------------------------------------------------------------------------
|
||||
* LANG is used to define the language-specific images and settings.
|
||||
*
|
||||
* Contains:
|
||||
* width, height, background-image, background-repeat, background-position
|
||||
*------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@import "../../modules/new_layout_ltr.css";
|
||||
|
||||
/* --- Colors ------------------------- */
|
||||
@import "../../modules/new_colors.css";
|
||||
|
||||
/* --- Icons, Images and Backgrounds ---------- */
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/*
|
||||
*------------------------------------------------------------------------------
|
||||
* LANG is used to define the language-specific images and settings.
|
||||
*
|
||||
* Contains:
|
||||
* width, height, background-image, background-repeat, background-position
|
||||
*------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@import "../../modules/new_layout_ltr.css";
|
||||
|
||||
/* --- Colors ------------------------- */
|
||||
@import "../../modules/new_colors.css";
|
||||
|
||||
/* --- Icons, Images and Backgrounds ---------- */
|
||||
@import "../../modules/new_images.css";
input#btn_login {width:97px; background-image: url(b/login.gif);}
input#btn_signup {width:97px; background-image: url(b/signup.gif);}
input#btn_ok {width:47px; background-image: url(b/ok.gif);}
input#btn_reply {width:97px; background-image: url(b/reply.gif);}
input#btn_send {width:97px; background-image: url(b/send.gif);}
input#btn_save {width:97px; background-image: url(b/save.gif);}
input#btn_delete {width:97px; background-image: url(b/delete.gif);}
input#btn_archiv {width:97px; background-image: url(b/archiv.gif);}
input#btn_back {width:97px; background-image: url(b/zurueck.html);}
input#btn_train {width:97px; background-image: url(b/train.gif);}
input#btn_back {width:97px; background-image: url(b/back.gif);}
input#btn_forward {width:97px; background-image: url(b/forward.gif);}
input#btn_demolish {width:97px; background-image: url(b/demolish.gif);}
input#btn_search {width:97px; background-image: url(b/search.gif);}
/* Ally Forum */
div.forum input#fbtn_ok {width:47px; background-image:url(b/ok.gif);}
div.forum input#fbtn_vote {width:97px; background-image:url(f/vote.gif);}
div.forum input#fbtn_result {width:97px; background-image:url(f/result.gif);}
div.forum input#fbtn_voting {width:97px; background-image:url(f/voting.gif);}
div.forum img#fbtn_reply {width:97px; background-image:url(f/reply.gif);}
div.forum img#fbtn_post {width:97px; background-image:url(f/post.gif);}
div.forum img#fbtn_newforum {width:97px; background-image:url(f/newforum.gif);}
/* ------------------- Texts ------------------- */
/* --------------------------------------------- */
/* news */
div#side_info h5 img {width:160px; height:15px;}
/* login */
div.login h1 img.img_login {width:468px; height:60px; background-image:url(t1/login.gif);}
div.login h5 img.img_u04 {width:160px; height:15px; background-image:url(t2/u04.gif);}
/* signup */
div.signup h1 img.anmelden {width:468px; height:60px; background-image:url(t1/anmelden.gif);}
div.signup h5 img.img_u05 {width:160px; height:15px; background-image:url(t2/u05.gif);}
div.signup img.img_u06 {width:160px; height:15px; background-image:url(t2/u06.gif);}
div.signup img.img_u07 {width:160px; height:15px; background-image:url(t2/u07.gif);}
/* activate */
div.activate h1 img.passwort {width:468px; height:60px; background-image:url(t1/passwort.gif);}
div.activate h5 img.img_u22 {width:160px; height:15px; background-image:url(t2/u22.gif);}
/* read/write message */
div.messages div.msg_content img#label {width:77px; height:34px;}
div.messages div.msg_content img.send {background-image:url(msg/block_bg24b.gif);}
div.messages div.msg_content img.read {background-image:url(msg/block_bg24a.gif);}
/* ------------------- Images ------------------- */
/* ---------------------------------------------- */
/* travian logo */
div#side_navi a#logo img {width:116px; height:60px; background-image:url(a/travian0.gif);}
div#side_navi a#logo img.logo_plus {background-image:url(a/travian1.gif);}
/* plus previews */
div.plus table#plus_features td.preview img.autovv {width:200px; height:56px; background-image:url(p/autovv.gif);}
div.plus table#plus_features td.preview img.bfilter {width:200px; height:45px; background-image:url(p/bfilter.gif);}
div.plus table#plus_features td.preview img.dorf3 {width:200px; height:186px; background-image:url(p/dorf3.jpg);}
div.plus table#plus_features td.preview img.p1 {width:179px; height:29px; background-image:url(p/p1.gif);}
div.plus table#plus_features td.preview img.p3 {width:163px; height:120px; background-image:url(p/p3.gif);}
div.plus table#plus_features td.preview img.p4 {width:197px; height:41px; background-image:url(p/p4.gif);}
div.plus table#plus_features td.preview img.p5 {width:132px; height:51px; background-image:url(p/p5.gif);}
div.plus table#plus_features td.preview img.p6 {width:111px; height:29px; background-image:url(p/p6.gif);}
div.plus table#plus_features td.preview img.p7 {width:61px; height:86px; background-image:url(p/p7.gif);}
div.plus table#plus_features td.preview img.p8 {width:117px; height:121px; background-image:url(p/p8.gif);}
div.plus table#plus_features td.preview img.sort {width:200px; height:38px; background-image:url(p/sort.jpg);}
div.plus table#plus_features td.preview img.st1 {width:200px; height:90px; background-image:url(p/st1.gif);}
div.plus table#plus_features td.preview img.xxl_map {width:146px; height:112px; background-image:url(p/xxl_map.gif);}
input#btn_search {width:97px; background-image: url(b/search.gif);}
|
||||
|
||||
@@ -1,58 +1,58 @@
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
.wrapper {background: transparent url(../images/header_background.jpg) repeat-x left top;}
|
||||
|
||||
div#footer {background: #F1F1F1 url(../images/footer_background.gif) repeat-x center top;}
|
||||
|
||||
div#footer div#mfoot {background: transparent url(../images/footer_logo.gif) no-repeat 0px 21px;}
|
||||
|
||||
div#dynamic_header,
|
||||
body.mod1 div#dynamic_header,
|
||||
body.mod3 div#dynamic_header {background: transparent url(../images/artwork1-ltr.jpg) no-repeat center top;}
|
||||
|
||||
body.mod2 div#dynamic_header {background: transparent url(../images/artwork2-ltr.jpg) no-repeat center top;}
|
||||
|
||||
div#header {background-image: none;}
|
||||
|
||||
div#side_navi {background: transparent url(../images/shadow-a-ltr.png) no-repeat right top; margin-top: 30px;}
|
||||
div#side_navi a:hover {background: transparent url(../images/menu-bg-ltr.gif) no-repeat left top;}
|
||||
|
||||
body.v35 a#n1 img {background-image: url(../images/n1-ltr.gif);}
|
||||
body.v35 a#n2 img {background-image: url(../images/n2-ltr.gif);}
|
||||
body.v35 a#n3 img {background-image: url(../images/n3-ltr.gif);}
|
||||
body.v35 a#n4 img {background-image: url(../images/n4-ltr.gif);}
|
||||
body.v35 div.i1 {background-image:url(../images/m1-ltr.gif);} /* beide */
|
||||
body.v35 div.i2 {background-image:url(../images/m2-ltr.gif);} /* IGM */
|
||||
body.v35 div.i3 {background-image:url(../images/m3-ltr.gif);} /* Report */
|
||||
body.v35 div.i4 {background-image:url(../images/m4-ltr.gif);} /* none */
|
||||
|
||||
|
||||
div#mtop a#plus {background: transparent url(../images/plus_bg.gif) repeat-x 0 0px; margin-left:135px;}
|
||||
div#mtop a#plus span.plus_text {
|
||||
display: block;
|
||||
background: transparent url(../images/plus_start-ltr.gif) no-repeat left top;
|
||||
height: 29px;
|
||||
padding: 6px 14px;
|
||||
float:left;
|
||||
cursor: pointer;
|
||||
}
|
||||
div#mtop a#plus span span {display: inline; cursor: pointer;}
|
||||
div#mtop a#plus {display: block; font-size: 13px; height: 40px; margin-top:16px; position: relative;}
|
||||
img#btn_plus {
|
||||
background-position: left top;
|
||||
background-repeat: no-repeat;
|
||||
height: 29px;
|
||||
width: 36px;
|
||||
float:left;
|
||||
}
|
||||
#plus img.active {background-image: url(../images/plus_active-ltr.gif);}
|
||||
#plus img.inactive {background-image: url(../images/plus_inactive-ltr.gif);}
|
||||
|
||||
|
||||
|
||||
div#side_info,
|
||||
body.mod1 div#side_info,
|
||||
body.mod2 div#side_info,
|
||||
body.mod3 div#side_info {background: transparent url(../images/shadow-b-ltr.png) no-repeat left top;}
|
||||
|
||||
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
.wrapper {background: transparent url(../images/header_background.jpg) repeat-x left top;}
|
||||
|
||||
div#footer {background: #F1F1F1 url(../images/footer_background.gif) repeat-x center top;}
|
||||
|
||||
div#footer div#mfoot {background: transparent url(../images/footer_logo.gif) no-repeat 0px 21px;}
|
||||
|
||||
div#dynamic_header,
|
||||
body.mod1 div#dynamic_header,
|
||||
body.mod3 div#dynamic_header {background: transparent url(../images/artwork1-ltr.jpg) no-repeat center top;}
|
||||
|
||||
body.mod2 div#dynamic_header {background: transparent url(../images/artwork2-ltr.jpg) no-repeat center top;}
|
||||
|
||||
div#header {background-image: none;}
|
||||
|
||||
div#side_navi {background: transparent url(../images/shadow-a-ltr.png) no-repeat right top; margin-top: 30px;}
|
||||
div#side_navi a:hover {background: transparent url(../images/menu-bg-ltr.gif) no-repeat left top;}
|
||||
|
||||
body.v35 a#n1 img {background-image: url(../images/n1-ltr.gif);}
|
||||
body.v35 a#n2 img {background-image: url(../images/n2-ltr.gif);}
|
||||
body.v35 a#n3 img {background-image: url(../images/n3-ltr.gif);}
|
||||
body.v35 a#n4 img {background-image: url(../images/n4-ltr.gif);}
|
||||
body.v35 div.i1 {background-image:url(../images/m1-ltr.gif);} /* beide */
|
||||
body.v35 div.i2 {background-image:url(../images/m2-ltr.gif);} /* IGM */
|
||||
body.v35 div.i3 {background-image:url(../images/m3-ltr.gif);} /* Report */
|
||||
body.v35 div.i4 {background-image:url(../images/m4-ltr.gif);} /* none */
|
||||
|
||||
|
||||
div#mtop a#plus {background: transparent url(../images/plus_bg.gif) repeat-x 0 0px; margin-left:135px;}
|
||||
div#mtop a#plus span.plus_text {
|
||||
display: block;
|
||||
background: transparent url(../images/plus_start-ltr.gif) no-repeat left top;
|
||||
height: 29px;
|
||||
padding: 6px 14px;
|
||||
float:left;
|
||||
cursor: pointer;
|
||||
}
|
||||
div#mtop a#plus span span {display: inline; cursor: pointer;}
|
||||
div#mtop a#plus {display: block; font-size: 13px; height: 40px; margin-top:16px; position: relative;}
|
||||
img#btn_plus {
|
||||
background-position: left top;
|
||||
background-repeat: no-repeat;
|
||||
height: 29px;
|
||||
width: 36px;
|
||||
float:left;
|
||||
}
|
||||
#plus img.active {background-image: url(../images/plus_active-ltr.gif);}
|
||||
#plus img.inactive {background-image: url(../images/plus_inactive-ltr.gif);}
|
||||
|
||||
|
||||
|
||||
div#side_info,
|
||||
body.mod1 div#side_info,
|
||||
body.mod2 div#side_info,
|
||||
body.mod3 div#side_info {background: transparent url(../images/shadow-b-ltr.png) no-repeat left top;}
|
||||
|
||||
|
||||
|
||||
@@ -1,189 +1,189 @@
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/* --- Scrollbarantiwackler --- */
|
||||
body {overflow-y:scroll;}
|
||||
|
||||
body.manual {overflow-y: hidden; }
|
||||
|
||||
|
||||
/* Layout */
|
||||
html, body {height: 100%;}
|
||||
.wrapper {height: auto !important; /* Important Regel für moderne Browser */ height: 100%; /* Mindesthöhe für den IE */ min-height: 100%; position: relative;}
|
||||
|
||||
.ie6 .wrapper {text-align: center;} /* IE6 Hack damit das alles zentriert wird */
|
||||
.ie6 .wrapper * {text-align: left;} /* IE6 Hack im Content rückgängig machgen */
|
||||
|
||||
/* --- Table Row Highlight --- */
|
||||
table.row_table_data tr.hlight td {background-color: #fffaf0;}
|
||||
table.row_table_data tr.marked td {background-color: #fff8dc;}
|
||||
|
||||
/* Body */
|
||||
body {background-color: #FFFFFF;}
|
||||
body.manual {background-image: none;}
|
||||
|
||||
|
||||
div.popup3 {
|
||||
left: 50%;
|
||||
top:170px;
|
||||
margin-left: -285px;
|
||||
}
|
||||
#ce {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* --- Main Header --- */
|
||||
body.mod1 div#dynamic_header div.dyn1,
|
||||
body.mod1 div#dynamic_header div.dyn2,
|
||||
body.mod2 div#dynamic_header div.dyn1,
|
||||
body.mod2 div#dynamic_header div.dyn2,
|
||||
body.mod3 div#dynamic_header div.dyn1,
|
||||
body.mod3 div#dynamic_header div.dyn2 {display: none;}
|
||||
|
||||
body.mod2 div#dynamic_header {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
body.mod2 div#dynamic_header #ad_iframe{
|
||||
left: 50%;
|
||||
margin-left: -303px;
|
||||
}
|
||||
|
||||
div#dynamic_header,
|
||||
body.mod1 div#dynamic_header,
|
||||
body.mod2 div#dynamic_header,
|
||||
body.mod3 div#dynamic_header { height: 100px;}
|
||||
|
||||
/* Header Menu */
|
||||
div#header {height: 72px;}
|
||||
div#mtop,
|
||||
body.mod1 div#mtop,
|
||||
body.mod2 div#mtop,
|
||||
body.mod3 div#mtop {height: 72px; left: 50%; margin-left: -241px; z-index: 2; width: 700px;}
|
||||
a#n1 img, a#n2 img, a#n3 img, a#n4 img, div#n5 {height: 72px;}
|
||||
div#mtop div#n5 .reports {float: left;}
|
||||
div#mtop div#n5 .messages {float: right;}
|
||||
|
||||
|
||||
a#logo {display: none;}
|
||||
|
||||
/* World Status Peace, Day Night */
|
||||
img.day, img.night, div.peace {left: 12px; top: -89px;}
|
||||
div.peace {left: 12px; top: -98px;}
|
||||
|
||||
/* Exe Time */
|
||||
div#stime {display: inline; height: 0; left: 0; top: 0; width: 0;}
|
||||
div#ltime,
|
||||
body.mod1 div#ltime,
|
||||
body.mod2 div#ltime,
|
||||
body.mod3 div#ltime {min-width: 980px; left: 0; top: 111px; width: 100%; z-index: 1;}
|
||||
div#ltime div#ltimeWrap {margin: 0 auto 0 auto; width: 905px; position: relative;}
|
||||
div#ltime div.devEvents {position: absolute; bottom: -25px; left: 0px;}
|
||||
|
||||
/* Ressources */
|
||||
div#res,
|
||||
body.mod1 div#res,
|
||||
body.mod2 div#res,
|
||||
body.mod3 div#res {left: 0; min-width: 980px; top: 175px; width: 100%; z-index: 2;}
|
||||
div#resWrap {left: 50%; margin-left: -335px; position: relative; width: 552px;}
|
||||
div#res table {background-color: transparent;}
|
||||
div#res table td {background-color: transparent;}
|
||||
|
||||
/* Content */
|
||||
div#mid {background-image: none; float: none; height: auto; margin: 0 auto; width: 980px;}
|
||||
div#content,
|
||||
body.mod1 div#content,
|
||||
body.mod2 div#content,
|
||||
body.mod3 div#content {height: auto !important; /* Important Regel für moderne Browser */ /* Mindesthöhe für den IE */ min-height: 450px;}
|
||||
|
||||
.ie6div#content {padding-bottom: 5px;}
|
||||
/* Content Menu */
|
||||
div#side_navi {height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ min-height: 453px; width: 155px;}
|
||||
|
||||
|
||||
/* Content Villages & Links */
|
||||
div#side_info,
|
||||
body.mod1 div#side_info,
|
||||
body.mod2 div#side_info,
|
||||
body.mod3 div#side_info { height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ margin-left: 0; min-height: 453px; padding-left: 16px; width: 257px; z-index: 3;}
|
||||
div#side_info td.dot {
|
||||
width: 8px;
|
||||
|
||||
}
|
||||
div#side_info td.link {
|
||||
padding-right: 0px;
|
||||
white-space: normal;
|
||||
line-height: 18px;
|
||||
}
|
||||
div#side_info td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer-stopper {float: left; margin-bottom: 100px;} /* Stoppt den Footer beim nach obenschieben */
|
||||
.ie6 .footer-stopper, .ie7 .footer-stopper {height: 100px;} /* IE 6 und IE7 Hack damit Footer nicht über dem Content steht */
|
||||
div#footer {bottom: 0px; height: 90px; left: 0; margin-top: 90px; min-width: 980px; position: absolute; right: 0;
|
||||
font-size: 11px; line-height: 19px;
|
||||
}
|
||||
div#footer div#mfoot {height: 28px; margin: 0 auto; width: 905px;}
|
||||
div#footer div.footer-menu {color: #797979; text-align: right;}
|
||||
div#footer div#mfoot {text-align: right;}
|
||||
div#footer div#mfoot a, div#footer div#mfoot a:visited, div#footer div#mfoot a:active {color: #797979;}
|
||||
div#footer div#mfoot div.copyright {text-align: right; font-size: 11px;}
|
||||
|
||||
/* Footer Menu */
|
||||
div#footer ul.menu {list-style-type: none; margin: 0; padding: 0; position: absolute; top: 31px;}
|
||||
div#footer ul.menu.menu2 {right: 210px;}
|
||||
div#footer ul.menu li {float: left; margin: 0 5px;}
|
||||
div#footer ul.menu li a {color: #797979; margin: 0 3px;}
|
||||
div#footer ul.menu li.copyright {direction: ltr;}
|
||||
|
||||
|
||||
div#side_info table td {
|
||||
|
||||
}
|
||||
|
||||
#guide1 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-left: 1px dashed red;
|
||||
height: 100%;
|
||||
left: 50%;
|
||||
margin-left: -480px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide2 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-left: 1px dashed red;
|
||||
height: 100%;
|
||||
left: 50%;
|
||||
margin-left: -336px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide3 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-right: 1px dashed red;
|
||||
height: 100%;
|
||||
right: 50%;
|
||||
margin-right: -218px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide4 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-right: 1px dashed red;
|
||||
height: 100%;
|
||||
right: 50%;
|
||||
margin-right: -480px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
div.player p.btn, div.login p.btn {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/* --- Scrollbarantiwackler --- */
|
||||
body {overflow-y:scroll;}
|
||||
|
||||
body.manual {overflow-y: hidden; }
|
||||
|
||||
|
||||
/* Layout */
|
||||
html, body {height: 100%;}
|
||||
.wrapper {height: auto !important; /* Important Regel für moderne Browser */ height: 100%; /* Mindesthöhe für den IE */ min-height: 100%; position: relative;}
|
||||
|
||||
.ie6 .wrapper {text-align: center;} /* IE6 Hack damit das alles zentriert wird */
|
||||
.ie6 .wrapper * {text-align: left;} /* IE6 Hack im Content rückgängig machgen */
|
||||
|
||||
/* --- Table Row Highlight --- */
|
||||
table.row_table_data tr.hlight td {background-color: #fffaf0;}
|
||||
table.row_table_data tr.marked td {background-color: #fff8dc;}
|
||||
|
||||
/* Body */
|
||||
body {background-color: #FFFFFF;}
|
||||
body.manual {background-image: none;}
|
||||
|
||||
|
||||
div.popup3 {
|
||||
left: 50%;
|
||||
top:170px;
|
||||
margin-left: -285px;
|
||||
}
|
||||
#ce {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* --- Main Header --- */
|
||||
body.mod1 div#dynamic_header div.dyn1,
|
||||
body.mod1 div#dynamic_header div.dyn2,
|
||||
body.mod2 div#dynamic_header div.dyn1,
|
||||
body.mod2 div#dynamic_header div.dyn2,
|
||||
body.mod3 div#dynamic_header div.dyn1,
|
||||
body.mod3 div#dynamic_header div.dyn2 {display: none;}
|
||||
|
||||
body.mod2 div#dynamic_header {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
body.mod2 div#dynamic_header #ad_iframe{
|
||||
left: 50%;
|
||||
margin-left: -303px;
|
||||
}
|
||||
|
||||
div#dynamic_header,
|
||||
body.mod1 div#dynamic_header,
|
||||
body.mod2 div#dynamic_header,
|
||||
body.mod3 div#dynamic_header { height: 100px;}
|
||||
|
||||
/* Header Menu */
|
||||
div#header {height: 72px;}
|
||||
div#mtop,
|
||||
body.mod1 div#mtop,
|
||||
body.mod2 div#mtop,
|
||||
body.mod3 div#mtop {height: 72px; left: 50%; margin-left: -241px; z-index: 2; width: 700px;}
|
||||
a#n1 img, a#n2 img, a#n3 img, a#n4 img, div#n5 {height: 72px;}
|
||||
div#mtop div#n5 .reports {float: left;}
|
||||
div#mtop div#n5 .messages {float: right;}
|
||||
|
||||
|
||||
a#logo {display: none;}
|
||||
|
||||
/* World Status Peace, Day Night */
|
||||
img.day, img.night, div.peace {left: 12px; top: -89px;}
|
||||
div.peace {left: 12px; top: -98px;}
|
||||
|
||||
/* Exe Time */
|
||||
div#stime {display: inline; height: 0; left: 0; top: 0; width: 0;}
|
||||
div#ltime,
|
||||
body.mod1 div#ltime,
|
||||
body.mod2 div#ltime,
|
||||
body.mod3 div#ltime {min-width: 980px; left: 0; top: 111px; width: 100%; z-index: 1;}
|
||||
div#ltime div#ltimeWrap {margin: 0 auto 0 auto; width: 905px; position: relative;}
|
||||
div#ltime div.devEvents {position: absolute; bottom: -25px; left: 0px;}
|
||||
|
||||
/* Ressources */
|
||||
div#res,
|
||||
body.mod1 div#res,
|
||||
body.mod2 div#res,
|
||||
body.mod3 div#res {left: 0; min-width: 980px; top: 175px; width: 100%; z-index: 2;}
|
||||
div#resWrap {left: 50%; margin-left: -335px; position: relative; width: 552px;}
|
||||
div#res table {background-color: transparent;}
|
||||
div#res table td {background-color: transparent;}
|
||||
|
||||
/* Content */
|
||||
div#mid {background-image: none; float: none; height: auto; margin: 0 auto; width: 980px;}
|
||||
div#content,
|
||||
body.mod1 div#content,
|
||||
body.mod2 div#content,
|
||||
body.mod3 div#content {height: auto !important; /* Important Regel für moderne Browser */ /* Mindesthöhe für den IE */ min-height: 450px;}
|
||||
|
||||
.ie6div#content {padding-bottom: 5px;}
|
||||
/* Content Menu */
|
||||
div#side_navi {height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ min-height: 453px; width: 155px;}
|
||||
|
||||
|
||||
/* Content Villages & Links */
|
||||
div#side_info,
|
||||
body.mod1 div#side_info,
|
||||
body.mod2 div#side_info,
|
||||
body.mod3 div#side_info { height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ margin-left: 0; min-height: 453px; padding-left: 16px; width: 257px; z-index: 3;}
|
||||
div#side_info td.dot {
|
||||
width: 8px;
|
||||
|
||||
}
|
||||
div#side_info td.link {
|
||||
padding-right: 0px;
|
||||
white-space: normal;
|
||||
line-height: 18px;
|
||||
}
|
||||
div#side_info td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer-stopper {float: left; margin-bottom: 100px;} /* Stoppt den Footer beim nach obenschieben */
|
||||
.ie6 .footer-stopper, .ie7 .footer-stopper {height: 100px;} /* IE 6 und IE7 Hack damit Footer nicht über dem Content steht */
|
||||
div#footer {bottom: 0px; height: 90px; left: 0; margin-top: 90px; min-width: 980px; position: absolute; right: 0;
|
||||
font-size: 11px; line-height: 19px;
|
||||
}
|
||||
div#footer div#mfoot {height: 28px; margin: 0 auto; width: 905px;}
|
||||
div#footer div.footer-menu {color: #797979; text-align: right;}
|
||||
div#footer div#mfoot {text-align: right;}
|
||||
div#footer div#mfoot a, div#footer div#mfoot a:visited, div#footer div#mfoot a:active {color: #797979;}
|
||||
div#footer div#mfoot div.copyright {text-align: right; font-size: 11px;}
|
||||
|
||||
/* Footer Menu */
|
||||
div#footer ul.menu {list-style-type: none; margin: 0; padding: 0; position: absolute; top: 31px;}
|
||||
div#footer ul.menu.menu2 {right: 210px;}
|
||||
div#footer ul.menu li {float: left; margin: 0 5px;}
|
||||
div#footer ul.menu li a {color: #797979; margin: 0 3px;}
|
||||
div#footer ul.menu li.copyright {direction: ltr;}
|
||||
|
||||
|
||||
div#side_info table td {
|
||||
|
||||
}
|
||||
|
||||
#guide1 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-left: 1px dashed red;
|
||||
height: 100%;
|
||||
left: 50%;
|
||||
margin-left: -480px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide2 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-left: 1px dashed red;
|
||||
height: 100%;
|
||||
left: 50%;
|
||||
margin-left: -336px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide3 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-right: 1px dashed red;
|
||||
height: 100%;
|
||||
right: 50%;
|
||||
margin-right: -218px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#guide4 {
|
||||
position: fixed;
|
||||
width: 0;
|
||||
border-right: 1px dashed red;
|
||||
height: 100%;
|
||||
right: 50%;
|
||||
margin-right: -480px;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
div.player p.btn, div.login p.btn {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/* Travian 3.6 Redesign Grafikpack */
|
||||
/* Version 1.05 */
|
||||
|
||||
|
||||
|
||||
@CHARSET "UTF-8";
|
||||
|
||||
/* Travian 3.6 Redesign Grafikpack */
|
||||
/* Version 1.05 */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -167,6 +167,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%allimedal` (
|
||||
`week` int(11) NOT NULL,
|
||||
`points` bigint(255) NOT NULL,
|
||||
`img` varchar(255) NOT NULL,
|
||||
`del` tinyint(1) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
@@ -935,6 +936,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%medal` (
|
||||
`week` int(10) unsigned NOT NULL,
|
||||
`points` varchar(15) NOT NULL,
|
||||
`img` varchar(10) NOT NULL,
|
||||
`del` tinyint(1) unsigned NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
|
||||
|
||||
|
||||
@@ -1,273 +0,0 @@
|
||||
<?php
|
||||
|
||||
if(isset($_GET['c']) && $_GET['c'] == 1) {
|
||||
echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php check cmod.</span></div><br>";
|
||||
}
|
||||
?>
|
||||
<form action="process.php" method="post" id="dataform">
|
||||
|
||||
<p>
|
||||
<span class="f10 c">SERVER RELATED</span>
|
||||
<table><tr>
|
||||
<td><span class="f9 c6">Server name:</span></td><td width="140"><input type="text" name="servername" id="servername" value="TravianZ"></td></tr><tr>
|
||||
<td><span class="f9 c6">Server speed:</span></td><td><input name="speed" type="text" id="speed" value="1" size="2"></td></tr><tr>
|
||||
<td><span class="f9 c6">Troop speed:</span></td><td width="140"><input type="text" name="incspeed" id="incspeed" value="1" size="2"></td></tr><tr>
|
||||
<td><span class="f9 c6">Evasion speed:</span></td><td><input name="evasionspeed" type="text" id="evasionspeed" value="1" size="2"></td></tr><tr>
|
||||
<td><span class="f9 c6">Trader capacity (1 = 1x...):</span></td><td width="140"><input type="text" name="tradercap" id="tradercap" value="1" size="2"></td></tr><tr>
|
||||
<td><span class="f9 c6">World size:</span></td><td>
|
||||
<select name="wmax">
|
||||
<option value="10">10x10</option>
|
||||
<option value="25">25x25</option>
|
||||
<option value="50">50x50</option>
|
||||
<option value="100" selected="selected">100x100</option>
|
||||
<option value="150">150x150</option>
|
||||
<option value="200">200x200</option>
|
||||
<option value="250">250x250</option>
|
||||
<option value="300">300x300</option>
|
||||
<option value="350">350x350</option>
|
||||
<option value="400">400x400</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Register Open:</span></td><td>
|
||||
<select name="reg_open">
|
||||
<option value="True" selected="selected">True</option>
|
||||
<option value="False">False</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Server:</span></td><td><input name="server" type="text" id="homepage" value="http://<?php echo $_SERVER['HTTP_HOST']; ?>/"></td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Domain:</span></td><td><input name="domain" type="text" id="homepage" value="http://<?php echo $_SERVER['HTTP_HOST']; ?>/"></td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Homepage:</span></td><td><input name="homepage" type="text" id="homepage" value="http://<?php echo $_SERVER['HTTP_HOST']; ?>/"></td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Language:</span></td><td>
|
||||
<select name="lang">
|
||||
<option value="en" selected="selected">English</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Beginners protection length:</span></td><td>
|
||||
<select name="beginner">
|
||||
<option value="0">None (0 hours)</option>
|
||||
<option value="21600">6 hours</option>
|
||||
<option value="43200" selected="selected">12 hours</option>
|
||||
<option value="86400">24 hours</option>
|
||||
<option value="129600">36 hours</option>
|
||||
<option value="172800">48 hours</option>
|
||||
<option value="259200">72 hours</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Plus account length:</span></td><td>
|
||||
<select name="plus_time">
|
||||
<option value="(3600*12)">12 hours</option>
|
||||
<option value="(3600*24)">1 day</option>
|
||||
<option value="(3600*24*2)">2 days</option>
|
||||
<option value="(3600*24*3)">3 days</option>
|
||||
<option value="(3600*24*4)">4 days</option>
|
||||
<option value="(3600*24*5)">5 days</option>
|
||||
<option value="(3600*24*6)">6 days</option>
|
||||
<option value="(3600*24*7)" selected="selected">7 days</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
<td><span class="f9 c6">+25% production length:</span></td><td>
|
||||
<select name="plus_production">
|
||||
<option value="(3600*12)">12 hours</option>
|
||||
<option value="(3600*24)">1 day</option>
|
||||
<option value="(3600*24*2)">2 days</option>
|
||||
<option value="(3600*24*3)">3 days</option>
|
||||
<option value="(3600*24*4)">4 days</option>
|
||||
<option value="(3600*24*5)">5 days</option>
|
||||
<option value="(3600*24*6)">6 days</option>
|
||||
<option value="(3600*24*7)" selected="selected">7 days</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Storage Multipler:</span></td><td width="140"><input type="text" name="storage_multiplier" id="storage_multiplier" value="1"></td></tr><tr>
|
||||
<td><span class="f9 c6">Tourn Threshold:</span></td><td width="140"><input type="text" name="ts_threshold" id="ts_threshold" value="20"></td></tr><tr>
|
||||
<td><span class="f9 c6">Great Workshop:</span></td><td>
|
||||
<select name="great_wks">
|
||||
<option value="True">True</option>
|
||||
<option value="False" selected="selected">False</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
<td><span class="f9 c6">ww:</span></td><td>
|
||||
<select name="ww">
|
||||
<option value="True">True</option>
|
||||
<option value="False" selected="selected">False</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
<td><span class="f9 c6">Peace system:</span></td><td>
|
||||
<select name="peace">
|
||||
<option value="0" selected="selected">None</option>
|
||||
<option value="1">Normal</option>
|
||||
<option value="2">Christmas</option>
|
||||
<option value="3">New Year</option>
|
||||
<option value="4">Easter</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="f10 c">ADMIN ACCOUNT</span>
|
||||
<table>
|
||||
<tr><td><span class="f9 c6">Admin name:</span></td><td><input type="text" name="aname" id="aname" value=""></td></tr>
|
||||
<tr><td><span class="f9 c6">Admin email:</span></td><td><input type="text" name="aemail" id="aemail" value=""></td></tr>
|
||||
|
||||
<td><span class="f9 c6">Show admin in stats:</span></td><td>
|
||||
<select name="admin_rank">
|
||||
<option value="True">True</option>
|
||||
<option value="False" selected="selected">False</option>
|
||||
</select>
|
||||
</td></tr><tr></tr>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="f10 c">SQL RELATED</span>
|
||||
<table><tr>
|
||||
<td><span class="f9 c6">Hostname:</span></td><td><input name="sserver" type="text" id="sserver" value="localhost"></td></tr><tr>
|
||||
<td><span class="f9 c6">Username:</span></td><td><input name="suser" type="text" id="suser" value=""></td></tr><tr>
|
||||
<td><span class="f9 c6">Password:</span></td><td><input type="text" name="spass" id="spass"></td></tr><tr>
|
||||
<td><span class="f9 c6">DB name:</span></td><td><input type="text" name="sdb" id="sdb"></td></tr><tr>
|
||||
<td><span class="f9 c6">Prefix:</span></td><td><input type="text" name="prefix" id="prefix" value="s1_" size="5"></td></tr>
|
||||
<td><span class="f9 c6">Type:</span></td><td><select name="connectt">
|
||||
<option value="0" selected="selected">MYSQL</option>
|
||||
<option value="1" disabled="disabled">MYSQLi (NOT DONE)</option>
|
||||
</select></td></tr>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<!-- <LEFT BOX - ADMIN RELATED>
|
||||
|
||||
<span><center><strong>ADMIN RELATED</strong></center></span><br />
|
||||
<span class="f9 c6 cc2">Admin Name:</span><span class="cc3"><input type="text" name="aname" id="aname"></span><br /><br />
|
||||
<span class="f9 c6 cc2">Admin Email:</span><span class="cc3"><input name="aemail" type="text" id="aemail"></span><br /><br />
|
||||
<span class="f9 c6 cc2">Admin rank:</span><span class="cc3" style="position: absolute;right:20%;"><select name="admin_rank">
|
||||
<option value="false">No</option>
|
||||
<option value="true" selected="selected">Yes</option></select></span><br /><br />
|
||||
|
||||
<!-- </LEFT BOX - ADMIN RELATED> -->
|
||||
|
||||
<!-- <RIGHT BOX - GPACK RELATED>
|
||||
|
||||
<span><center><strong>GPACK RELATED</strong></center></span><br />
|
||||
|
||||
|
||||
<span class="f9 c6 c2">GPack:</span><span class="c3"><select name="gpack">
|
||||
<option value="false" selected="selected">No</option>
|
||||
<option value="true" disabled="disabled">Yes</option></select></span><br /><br />
|
||||
<span class="f9 c6 c2">GPack Design:</span><span class="c3"><select name="gp_locate">
|
||||
<option value="gpack/travian_default/" selected="selected">Travian Default
|
||||
<option value="gpack/travianx_v1/">TravianX v1 by Dzoki</option></select></span><br /><br />
|
||||
|
||||
-->
|
||||
<!-- </RIGHT BOX - GPACK RELATED> -->
|
||||
|
||||
|
||||
<p>
|
||||
<span class="f10 c">NEWSBOX OPTIONS</span>
|
||||
<table><tr>
|
||||
<td><span class="f9 c6">Newsbox 1:</span></td><td><select name="box1">
|
||||
<option value="true" selected="selected">Enabled</option>
|
||||
<option value="false">Disabled</option>
|
||||
</select></td></tr>
|
||||
<td><span class="f9 c6">Newsbox 2:</span></td><td><select name="box2">
|
||||
<option value="true" selected="selected">Enabled</option>
|
||||
<option value="false">Disabled</option>
|
||||
</select></td></tr>
|
||||
<td><span class="f9 c6">Newsbox 3:</span></td><td><select name="box3">
|
||||
<option value="true" selected="selected">Enabled</option>
|
||||
<option value="false">Disabled</option>
|
||||
</select></td></tr>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="f10 c">LOG RELATED (You should disable them)</span>
|
||||
<table><tr>
|
||||
<td><span class="f9 c6">Log Building:</span></td><td><select name="log_build">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr><tr>
|
||||
<td><span class="f9 c6">Log Tech:</span></td><td><select name="log_tech">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr><tr>
|
||||
<td><span class="f9 c6">Log Login:</span></td><td><select name="log_login">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr>
|
||||
<tr>
|
||||
<td><span class="f9 c6">Log Gold:</span></td><td><select name="log_gold_fin">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr>
|
||||
<tr> <td><span class="f9 c6">Log Admin:</span></td><td><select name="log_admin">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr>
|
||||
<tr> <td><span class="f9 c6">Log War:</span></td><td><select name="log_war">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr><tr>
|
||||
<td><span class="f9 c6">Log Market:</span></td><td><select name="log_market">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr><tr>
|
||||
<td><span class="f9 c6">Log Illegal:</span></td><td><select name="log_illegal">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr><tr>
|
||||
<td><span class="f9 c6">Log :</span></td><td><select name="">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class="f10 c">EXTRA OPTIONS</span>
|
||||
<table><tr>
|
||||
<td><span class="f9 c6">Quest:</span></td><td><select name="quest">
|
||||
<option value="true" selected="selected">Yes</option>
|
||||
<option value="false">No</option>
|
||||
</select></td></tr><tr>
|
||||
<td><span class="f9 c6">Activate:</span></td><td><select name="activate">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr><tr>
|
||||
<td><span class="f9 c6">Limit Mailbox:</span></td><td><select name="limit_mailbox">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select> (NOT DONE)</td></tr>
|
||||
<tr><td><span class="f9 c6">Max mails:</span></td><td><input type="text" name="max_mails" id="max_mails" value="30" size="4"> (NOT DONE)</td></tr>
|
||||
<tr>
|
||||
<td><span class="f9 c6">Demolish - lvl required:</span></td><td><select name="demolish">
|
||||
<option value="5">5</option>
|
||||
<option value="10" selected="selected">10 - Default</option>
|
||||
<option value="15">15</option>
|
||||
<option value="20">20</option>
|
||||
</select></td></tr>
|
||||
<tr> <td><span class="f9 c6">Village Expand:</span></td><td><select name="village_expand">
|
||||
<option value="1" selected="selected">Slow</option>
|
||||
<option value="0">Fast</option>
|
||||
</select></td></tr>
|
||||
<tr> <td><span class="f9 c6">Error Reporting:</span></td><td><select name="error">
|
||||
<option value="error_reporting (E_ALL ^ E_NOTICE);" selected="selected">Yes</option>
|
||||
<option value="error_reporting (0);">No</option>
|
||||
</select></td></tr><tr>
|
||||
<td><span class="f9 c6">T4 is Coming screen:</span></td><td><select name="t4_coming">
|
||||
<option value="true">Yes</option>
|
||||
<option value="false" selected="selected">No</option>
|
||||
</select></td></tr>
|
||||
</table>
|
||||
</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>
|
||||
<input type="submit" name="Submit" id="Submit" value="Submit">
|
||||
<input type="hidden" name="subconst" value="1"></center>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// TRAVIANX //
|
||||
// Only for advanced users, do not edit if you dont know what are you doing! //
|
||||
// Made by: Dzoki & Dixie (TravianX) //
|
||||
// - TravianX = Travian Clone Project - //
|
||||
// DO NOT REMOVE COPYRIGHT NOTICE! //
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
if(isset($_GET['c']) && $_GET['c'] == 1) {
|
||||
echo "<div class=\"headline\"><span class=\"f10 c5\">Error importing database. Check configuration.</span></div><br>";
|
||||
}
|
||||
?>
|
||||
<form action="process.php" method="post" id="dataform">
|
||||
<input type="hidden" name="substruc" value="1">
|
||||
|
||||
<p>
|
||||
<span class="f10 c">Create SQL Structure</span>
|
||||
<table>
|
||||
<tr><td>Warning: This can take some time. Do not click, just wait till the next page has been loaded!</td></tr>
|
||||
<tr><td><center><input type="submit" name="Submit" id="Submit" value="Create.."></center></td></tr>
|
||||
</table>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// TRAVIANX //
|
||||
// Only for advanced users, do not edit if you dont know what are you doing! //
|
||||
// Made by: Dzoki & Dixie (TravianX) //
|
||||
// - TravianX = Travian Clone Project - //
|
||||
// DO NOT REMOVE COPYRIGHT NOTICE! //
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
?>
|
||||
<p>
|
||||
Thanks for installing TravianX.
|
||||
<h4>Please remove/rename the installation folder.</h4>
|
||||
All the files are placed. The database is created, so you can now start playing on your own Travian.
|
||||
</p>
|
||||
|
||||
<?php include("../GameEngine/config.php"); ?>
|
||||
<p>
|
||||
<center><font size="4"><a href="<?php echo HOMEPAGE; ?>">> My TravianX homepage <</font></a></center>
|
||||
</p>
|
||||
</div>
|
||||
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// TRAVIANX //
|
||||
// Only for advanced users, do not edit if you dont know what are you doing! //
|
||||
// Made by: Dzoki & Dixie (TravianX) //
|
||||
// - TravianX = Travian Clone Project - //
|
||||
// DO NOT REMOVE COPYRIGHT NOTICE! //
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
if(isset($_GET['c']) && $_GET['c'] == 1) {
|
||||
echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating wdata. Check configuration or file.</span></div><br>";
|
||||
}
|
||||
?>
|
||||
<form action="process.php" method="post" id="dataform">
|
||||
<input type="hidden" name="subwdata" value="1">
|
||||
|
||||
<p>
|
||||
<span class="f10 c">Create World Data</span>
|
||||
<table>
|
||||
<tr><td><b>Warning</b>: This can take some time. Do not click, just wait till the next page has been loaded!</td></tr>
|
||||
<tr><td><center><input type="submit" name="Submit" id="Submit" value="Create.."></center></td></tr>
|
||||
</table>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,43 +0,0 @@
|
||||
|
||||
<br>
|
||||
|
||||
<h4> Disclaimer</h4>
|
||||
|
||||
<ul>
|
||||
<li>Along with the installation/usage of this game, you shall be fully responsible for any legal results that may raised initiated by the owners of any unlicensed content you permit your copy of this game to publish.</li>
|
||||
|
||||
<li>Neither the team that created this script nor the team that customised it to create this distribution/release shall be responsible for any damage done to your computer/server system.</li>
|
||||
|
||||
<li>All code was confirmed to be running correctly by the creation team without any visible security risk they were aware of at the time the released it. Similarly for the customisation team who customised it to create this distribution/release.</li>
|
||||
|
||||
<li>Users are asked to review the code on their own accord and behalf.</li>
|
||||
|
||||
<li>Any customization to the source code are the property of each customisation's author, it is up to each author's discretion whether to share it by including it in free open source distributions such as this one.</li>
|
||||
|
||||
<li><b>You have no rights to edit copyright notices or/and claim this script as your own.</b></li>
|
||||
|
||||
<li>Last but not least, Enjoy.</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
|
||||
<li><h4>CHMOD:</h4></li>
|
||||
<li>install to 777</li>
|
||||
<li>GameEngine to 777</li>
|
||||
<li><h4>After CHMOD:</h4></li>
|
||||
<li>Delete install folder</li>
|
||||
<li>Change CHMOD GameEngine back to 644 and CHMOD 777: Prevention, Notes</li>
|
||||
</ul>
|
||||
|
||||
<div class="lbox">
|
||||
TravianX Team
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<center>
|
||||
<form>
|
||||
<input type="button" name="next" value="Next" onclick="location.href='?s=1'">
|
||||
</form>
|
||||
</center>
|
||||
|
||||
</div>
|
||||
@@ -1,27 +0,0 @@
|
||||
<div class="menu">
|
||||
<?php
|
||||
switch($_GET['s']) {
|
||||
case 0:
|
||||
echo "<li class=\"c2 f9\">Intro</li><li class=\"c1 f9\">Configuration</li><li class=\"c1 f9\">Database</li><li class= \"c1 f9\">Field</li><li class=\"c1 f9\">Multihunter</li><li class=\"c1 f9\">Oasis</li><li class=\"c1 f9\">End</li>";
|
||||
break;
|
||||
case 1:
|
||||
echo "<li class=\"c3 f9\">Intro</li><li class=\"c2 f9\">Configuration</li><li class=\"c1 f9\">Database</li><li class= \"c1 f9\">Field</li><li class=\"c1 f9\">Multihunter</li><li class=\"c1 f9\">Oasis</li><li class=\"c1 f9\">End</li>";
|
||||
break;
|
||||
case 2:
|
||||
echo "<li class=\"c3 f9\">Intro</li><li class=\"c3 f9\">Configuration</li><li class=\"c2 f9\">Database</li><li class= \"c1 f9\">Field</li><li class=\"c1 f9\">Multihunter</li><li class=\"c1 f9\">Oasis</li><li class=\"c1 f9\">End</li>";
|
||||
break;
|
||||
case 3:
|
||||
echo "<li class=\"c3 f9\">Intro</li><li class=\"c3 f9\">Configuration</li><li class=\"c3 f9\">Database</li><li class= \"c2 f9\">Field</li><li class=\"c1 f9\">Multihunter</li><li class=\"c1 f9\">Oasis</li><li class=\"c1 f9\">End</li>";
|
||||
break;
|
||||
case 4:
|
||||
echo "<li class=\"c3 f9\">Intro</li><li class=\"c3 f9\">Configuration</li><li class=\"c3 f9\">Database</li><li class= \"c3 f9\">Field</li><li class=\"c2 f9\">Multihunter</li><li class=\"c1 f9\">Oasis</li><li class=\"c1 f9\">End</li>";
|
||||
break;
|
||||
case 5:
|
||||
echo "<li class=\"c3 f9\">Intro</li><li class=\"c3 f9\">Configuration</li><li class=\"c3 f9\">Database</li><li class= \"c3 f9\">Field</li><li class=\"c3 f9\">Multihunter</li><li class=\"c2 f9\">Oasis</li><li class=\"c1 f9\">End</li>";
|
||||
break;
|
||||
case 6:
|
||||
echo "<li class=\"c3 f9\">Intro</li><li class=\"c3 f9\">Configuration</li><li class=\"c3 f9\">Database</li><li class= \"c3 f9\">Field</li><li class=\"c3 f9\">Multihunter</li><li class=\"c3 f9\">Oasis</li><li class=\"c2 f9\">End</li>";
|
||||
break;
|
||||
}
|
||||
|
||||
?></div>
|
||||
@@ -1,29 +0,0 @@
|
||||
<?php
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// TRAVIANX //
|
||||
// Only for advanced users, do not edit if you dont know what are you doing! //
|
||||
// Made by: Dzoki & Dixie (TravianX) //
|
||||
// - TravianX = Travian Clone Project - //
|
||||
// DO NOT REMOVE COPYRIGHT NOTICE! //
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
rename("include/constant.php","../GameEngine/config.php");
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<form action="include/multihunter.php" method="post" id="dataform">
|
||||
|
||||
<p>
|
||||
<span class="f10 c">Create Multihunter account</span>
|
||||
<table>
|
||||
<tr><td>Name:</td><td><input type="text" name="mhpw" id="mhpw" value="Multihunter" disabled="disabled"></td></tr>
|
||||
<tr><td>Password:</td><td><input type="text" name="mhpw" id="mhpw" value=""></td></tr>
|
||||
<tr><td>Note: Rember this password! You need it for the ACP</td><td></td></tr>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<center>
|
||||
<input type="submit" name="Submit" id="Submit" value="Submit"></center>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@@ -1,18 +0,0 @@
|
||||
<?
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// TRAVIANX //
|
||||
// Only for advanced users, do not edit if you dont know what are you doing! //
|
||||
// Made by: Dzoki & Dixie (TravianX) //
|
||||
// - TravianX = Travian Clone Project - //
|
||||
// DO NOT REMOVE COPYRIGHT NOTICE! //
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
?>
|
||||
<form action="include/oasis.php" method="post" id="dataform">
|
||||
<p>
|
||||
<span class="f10 c">Populate Oasis</span>
|
||||
<table>
|
||||
<tr><td><b>Warning</b>: This can take some time. Do not click, just wait till the next page has been loaded!</td></tr>
|
||||
<tr><td><center><input type="submit" name="Submit" id="Submit" value="Create.."></center></td></tr>
|
||||
</table>
|
||||
</p>
|
||||
</form>
|
||||
@@ -1,145 +0,0 @@
|
||||
<style type="text/css">
|
||||
.menu{
|
||||
margin-left: 23px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
.f18 {
|
||||
font-size: 18pt;
|
||||
}
|
||||
span.cc3 {position: absolute;right:10%}
|
||||
span.cc2 {position: absolute;left:10%}
|
||||
|
||||
div.lbox {width: 280px; padding-left: 29px; padding-bottom: 15px;}
|
||||
div.rbox {width: 196px; padding-left: 10px; padding-bottom: 15px;}
|
||||
div.wholebox {width: 494px; padding-left: 29px; padding-bottom: 15px;}
|
||||
div.wholebox div {float:none;}
|
||||
div.lbox ul, div.rbox ul {margin: 0 0 0 15px; padding: 0 15px 0 0;}
|
||||
|
||||
</style>
|
||||
|
||||
<?php
|
||||
class IHG_Progressbar {
|
||||
|
||||
protected $bar_id;
|
||||
|
||||
protected $max_ticks;
|
||||
|
||||
protected $ticks;
|
||||
|
||||
protected $label;
|
||||
|
||||
public function __construct($max_ticks, $label = '%d van %d') {
|
||||
$this->bar_id = uniqid('progressbar');
|
||||
$this->label = $label;
|
||||
|
||||
$this->max_ticks = $max_ticks;
|
||||
$this->ticks = 0;
|
||||
}
|
||||
|
||||
public function tick() {
|
||||
$this->ticks++;
|
||||
$this->draw_progress();
|
||||
}
|
||||
|
||||
public function draw() {
|
||||
$this->draw_bar();
|
||||
$this->draw_progress();
|
||||
}
|
||||
|
||||
static public function draw_css() {
|
||||
echo '
|
||||
<style type="text/css">
|
||||
.ihg_progress_bar {
|
||||
display: block;
|
||||
width: 500px;
|
||||
height: 20px;
|
||||
border: 1px solid gray;
|
||||
padding: 1px;
|
||||
|
||||
margin: 3px auto;
|
||||
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ihg_progress_ticks {
|
||||
display: block;
|
||||
position: absolute;
|
||||
|
||||
background-color: orange;
|
||||
width: 0;
|
||||
height: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ihg_progress_label_a,
|
||||
.ihg_progress_label_b {
|
||||
display: block;
|
||||
position: absolute;
|
||||
|
||||
width: 500px;
|
||||
height: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ihg_progress_label_a {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.ihg_progress_label_b {
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
';
|
||||
}
|
||||
|
||||
protected function draw_bar() {
|
||||
echo '
|
||||
<div class="ihg_progress_bar">
|
||||
<span class="ihg_progress_label_a" id="' . $this->bar_id . '_label_a"></span>
|
||||
<div class="ihg_progress_ticks" id="' . $this->bar_id . '">
|
||||
<span class="ihg_progress_label_b" id="' . $this->bar_id . '_label_b"></span>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var bar = document.getElementById("' . $this->bar_id . '");
|
||||
var label_a = document.getElementById("' . $this->bar_id . '_label_a");
|
||||
var label_b = document.getElementById("' . $this->bar_id . '_label_b");
|
||||
|
||||
window["' . $this->bar_id . '"] = function(width, label) {
|
||||
bar.style.width = width + "%";
|
||||
label_a.innerHTML = label;
|
||||
label_b.innerHTML = label;
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
';
|
||||
|
||||
$this->flush();
|
||||
}
|
||||
|
||||
protected function draw_progress() {
|
||||
|
||||
$width = round($this->ticks / $this->max_ticks * 100, 2);
|
||||
$label = sprintf($this->label, $this->ticks, $this->max_ticks);
|
||||
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
window["' . $this->bar_id . '"]("' . $width . '", "' . addslashes($label) . '");
|
||||
</script>
|
||||
|
||||
';
|
||||
$this->flush();
|
||||
}
|
||||
|
||||
protected function flush() {
|
||||
while(ob_get_level() > 0) {
|
||||
ob_end_flush();
|
||||
}
|
||||
|
||||
flush();
|
||||
}
|
||||
}
|
||||
?>
|
||||
+1178
File diff suppressed because it is too large
Load Diff
+1
-4
@@ -524,11 +524,9 @@ Done:<br />
|
||||
-Top 10 Alliance Attacker<br />
|
||||
-Top 10 Alliance Defencer<br />
|
||||
-Top 10 Alliance Robbers<br />
|
||||
-Top 10 Alliance Climbers(Rank)<br />
|
||||
-Top 10 Pop Climbers<br />
|
||||
-Top 10 Alliance Climbers<br />
|
||||
-Top 10 Rank Climbers<br />
|
||||
-Bonus: Attacker AND Defender<br />
|
||||
-Bonus: 3/5/10 times in a row top 3 Pop Climbers<br />
|
||||
-Bonus: 3/5/10 times in a row top 3 Rank Climbers<br />
|
||||
-Bonus: 3/5/10 times top 3 Attack<br />
|
||||
-Bonus: 3/5/10 times top 3 Defence<br />
|
||||
@@ -536,7 +534,6 @@ Done:<br />
|
||||
|
||||
-Bonus: 3/5/10 times in a row top 10 Attack<br />
|
||||
-Bonus: 3/5/10 times in a row top 10 Defence<br />
|
||||
-Bonus: 3/5/10 times in a row top 10 Pop Climbers<br />
|
||||
-Bonus: 3/5/10 times in a row top 10 Rank Climbers<br />
|
||||
-Bonus: 3/5/10 times in a row top 10 Robber<br />
|
||||
|
||||
|
||||
+177
-177
@@ -1,179 +1,179 @@
|
||||
<?php
|
||||
<?php
|
||||
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename sysmsg.php ##
## Developed by: Dixie ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
|
||||
|
||||
include_once("GameEngine/Account.php");
|
||||
$max_per_pass = 1000;
|
||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||
mysql_select_db(SQL_DB);
|
||||
if (mysql_num_rows(mysql_query("SELECT id FROM ".TB_PREFIX."users WHERE access = 9 AND id = ".$session->uid)) != '1') die("Hacking attempt!");
|
||||
|
||||
if(isset($_GET['del'])){
|
||||
$query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC";
|
||||
$result=mysql_query($query) or die (mysql_error());
|
||||
for ($i=0; $row=mysql_fetch_row($result); $i++) {
|
||||
$updateattquery = mysql_query("UPDATE ".TB_PREFIX."users SET ok = '0' WHERE id = '".$row[0]."'")
|
||||
or die(mysql_error());
|
||||
}
|
||||
|
||||
include_once("GameEngine/Account.php");
|
||||
$max_per_pass = 1000;
|
||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||
mysql_select_db(SQL_DB);
|
||||
if (mysql_num_rows(mysql_query("SELECT id FROM ".TB_PREFIX."users WHERE access = 9 AND id = ".$session->uid)) != '1') die("Hacking attempt!");
|
||||
|
||||
if(isset($_GET['del'])){
|
||||
$query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC";
|
||||
$result=mysql_query($query) or die (mysql_error());
|
||||
for ($i=0; $row=mysql_fetch_row($result); $i++) {
|
||||
$updateattquery = mysql_query("UPDATE ".TB_PREFIX."users SET ok = '0' WHERE id = '".$row[0]."'")
|
||||
or die(mysql_error());
|
||||
}
|
||||
}
|
||||
|
||||
if (@$_POST['submit'] == "Send")
|
||||
{
|
||||
unset ($_SESSION['m_message']);
|
||||
$_SESSION['m_message'] = $_POST['message'];
|
||||
$NextStep = true;
|
||||
}
|
||||
|
||||
|
||||
if (@isset($_POST['confirm']))
|
||||
{
|
||||
if ($_POST['confirm'] == 'No' ) $Interupt = true;
|
||||
if ($_POST['confirm'] == 'Yes'){
|
||||
|
||||
if(file_exists("Templates/text.tpl")) {
|
||||
|
||||
$myFile = "Templates/text.tpl";
|
||||
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: templates/text.tpl");
|
||||
$text = file_get_contents("Templates/text_format.tpl");
|
||||
$text = preg_replace("'%TEKST%'",$_SESSION['m_message'] ,$text);
|
||||
fwrite($fh, $text);
|
||||
|
||||
$query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC";
|
||||
$result=mysql_query($query) or die (mysql_error());
|
||||
for ($i=0; $row=mysql_fetch_row($result); $i++) {
|
||||
$updateattquery = mysql_query("UPDATE ".TB_PREFIX."users SET ok = '1' WHERE id = '".$row[0]."'")
|
||||
or die(mysql_error());
|
||||
}
|
||||
$done = true;
|
||||
} else { die("<br/><br/><br/>wrong"); }
|
||||
}}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<link REL="shortcut icon" HREF="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
<meta http-equiv="expires" content="0" />
|
||||
<meta http-equiv="imagetoolbar" content="no" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<script src="mt-full.js?0ac36" type="text/javascript"></script>
|
||||
<script src="unx.js?0ac36" type="text/javascript"></script>
|
||||
<script src="new.js?0ac36" type="text/javascript"></script>
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<?php
|
||||
if($session->gpack == null || GP_ENABLE == false) {
|
||||
echo "
|
||||
<link href='".GP_LOCATE."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".GP_LOCATE."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
} else {
|
||||
echo "
|
||||
<link href='".$session->gpack."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".$session->gpack."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
window.addEvent('domready', start);
|
||||
</script>
|
||||
</head>
|
||||
<?php
|
||||
if($session->gpack == null || GP_ENABLE == false) {
|
||||
echo "
|
||||
<link href='".GP_LOCATE."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".GP_LOCATE."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
} else {
|
||||
echo "
|
||||
<link href='".$session->gpack."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".$session->gpack."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
window.addEvent('domready', start);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
||||
<body class="v35 ie ie8">
|
||||
<div class="wrapper">
|
||||
<img style="filter:chroma();" src="img/x.gif" id="msfilter" alt="" />
|
||||
<div id="dynamic_header">
|
||||
</div>
|
||||
<?php include("Templates/header.tpl"); ?>
|
||||
<div id="mid">
|
||||
<?php include("Templates/menu.tpl"); ?>
|
||||
|
||||
<div id="content" class="login">
|
||||
<?php if (@!$NextStep && @!$NextStep2 && @!$done){?>
|
||||
<form method="POST" action="sysmsg.php" name="myform" id="myform">
|
||||
<table cellspacing="1" cellpadding="1" class="tbg" style="background-color:#C0C0C0; border: 0px solid #C0C0C0; font-size: 10pt;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="rbg" style="font-size: 10pt; text-align:center;">System Message</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10pt; text-align:center;">Text BBCode:<br><b>[b] txt [/b]</b> - <i>[i] txt [/i]</i> - <u>[u] txt [/u]</u> <br />
|
||||
<textarea class="fm" name="message" cols="60" rows="23"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;">All fields required</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;">
|
||||
<input type="submit" value="Send" name="submit" /> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<a href="sysmsg.php?del">Delete old System Message</a>
|
||||
<?php }elseif (@$NextStep){?>
|
||||
<form method="POST" action="sysmsg.php">
|
||||
<table cellspacing="1" cellpadding="2" class="tbg">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="rbg" colspan="2">Confirmation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left; width: 200px;">Do you really want to send System Message?</td>
|
||||
<td style="text-align: left;">
|
||||
<input type="submit" style="width: 240px;" class="fm" name="confirm" value="Yes">
|
||||
<input type="submit" style="width: 240px;" class="fm" name="confirm" value="No"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
Example: (BBCode doesn't work over here!)
|
||||
<?php
|
||||
$txt=$_SESSION['m_message'];
|
||||
$txt = preg_replace("/\[b\]/is",'<b>', $txt);
|
||||
$txt = preg_replace("/\[\/b\]/is",'</b>', $txt);
|
||||
$txt = preg_replace("/\[i\]/is",'<i>', $txt);
|
||||
$txt = preg_replace("/\[\/i\]/is",'</i>', $txt);
|
||||
$txt = preg_replace("/\[u\]/is",'<u>', $txt);
|
||||
$txt = preg_replace("/\[\/u\]/is",'</u>', $txt);
|
||||
echo ($txt);
|
||||
|
||||
}elseif (@$Interupt){?>
|
||||
<b><?php echo MASS_ABORT; ?></b>
|
||||
|
||||
<?php }elseif (@$done){?>
|
||||
System Message was sent
|
||||
<?php }else{die("Something is wrong");}?>
|
||||
</div>
|
||||
<div id="side_info" class="outgame">
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="footer-stopper outgame"></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php include("Templates/footer.tpl"); ?>
|
||||
<div id="ce"></div>
|
||||
</body>
|
||||
</html>
|
||||
<?php mysql_close(); ?>
|
||||
|
||||
if (@$_POST['submit'] == "Send")
|
||||
{
|
||||
unset ($_SESSION['m_message']);
|
||||
$_SESSION['m_message'] = $_POST['message'];
|
||||
$NextStep = true;
|
||||
}
|
||||
|
||||
|
||||
if (@isset($_POST['confirm']))
|
||||
{
|
||||
if ($_POST['confirm'] == 'No' ) $Interupt = true;
|
||||
if ($_POST['confirm'] == 'Yes'){
|
||||
|
||||
if(file_exists("Templates/text.tpl")) {
|
||||
|
||||
$myFile = "Templates/text.tpl";
|
||||
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: templates/text.tpl");
|
||||
$text = file_get_contents("Templates/text_format.tpl");
|
||||
$text = preg_replace("'%TEKST%'",$_SESSION['m_message'] ,$text);
|
||||
fwrite($fh, $text);
|
||||
|
||||
$query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC";
|
||||
$result=mysql_query($query) or die (mysql_error());
|
||||
for ($i=0; $row=mysql_fetch_row($result); $i++) {
|
||||
$updateattquery = mysql_query("UPDATE ".TB_PREFIX."users SET ok = '1' WHERE id = '".$row[0]."'")
|
||||
or die(mysql_error());
|
||||
}
|
||||
$done = true;
|
||||
} else { die("<br/><br/><br/>wrong"); }
|
||||
}}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?></title>
|
||||
<link REL="shortcut icon" HREF="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
<meta http-equiv="expires" content="0" />
|
||||
<meta http-equiv="imagetoolbar" content="no" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<script src="mt-full.js?0ac36" type="text/javascript"></script>
|
||||
<script src="unx.js?0ac36" type="text/javascript"></script>
|
||||
<script src="new.js?0ac36" type="text/javascript"></script>
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css" />
|
||||
<?php
|
||||
if($session->gpack == null || GP_ENABLE == false) {
|
||||
echo "
|
||||
<link href='".GP_LOCATE."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".GP_LOCATE."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
} else {
|
||||
echo "
|
||||
<link href='".$session->gpack."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".$session->gpack."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
window.addEvent('domready', start);
|
||||
</script>
|
||||
</head>
|
||||
<?php
|
||||
if($session->gpack == null || GP_ENABLE == false) {
|
||||
echo "
|
||||
<link href='".GP_LOCATE."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".GP_LOCATE."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
} else {
|
||||
echo "
|
||||
<link href='".$session->gpack."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".$session->gpack."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
window.addEvent('domready', start);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
||||
<body class="v35 ie ie8">
|
||||
<div class="wrapper">
|
||||
<img style="filter:chroma();" src="img/x.gif" id="msfilter" alt="" />
|
||||
<div id="dynamic_header">
|
||||
</div>
|
||||
<?php include("Templates/header.tpl"); ?>
|
||||
<div id="mid">
|
||||
<?php include("Templates/menu.tpl"); ?>
|
||||
|
||||
<div id="content" class="login">
|
||||
<?php if (@!$NextStep && @!$NextStep2 && @!$done){?>
|
||||
<form method="POST" action="sysmsg.php" name="myform" id="myform">
|
||||
<table cellspacing="1" cellpadding="1" class="tbg" style="background-color:#C0C0C0; border: 0px solid #C0C0C0; font-size: 10pt;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="rbg" style="font-size: 10pt; text-align:center;">System Message</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10pt; text-align:center;">Text BBCode:<br><b>[b] txt [/b]</b> - <i>[i] txt [/i]</i> - <u>[u] txt [/u]</u> <br />
|
||||
<textarea class="fm" name="message" cols="60" rows="23"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;">All fields required</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;">
|
||||
<input type="submit" value="Send" name="submit" /> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<a href="sysmsg.php?del">Delete old System Message</a>
|
||||
<?php }elseif (@$NextStep){?>
|
||||
<form method="POST" action="sysmsg.php">
|
||||
<table cellspacing="1" cellpadding="2" class="tbg">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="rbg" colspan="2">Confirmation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: left; width: 200px;">Do you really want to send System Message?</td>
|
||||
<td style="text-align: left;">
|
||||
<input type="submit" style="width: 240px;" class="fm" name="confirm" value="Yes">
|
||||
<input type="submit" style="width: 240px;" class="fm" name="confirm" value="No"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
Example: (BBCode doesn't work over here!)
|
||||
<?php
|
||||
$txt=$_SESSION['m_message'];
|
||||
$txt = preg_replace("/\[b\]/is",'<b>', $txt);
|
||||
$txt = preg_replace("/\[\/b\]/is",'</b>', $txt);
|
||||
$txt = preg_replace("/\[i\]/is",'<i>', $txt);
|
||||
$txt = preg_replace("/\[\/i\]/is",'</i>', $txt);
|
||||
$txt = preg_replace("/\[u\]/is",'<u>', $txt);
|
||||
$txt = preg_replace("/\[\/u\]/is",'</u>', $txt);
|
||||
echo ($txt);
|
||||
|
||||
}elseif (@$Interupt){?>
|
||||
<b><?php echo MASS_ABORT; ?></b>
|
||||
|
||||
<?php }elseif (@$done){?>
|
||||
System Message was sent
|
||||
<?php }else{die("Something is wrong");}?>
|
||||
</div>
|
||||
<div id="side_info" class="outgame">
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="footer-stopper outgame"></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php include("Templates/footer.tpl"); ?>
|
||||
<div id="ce"></div>
|
||||
</body>
|
||||
</html>
|
||||
<?php mysql_close(); ?>
|
||||
|
||||
Reference in New Issue
Block a user