mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-09 21:01:00 +00:00
Add gpack and some fix
Add gpack and some fix
This commit is contained in:
@@ -147,9 +147,9 @@ define("WORLD_MAX", "%MAX%");
|
||||
// ***** Graphic Pack
|
||||
// true = enabled, false = disabled
|
||||
//!!!!!!!!!!!! DO NOT ENABLE !!!!!!!!!!!!
|
||||
define("GP_ENABLE",false);
|
||||
define("GP_ENABLE",%GP%);
|
||||
// Graphic pack location (default: gpack/travian_default/)
|
||||
define("GP_LOCATE", "gpack/travian_default/");
|
||||
define("GP_LOCATE", "%GP_LOCATE%");
|
||||
|
||||
// ***** Troop Speed
|
||||
// Values: 1 (normal), 3 (3x speed) etc...
|
||||
@@ -481,4 +481,4 @@ $requse = 0;
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
?>
|
||||
?>
|
||||
+11
-1
@@ -191,7 +191,17 @@ class Process {
|
||||
$findReplace["%VILLAGE_EXPAND%"] = $_POST['village_expand'];
|
||||
$findReplace["%ERRORREPORT%"] = $_POST['error'];
|
||||
$findReplace["%ERROR%"] = $_POST['error'];
|
||||
//$findReplace["%GP_LOCATE%"] = $_POST['gp_locate'];
|
||||
// Pachetul grafic al serverului. Linia era comentata, deci %GP_LOCATE%
|
||||
// ramanea neinlocuit in config.php. Validam ca directorul chiar exista si
|
||||
// contine travian.css, altfel jocul ar porni fara stiluri.
|
||||
$gpLocate = isset($_POST['gp_locate']) ? (string) $_POST['gp_locate'] : 'gpack/travian_default/';
|
||||
|
||||
if (!preg_match('#^gpack/[A-Za-z0-9_\-]+/$#', $gpLocate)
|
||||
|| !is_file('../' . $gpLocate . 'travian.css')) {
|
||||
$gpLocate = 'gpack/travian_default/';
|
||||
}
|
||||
|
||||
$findReplace["%GP_LOCATE%"] = $gpLocate;
|
||||
$findReplace["%PLUS_TIME%"] = $_POST['plus_time'];
|
||||
$findReplace["%PLUS_PRODUCTION%"] = $_POST['plus_production'];
|
||||
$findReplace["%PAYPAL_EMAIL%"] = $_POST['paypal-email'];
|
||||
|
||||
@@ -312,6 +312,10 @@ foreach($mechs as $k => $l){
|
||||
<div><label>Hero base regeneration (HP/day)</label><input class="input" name="hero_base_regen" id="hero_base_regen" value="10"></div>
|
||||
<div><label>Silver received per 1 gold</label><input class="input" name="hero_silver_per_gold" id="hero_silver_per_gold" value="10"></div>
|
||||
<div><label>Silver needed for 1 gold</label><input class="input" name="hero_silver_to_gold" id="hero_silver_to_gold" value="25"></div>
|
||||
<div><label>Graphic pack</label><select class="input" name="gp_locate">
|
||||
<option value="gpack/travian_default/" selected>Travian Default (classic T3.6 look)</option>
|
||||
<option value="gpack/travian_t4/">Travian T4 (T4-styled artwork)</option>
|
||||
</select></div>
|
||||
<div><label>Hero resources per point (all four)</label><input class="input" name="hero_res_all" id="hero_res_all" value="3"></div>
|
||||
<div><label>Hero resources per point (single type)</label><input class="input" name="hero_res_one" id="hero_res_one" value="10"></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user