Big Cleanup

1) Removed unnecessary files
2) Trailling spaces (no all though)
3)  Some space to tab conversion
This commit is contained in:
Neranjen
2012-06-18 05:06:05 +05:30
parent e081116620
commit 786cbf1f8e
195 changed files with 23522 additions and 23537 deletions
+1 -1
View File
@@ -267,4 +267,4 @@ $requse = 0;
## ##
#################################################################################
?>
?>
+16 -16
View File
@@ -10,43 +10,43 @@
include("constant.php");
class MYSQLi_DB {
var $connection;
function MYSQLi_DB() {
$this->connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB) or die(mysqli_error());
}
function query($query) {
return $this->connection->query($query);
}
};
class MYSQL_DB {
var $connection;
function MYSQL_DB() {
$this->connection = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error());
mysql_select_db(SQL_DB, $this->connection) or die(mysql_error());
}
function mysql_exec_batch ($p_query, $p_transaction_safe = true) {
if ($p_transaction_safe) {
$p_query = 'START TRANSACTION;' . $p_query . '; COMMIT;';
};
$p_query = 'START TRANSACTION;' . $p_query . '; COMMIT;';
};
$query_split = preg_split ("/[;]+/", $p_query);
foreach ($query_split as $command_line) {
$command_line = trim($command_line);
if ($command_line != '') {
$query_result = mysql_query($command_line);
if ($query_result == 0) {
break;
};
};
$command_line = trim($command_line);
if ($command_line != '') {
$query_result = mysql_query($command_line);
if ($query_result == 0) {
break;
};
};
};
return $query_result;
}
}
function query($query) {
return mysql_query($query, $this->connection);
+23 -23
View File
@@ -1,31 +1,31 @@
<?php
$gameinstall = 1;
include ("../../GameEngine/config.php");
include ("../../GameEngine/Database.php");
include ("../../GameEngine/Admin/database.php");
include ("../../GameEngine/Lang/" . LANG . ".php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
include ("../../GameEngine/config.php");
include ("../../GameEngine/Database.php");
include ("../../GameEngine/Admin/database.php");
include ("../../GameEngine/Lang/" . LANG . ".php");
if(isset($_POST['mhpw'])) {
$password = $_POST['mhpw'];
mysql_query("UPDATE " . TB_PREFIX . "users SET password = '" . md5($password) . "' WHERE username = 'Multihunter'");
$wid = $admin->getWref(0, 0);
$uid = 5;
$status = $database->getVillageState($wid);
if($status == 0) {
$database->setFieldTaken($wid);
$database->addVillage($wid, $uid, 'Multihunter', '0');
$database->addResourceFields($wid, $database->getVillageType($wid));
$database->addUnits($wid);
$database->addTech($wid);
$database->addABTech($wid);
}
}
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if(isset($_POST['mhpw'])) {
$password = $_POST['mhpw'];
mysql_query("UPDATE " . TB_PREFIX . "users SET password = '" . md5($password) . "' WHERE username = 'Multihunter'");
$wid = $admin->getWref(0, 0);
$uid = 5;
$status = $database->getVillageState($wid);
if($status == 0) {
$database->setFieldTaken($wid);
$database->addVillage($wid, $uid, 'Multihunter', '0');
$database->addResourceFields($wid, $database->getVillageType($wid));
$database->addUnits($wid);
$database->addTech($wid);
$database->addABTech($wid);
}
}
$gameinstall = 0;
header("Location: ../index.php?s=5");
header("Location: ../index.php?s=5");
?>
+14 -14
View File
@@ -1,21 +1,21 @@
<?php
include ("../../GameEngine/config.php");
include ("../../GameEngine/Database.php");
include ("../../GameEngine/Admin/database.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
$database->populateOasisdata();
$database->populateOasis();
$database->populateOasisUnitsHigh();
include ("../../GameEngine/config.php");
include ("../../GameEngine/Database.php");
include ("../../GameEngine/Admin/database.php");
header("Location: ../index.php?s=6");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
$database->populateOasisdata();
$database->populateOasis();
$database->populateOasisUnitsHigh();
header("Location: ../index.php?s=6");
?>
+2 -2
View File
@@ -17,7 +17,7 @@ $y=(WORLD_MAX-$i);
for($j=0; $j<$xyas; $j++){
$x=((WORLD_MAX*-1)+$j);
//choose a field type
if($x == 0 & $y == 0){
$typ='3';
@@ -104,7 +104,7 @@ $y=(WORLD_MAX-$i);
} else {
$image="o".$otype."";
}
//into database
$q = "INSERT into ".TB_PREFIX."wdata values (0,'".$typ."','".$otype."','".$x."','".$y."',0,'".$image."')";
$database->query($q);
+74 -74
View File
@@ -1,45 +1,45 @@
<?php include("templates/script.tpl");
<?php include("templates/script.tpl");
if(!isset($_GET['s'])) {
$_GET['s']=0;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TravianX Installation</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=us-ascii" />
<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="../gpack/travian_default/lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css" />
<link href="../gpack/travian_default/lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css" />
<link href="../gpack/travian_default/travian.css?e21d2" rel="stylesheet" type="text/css" />
<link href="../gpack/travian_default/lang/en/lang.css?e21d2" rel="stylesheet" type="text/css" />
<title>TravianX Installation</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=us-ascii" />
<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="../gpack/travian_default/lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css" />
<link href="../gpack/travian_default/lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css" />
<link href="../gpack/travian_default/travian.css?e21d2" rel="stylesheet" type="text/css" />
<link href="../gpack/travian_default/lang/en/lang.css?e21d2" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper">
<img class="c1" src="img/x.gif" id="msfilter" alt="" name="msfilter" />
<div class="wrapper">
<img class="c1" src="img/x.gif" id="msfilter" alt="" name="msfilter" />
<div id="dynamic_header"></div>
<div id="dynamic_header"></div>
<div id="header">
<div id="mtop"></div>
</div>
<div id="header">
<div id="mtop"></div>
</div>
<div id="mid">
<div id="side_navi">
<?php include("templates/menu.tpl"); ?>
</div>
<div id="mid">
<div id="side_navi">
<?php include("templates/menu.tpl"); ?>
</div>
<div id="content" class="login">
<?php
IHG_Progressbar::draw_css();
@@ -53,61 +53,61 @@ if(!isset($_GET['s'])) {
<span class="f18 c5">TravianX Installation Script</span>
</center></div>
<?php
<?php
if(substr(sprintf('%o', fileperms('../')), -4)<'700'){
echo"<span class='f18 c5'>ERROR!</span><br />It's not possible to write the config file. Change the permission to '777'. After that, refresh this page!";
} else
switch($_GET['s']){
case 0:
include("templates/greet.tpl");
break;
case 1:
include("templates/config.tpl");
break;
case 2:
include("templates/dataform.tpl");
break;
case 3:
include("templates/field.tpl");
break;
case 4:
include("templates/multihunter.tpl");
break;
case 5:
include("templates/oasis.tpl");
break;
case 6:
include("templates/end.tpl");
break;
}
?>
} else
switch($_GET['s']){
case 0:
include("templates/greet.tpl");
break;
case 1:
include("templates/config.tpl");
break;
case 2:
include("templates/dataform.tpl");
break;
case 3:
include("templates/field.tpl");
break;
case 4:
include("templates/multihunter.tpl");
break;
case 5:
include("templates/oasis.tpl");
break;
case 6:
include("templates/end.tpl");
break;
}
?>
<div id="side_info" class="outgame"></div>
<div id="side_info" class="outgame"></div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="footer-stopper outgame"></div>
<div class="footer-stopper outgame"></div>
<div class="clear"></div>
<div class="clear"></div>
<div id="footer">
<div class="footer-menu c3" id="mfoot">
<br />
<div id="footer">
<div class="footer-menu c3" id="mfoot">
<br />
<div class="copyright">
&copy; 2010 - 2011 TravianX All rights reserved
</div>
<div class="copyright">
&copy; 2010 - 2011 TravianX All rights reserved
</div>
<div class="copyright">
Server running on: <b><font color="red">v6.0.0</font></b>
</div>
</div>
<div class="copyright">
Server running on: <b><font color="red">v6.0.0</font></b>
</div>
</div>
<div id="cfoot"></div>
</div>
</div>
<div id="cfoot"></div>
</div>
</div>
<div id="ce"></div>
<div id="ce"></div>
</body>
</html>
+114 -114
View File
@@ -9,127 +9,127 @@
## ##
#################################################################################
if(file_exists("include/constant.php")) {
include ("include/database.php");
}
class Process {
if(file_exists("include/constant.php")) {
include ("include/database.php");
}
class Process {
function Process() {
if(isset($_POST['subconst'])) {
$this->constForm();
} else
if(isset($_POST['substruc'])) {
$this->createStruc();
} else
if(isset($_POST['subwdata'])) {
$this->createWdata();
} else
if(isset($_POST['subacc'])) {
$this->createAcc();
} else {
header("Location: index.php");
}
}
function Process() {
if(isset($_POST['subconst'])) {
$this->constForm();
} else
if(isset($_POST['substruc'])) {
$this->createStruc();
} else
if(isset($_POST['subwdata'])) {
$this->createWdata();
} else
if(isset($_POST['subacc'])) {
$this->createAcc();
} else {
header("Location: index.php");
}
}
function constForm() {
$myFile = "include/constant.php";
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: install\include\constant.php");
$text = file_get_contents("data/constant_format.tpl");
$text = preg_replace("'%SERVERNAME%'", $_POST['servername'], $text);
$text = preg_replace("'%SSTARTDATE%'", $_POST['start_date'], $text);
$text = preg_replace("'%SSTARTTIME%'", $_POST['start_time'], $text);
$text = preg_replace("'%LANG%'", $_POST['lang'], $text);
$text = preg_replace("'%SPEED%'", $_POST['speed'], $text);
$text = preg_replace("'%INCSPEED%'", $_POST['incspeed'], $text);
$text = preg_replace("'%EVASIONSPEED%'", $_POST['evasionspeed'], $text);
$text = preg_replace("'%TRADERCAP%'", $_POST['tradercap'], $text);
$text = preg_replace("'%STORAGE_MULTIPLIER%'", $_POST['storage_multiplier'], $text);
$text = preg_replace("'%UTRACK%'", $_POST['trackusers'], $text);
$text = preg_replace("'%UTOUT%'", $_POST['timeout'], $text);
$text = preg_replace("'%AUTOD%'", $_POST['autodel'], $text);
$text = preg_replace("'%AUTODT%'", $_POST['autodeltime'], $text);
$text = preg_replace("'%MAX%'", $_POST['wmax'], $text);
$text = preg_replace("'%GP%'", $_POST['gpack'], $text);
$text = preg_replace("'%SSERVER%'", $_POST['sserver'], $text);
$text = preg_replace("'%SUSER%'", $_POST['suser'], $text);
$text = preg_replace("'%SPASS%'", $_POST['spass'], $text);
$text = preg_replace("'%SDB%'", $_POST['sdb'], $text);
$text = preg_replace("'%PREFIX%'", $_POST['prefix'], $text);
$text = preg_replace("'%CONNECTT%'", $_POST['connectt'], $text);
$text = preg_replace("'%AEMAIL%'", $_POST['aemail'], $text);
$text = preg_replace("'%ANAME%'", $_POST['aname'], $text);
$text = preg_replace("'%SUBDOM%'", $_POST['subdom'], $text);
$text = preg_replace("'%LOGBUILD%'", $_POST['log_build'], $text);
$text = preg_replace("'%LOGTECH%'", $_POST['log_tech'], $text);
$text = preg_replace("'%LOGLOGIN%'", $_POST['log_login'], $text);
$text = preg_replace("'%LOGGOLDFIN%'", $_POST['log_gold_fin'], $text);
$text = preg_replace("'%LOGADMIN%'", $_POST['log_admin'], $text);
$text = preg_replace("'%LOGWAR%'", $_POST['log_war'], $text);
$text = preg_replace("'%LOGMARKET%'", $_POST['log_market'], $text);
$text = preg_replace("'%LOGILLEGAL%'", $_POST['log_illegal'], $text);
$text = preg_replace("'%MINUSERLENGTH%'", $_POST['userlength'], $text);
$text = preg_replace("'%MINPASSLENGTH%'", $_POST['passlength'], $text);
$text = preg_replace("'%SPECIALCHARS%'", $_POST['specialchars'], $text);
$text = preg_replace("'%ACTIVATE%'", $_POST['activate'], $text);
$text = preg_replace("'%ARANK%'", $_POST['admin_rank'], $text);
$text = preg_replace("'%QUEST%'", $_POST['quest'], $text);
$text = preg_replace("'%BEGINNER%'", $_POST['beginner'], $text);
$text = preg_replace("'%STARTTIME%'", time(), $text);
$text = preg_replace("'%DOMAIN%'", $_POST['domain'], $text);
$text = preg_replace("'%HOMEPAGE%'", $_POST['homepage'], $text);
$text = preg_replace("'%SERVER%'", $_POST['server'], $text);
$text = preg_replace("'%LIMIT_MAILBOX%'", $_POST['limit_mailbox'], $text);
$text = preg_replace("'%MAX_MAILS%'", $_POST['max_mails'], $text);
$text = preg_replace("'%DEMOLISH%'", $_POST['demolish'], $text);
$text = preg_replace("'%BOX1%'", $_POST['box1'], $text);
$text = preg_replace("'%BOX2%'", $_POST['box2'], $text);
$text = preg_replace("'%BOX3%'", $_POST['box3'], $text);
$text = preg_replace("'%VILLAGE_EXPAND%'", $_POST['village_expand'], $text);
$text = preg_replace("'%ERROR%'", $_POST['error'], $text);
$text = preg_replace("'%GP_LOCATE%'", $_POST['gp_locate'], $text);
$text = preg_replace("'%PLUS_TIME%'", $_POST['plus_time'], $text);
$text = preg_replace("'%PLUS_PRODUCTION%'", $_POST['plus_production'], $text);
$text = preg_replace("'%GREAT_WKS%'", $_POST['great_wks'], $text);
$text = preg_replace("'%TS_THRESHOLD%'", $_POST['ts_threshold'], $text);
$text = preg_replace("'%WW%'", $_POST['ww'], $text);
$text = preg_replace("'%T4_COMING%'", $_POST['t4_coming'], $text);
$text = preg_replace("'%REG_OPEN%'", $_POST['reg_open'], $text);
$text = preg_replace("'%PEACE%'", $_POST['peace'], $text);
function constForm() {
$myFile = "include/constant.php";
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: install\include\constant.php");
$text = file_get_contents("data/constant_format.tpl");
$text = preg_replace("'%SERVERNAME%'", $_POST['servername'], $text);
$text = preg_replace("'%SSTARTDATE%'", $_POST['start_date'], $text);
$text = preg_replace("'%SSTARTTIME%'", $_POST['start_time'], $text);
$text = preg_replace("'%LANG%'", $_POST['lang'], $text);
$text = preg_replace("'%SPEED%'", $_POST['speed'], $text);
$text = preg_replace("'%INCSPEED%'", $_POST['incspeed'], $text);
$text = preg_replace("'%EVASIONSPEED%'", $_POST['evasionspeed'], $text);
$text = preg_replace("'%TRADERCAP%'", $_POST['tradercap'], $text);
$text = preg_replace("'%STORAGE_MULTIPLIER%'", $_POST['storage_multiplier'], $text);
$text = preg_replace("'%UTRACK%'", $_POST['trackusers'], $text);
$text = preg_replace("'%UTOUT%'", $_POST['timeout'], $text);
$text = preg_replace("'%AUTOD%'", $_POST['autodel'], $text);
$text = preg_replace("'%AUTODT%'", $_POST['autodeltime'], $text);
$text = preg_replace("'%MAX%'", $_POST['wmax'], $text);
$text = preg_replace("'%GP%'", $_POST['gpack'], $text);
$text = preg_replace("'%SSERVER%'", $_POST['sserver'], $text);
$text = preg_replace("'%SUSER%'", $_POST['suser'], $text);
$text = preg_replace("'%SPASS%'", $_POST['spass'], $text);
$text = preg_replace("'%SDB%'", $_POST['sdb'], $text);
$text = preg_replace("'%PREFIX%'", $_POST['prefix'], $text);
$text = preg_replace("'%CONNECTT%'", $_POST['connectt'], $text);
$text = preg_replace("'%AEMAIL%'", $_POST['aemail'], $text);
$text = preg_replace("'%ANAME%'", $_POST['aname'], $text);
$text = preg_replace("'%SUBDOM%'", $_POST['subdom'], $text);
$text = preg_replace("'%LOGBUILD%'", $_POST['log_build'], $text);
$text = preg_replace("'%LOGTECH%'", $_POST['log_tech'], $text);
$text = preg_replace("'%LOGLOGIN%'", $_POST['log_login'], $text);
$text = preg_replace("'%LOGGOLDFIN%'", $_POST['log_gold_fin'], $text);
$text = preg_replace("'%LOGADMIN%'", $_POST['log_admin'], $text);
$text = preg_replace("'%LOGWAR%'", $_POST['log_war'], $text);
$text = preg_replace("'%LOGMARKET%'", $_POST['log_market'], $text);
$text = preg_replace("'%LOGILLEGAL%'", $_POST['log_illegal'], $text);
$text = preg_replace("'%MINUSERLENGTH%'", $_POST['userlength'], $text);
$text = preg_replace("'%MINPASSLENGTH%'", $_POST['passlength'], $text);
$text = preg_replace("'%SPECIALCHARS%'", $_POST['specialchars'], $text);
$text = preg_replace("'%ACTIVATE%'", $_POST['activate'], $text);
$text = preg_replace("'%ARANK%'", $_POST['admin_rank'], $text);
$text = preg_replace("'%QUEST%'", $_POST['quest'], $text);
$text = preg_replace("'%BEGINNER%'", $_POST['beginner'], $text);
$text = preg_replace("'%STARTTIME%'", time(), $text);
$text = preg_replace("'%DOMAIN%'", $_POST['domain'], $text);
$text = preg_replace("'%HOMEPAGE%'", $_POST['homepage'], $text);
$text = preg_replace("'%SERVER%'", $_POST['server'], $text);
$text = preg_replace("'%LIMIT_MAILBOX%'", $_POST['limit_mailbox'], $text);
$text = preg_replace("'%MAX_MAILS%'", $_POST['max_mails'], $text);
$text = preg_replace("'%DEMOLISH%'", $_POST['demolish'], $text);
$text = preg_replace("'%BOX1%'", $_POST['box1'], $text);
$text = preg_replace("'%BOX2%'", $_POST['box2'], $text);
$text = preg_replace("'%BOX3%'", $_POST['box3'], $text);
$text = preg_replace("'%VILLAGE_EXPAND%'", $_POST['village_expand'], $text);
$text = preg_replace("'%ERROR%'", $_POST['error'], $text);
$text = preg_replace("'%GP_LOCATE%'", $_POST['gp_locate'], $text);
$text = preg_replace("'%PLUS_TIME%'", $_POST['plus_time'], $text);
$text = preg_replace("'%PLUS_PRODUCTION%'", $_POST['plus_production'], $text);
$text = preg_replace("'%GREAT_WKS%'", $_POST['great_wks'], $text);
$text = preg_replace("'%TS_THRESHOLD%'", $_POST['ts_threshold'], $text);
$text = preg_replace("'%WW%'", $_POST['ww'], $text);
$text = preg_replace("'%T4_COMING%'", $_POST['t4_coming'], $text);
$text = preg_replace("'%REG_OPEN%'", $_POST['reg_open'], $text);
$text = preg_replace("'%PEACE%'", $_POST['peace'], $text);
fwrite($fh, $text);
fwrite($fh, $text);
if(file_exists("include/constant.php")) {
header("Location: index.php?s=2");
} else {
header("Location: index.php?s=1&c=1");
}
if(file_exists("include/constant.php")) {
header("Location: index.php?s=2");
} else {
header("Location: index.php?s=1&c=1");
}
fclose($fh);
}
fclose($fh);
}
function createStruc() {
global $database;
$str = file_get_contents("data/sql.sql");
$str = preg_replace("'%PREFIX%'", TB_PREFIX, $str);
if(DB_TYPE) {
$result = $database->connection->multi_query($str);
} else {
$result = $database->mysql_exec_batch($str);
}
if($result) {
header("Location: index.php?s=3");
} else {
header("Location: index.php?s=2&c=1");
}
}
function createStruc() {
global $database;
$str = file_get_contents("data/sql.sql");
$str = preg_replace("'%PREFIX%'", TB_PREFIX, $str);
if(DB_TYPE) {
$result = $database->connection->multi_query($str);
} else {
$result = $database->mysql_exec_batch($str);
}
if($result) {
header("Location: index.php?s=3");
} else {
header("Location: index.php?s=2&c=1");
}
}
function createWdata() {
header("Location: include/wdata.php");
}
}
;
function createWdata() {
header("Location: include/wdata.php");
}
$process = new Process;
}
;
$process = new Process;
?>
+16 -16
View File
@@ -26,14 +26,14 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<option value="300">300x300</option>
<option value="350">350x350</option>
<option value="400">400x400</option>
</select>
</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></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>
@@ -52,7 +52,7 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<option value="172800">48 hours</option>
<option value="259200">72 hours</option>
</select>
</td></tr><tr></tr>
</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>
@@ -64,7 +64,7 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<option value="(3600*24*6)">6 days</option>
<option value="(3600*24*7)" selected="selected">7 days</option>
</select>
</td></tr><tr></tr>
</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>
@@ -76,7 +76,7 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<option value="(3600*24*6)">6 days</option>
<option value="(3600*24*7)" selected="selected">7 days</option>
</select>
</td></tr><tr></tr>
</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>
@@ -84,7 +84,7 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<option value="True">True</option>
<option value="False" selected="selected">False</option>
</select>
</td></tr><tr></tr>
</td></tr><tr></tr>
<td><span class="f9 c6">ww:</span></td><td>
<select name="ww">
<option value="True">True</option>
@@ -97,12 +97,12 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<option value="1">Normal</option>
<option value="2">Christmas</option>
<option value="3">New Year</option>
<option value="4">Easter</option>
<option value="4">Easter</option>
</select>
</td></tr><tr></tr>
</table>
</p>
<p>
<span class="f10 c">ADMIN ACCOUNT</span>
<table>
@@ -117,7 +117,7 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
</td></tr><tr></tr>
</table>
</p>
<p>
<span class="f10 c">SQL RELATED</span>
<table><tr>
@@ -133,7 +133,7 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
</table>
</p>
<!-- <LEFT BOX - ADMIN RELATED>
<!-- <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 />
@@ -144,22 +144,22 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<!-- </LEFT BOX - ADMIN RELATED> -->
<!-- <RIGHT BOX - GPACK 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>
@@ -177,7 +177,7 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
</select></td></tr>
</table>
</p>
<p>
<span class="f10 c">LOG RELATED (You should disable them)</span>
<table><tr>
@@ -270,4 +270,4 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
<input type="hidden" name="subconst" value="1"></center>
</form>
</div>
</div>
+1 -1
View File
@@ -12,7 +12,7 @@ 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>
+8 -8
View File
@@ -1,9 +1,9 @@
<br>
<br>
<h4>&nbsp;&nbsp;Disclaimer</h4>
<h4>&nbsp;&nbsp;Disclaimer</h4>
<ul>
<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>
@@ -17,7 +17,7 @@
<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>
<ul>
@@ -29,14 +29,14 @@
<li>Change CHMOD GameEngine back to 644 and CHMOD 777: Prevention, Notes</li>
</ul>
<div class="lbox">
<div class="lbox">
TravianX Team
</div>
<br>
</div>
<br>
<center>
<form>
<input type="button" name="next" value="Next" onclick="location.href='?s=1'">
<input type="button" name="next" value="Next" onclick="location.href='?s=1'">
</form>
</center>
+4 -4
View File
@@ -16,12 +16,12 @@
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:
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;
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>
+4 -4
View File
@@ -12,7 +12,7 @@
<form action="include/multihunter.php" method="post" id="dataform">
<p>
<span class="f10 c">Create Multihunter account</span>
<table>
@@ -22,8 +22,8 @@
</table>
</p>
<center>
<input type="submit" name="Submit" id="Submit" value="Submit"></center>
<center>
<input type="submit" name="Submit" id="Submit" value="Submit"></center>
</form>
</div>
+130 -130
View File
@@ -1,14 +1,14 @@
<style type="text/css">
.menu{
margin-left: 23px;
margin-top: 50px;
.menu{
margin-left: 23px;
margin-top: 50px;
}
.f18 {
font-size: 18pt;
font-size: 18pt;
}
span.cc3 {position: absolute;right:10%}
span.cc2 {position: absolute;left:10%}
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;}
@@ -19,127 +19,127 @@ div.lbox ul, div.rbox ul {margin: 0 0 0 15px; padding: 0 15px 0 0;}
<?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();
}
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();
}
}
?>
?>