mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-10 21:31:01 +00:00
Some fix and add protected players
Some fix and add protected players
This commit is contained in:
@@ -352,6 +352,7 @@ if (!function_exists('tz_config_finalize')) {
|
||||
}
|
||||
|
||||
$defaults = array(
|
||||
'PROTECTED_PLAYERS' => '',
|
||||
'NATARS_WW_START_DELAY' => 10,
|
||||
'USRNM_MIN_LENGTH' => 3,
|
||||
'USRNM_MAX_LENGTH' => 15,
|
||||
|
||||
@@ -140,6 +140,10 @@ $text = admin_config_template_contents(array(
|
||||
tz_config_set($text, '%PWMIN%', $pMin);
|
||||
|
||||
tz_config_set($text, '%SERVERNAME%', $_POST['servername'] ?? '');
|
||||
// Jucatori protejati impotriva atacurilor. Scoatem ghilimelele, ca sirul
|
||||
// intra intre ghilimele in config.php.
|
||||
tz_config_set($text, '%PROTECTEDPLAYERS%',
|
||||
trim(str_replace('"', '', $_POST['protected_players'] ?? '')));
|
||||
// Fusul orar se scrie intr-un fisier PHP (define("TIMEZONE","...")), deci
|
||||
// valoarea NU are voie sa ajunga acolo nefiltrata: pana acum $_POST['tzone']
|
||||
// era inserat ca atare, ceea ce permitea scrierea de cod in config.php.
|
||||
|
||||
Reference in New Issue
Block a user