mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 02:24:21 +00:00
more fixes
This commit is contained in:
@@ -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
Reference in New Issue
Block a user