mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 20:04:21 +00:00
11ae61c013
+Now during the installation (or after installation in the admin panel) you can enable or disable oasis display for villages in the player profile.
NOTE: To play this version of the game, you need to reinstall the server OR you can simply add these lines of code into your file:
GameEngine/config.php
/////////////////////////////////////////////////
// **** NEW MECHANICS AND FUNCTIONS **** //
/////////////////////////////////////////////////
define("NEW_FUNCTIONS_OASIS", True);
GameEngine/Admin/Modsconstant_format.tpl
/////////////////////////////////////////////////
// **** NEW MECHANICS AND FUNCTIONS **** //
/////////////////////////////////////////////////
define("NEW_FUNCTIONS_OASIS", %NEW_FUNCTIONS_OASIS%);
NOTICE 2: pay special attention to the fact that these are two different records !!! If the records are entered incorrectly, you will receive a non-working code!
45 lines
2.0 KiB
Smarty
45 lines
2.0 KiB
Smarty
<?php
|
|
#################################################################################
|
|
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## Filename editNewFunctions.tpl ##
|
|
## Developed by: velhbxtyrj ##
|
|
## License: TravianZ Project ##
|
|
## Copyright: TravianZ (c) 2010-2014. All rights reserved. ##
|
|
## ##
|
|
#################################################################################
|
|
if (!isset($_SESSION)) {
|
|
session_start();
|
|
}
|
|
if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
|
|
?>
|
|
<h2><center><?php echo SERV_CONFIG ?></center></h2>
|
|
<form action="../GameEngine/Admin/Mods/editNewFunctions.php" method="POST">
|
|
<input type="hidden" name="id" id="id" value="<?php echo $_SESSION['id']; ?>">
|
|
<br />
|
|
<table id="profile" cellpadding="0" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">Edit New Mechanics and Functions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td width="50%">Display oasis in profile <em class="tooltip">?<span class="classic">Turns on or off the display of oases of each village in the player profile</span></em></td>
|
|
<td width="50%">
|
|
<select name="new_functions_oasis">
|
|
<option value="True" <?php if(NEW_FUNCTIONS_OASIS==true) echo "selected";?>>True</option>
|
|
<option value="False" <?php if(NEW_FUNCTIONS_OASIS==false) echo "selected";?>>False</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<br />
|
|
<table width="100%">
|
|
<tr><td align="left"><a href="../Admin/admin.php?p=config"><< <?php echo EDIT_BACK ?></a></td>
|
|
<td align="right"><input type="image" border="0" src="../img/admin/b/ok1.gif"></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|