mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-09 21:01:00 +00:00
add ww tribe image
add ww tribe image
This commit is contained in:
@@ -200,6 +200,12 @@ define("USRNM_MIN_LENGTH", %USRNMMIN%);
|
||||
define("USRNM_MAX_LENGTH", %USRNMMAX%);
|
||||
define("PW_MIN_LENGTH", %PWMIN%);
|
||||
|
||||
// ***** Minunea Lumii cu stil pe trib
|
||||
// Cu true, fiecare trib isi vede propria Minune a Lumii, atat pe harta satului
|
||||
// cat si in pagina de constructie. Triburile fara imagini pe disc raman pe
|
||||
// imaginea originala, indiferent de setare.
|
||||
define("NEW_FUNCTION_WW_IMAGE", %WWIMAGE%);
|
||||
|
||||
// ***** Graphic Pack
|
||||
//
|
||||
// SERVER_GP is the pack every player sees by default (chosen at install or in
|
||||
|
||||
@@ -106,6 +106,9 @@ class Process {
|
||||
if ($pMin < 1 || $pMin > 100) { $pMin = 4; }
|
||||
$findReplace["%PWMIN%"] = $pMin;
|
||||
|
||||
// Minunea Lumii cu stil pe trib
|
||||
$findReplace["%WWIMAGE%"] = (isset($_POST['ww_image']) && $_POST['ww_image'] === 'false') ? 'false' : 'true';
|
||||
|
||||
$findReplace["%GP%"] = (isset($_POST['gpack']) && $_POST['gpack'] === 'true') ? 'true' : 'false';
|
||||
$findReplace["%SSERVER%"] = $_POST['sserver'];
|
||||
$findReplace["%SPORT%"] = $_POST['sport'];
|
||||
|
||||
@@ -330,6 +330,10 @@ foreach($mechs as $k => $l){
|
||||
<option value="true" selected>Yes</option>
|
||||
<option value="false">No – letters and digits only</option>
|
||||
</select></div>
|
||||
<div><label>Per-tribe World Wonder image</label><select class="input" name="ww_image">
|
||||
<option value="true" selected>Yes</option>
|
||||
<option value="false">No – same image for everyone</option>
|
||||
</select></div>
|
||||
<div><label>Allow player graphic packs</label><select class="input" name="gpack">
|
||||
<option value="false" selected>No – everyone sees the server pack</option>
|
||||
<option value="true">Yes – players may pick their own in Profile</option>
|
||||
|
||||
Reference in New Issue
Block a user