Error creating constant.php check cmod.
"; } @session_start(); $envPath = dirname(__DIR__, 2) . '/.env'; $envDefaults = []; if(file_exists($envPath)) { $lines = @file($envPath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); if(is_array($lines)) { foreach($lines as $line) { $line = trim($line); if($line === '' || $line[0] === '#') { continue; } $eqPos = strpos($line, '='); if($eqPos === false) { continue; } $key = trim(substr($line, 0, $eqPos)); $value = trim(substr($line, $eqPos + 1)); if($key === '') { continue; } if((strlen($value) >= 2) && (($value[0] === '"' && substr($value, -1) === '"') || ($value[0] === "'" && substr($value, -1) === "'"))) { $value = substr($value, 1, -1); } $envDefaults[$key] = $value; } // Resolve ${VAR} references using parsed values first, then process env. foreach($envDefaults as $key => $value) { $envDefaults[$key] = preg_replace_callback('/\$\{([A-Z0-9_]+)\}/i', function($m) use ($envDefaults) { $ref = $m[1]; if(isset($envDefaults[$ref])) return $envDefaults[$ref]; $fromEnv = getenv($ref); return ($fromEnv !== false) ? $fromEnv : ''; }, $value); } } } $dbHost = $envDefaults['DB_HOST'] ?? 'localhost'; $dbPort = $envDefaults['DB_PORT'] ?? '3306'; $dbUser = $envDefaults['MARIADB_USER'] ?? ($envDefaults['MYSQL_USER'] ?? ''); $dbPass = $envDefaults['MARIADB_PASSWORD'] ?? ($envDefaults['MYSQL_PASSWORD'] ?? ''); $dbName = $envDefaults['MARIADB_DATABASE'] ?? ($envDefaults['MYSQL_DATABASE'] ?? ''); if(empty($_SESSION['install_random_prefix'])) { try { $_SESSION['install_random_prefix'] = 's' . substr(bin2hex(random_bytes(2)), 0, 4) . '_'; } catch (Throwable $e) { $_SESSION['install_random_prefix'] = 's' . str_pad((string) mt_rand(0, 9999), 4, '0', STR_PAD_LEFT) . '_'; } } $dbPrefix = $_SESSION['install_random_prefix']; ?>

SERVER RELATED
Server name:
Server Timezone:
Server speed:
Troop speed:
Evasion speed:
Trader capacity (1 = 1x...):
Cranny capacity:
Trapper capacity:
Natars Units Multiplier:
Natars Spawn (Days):
WW spawn (Days):
WW building plan spawn (Days):
World size:
Register Open:
Server:
Domain:
Homepage:
Language:
Beginners protection length:
Nature troops regeneration time:
Oasis wood production multiplier:
Oasis clay production multiplier:
Oasis iron production multiplier:
Oasis crop production multiplier:
Medal Interval:
Storage Multipler:
Tourn Threshold:
Great Workshop:
ww:
Show Natars in Statistics:
Peace system:

NEW MECHANICS AND FUNCTIONS RELATED
Display oasis in profile:
Alliance invitation message:
New Alliance & Embassy Mechanics:
New forum post message:
Tribes images in profile:
MHs images in profile:
Display artifact in profile:
Display wonder in profile:
Vacation Mode:
Catapult targets:
Manual on Nature and Natars:
Direct links placement:
Medal Veteran Player:
Medal Veteran Player 5a:
Medal Veteran Player 10a:

SQL RELATED
Hostname:
Port:
Username:
Password:
DB name:
Prefix:
Type:

PLUS GOLD PACKAGES
Your PayPal E-Mail Address:
(must be either Business or Premier account)
 
Payment Currency:
(your PayPal account must be able to receive this currency)
 
Package "A" Amount of Gold:
Package "A" Price:
 
Package "B" Amount of Gold:
Package "B" Price:
 
Package "C" Amount of Gold:
Package "C" Price:
 
Package "D" Amount of Gold:
Package "D" Price:
 
Package "E" Amount of Gold:
Package "E" Price:
 
Plus account length:
+25% production length:

NEWSBOX OPTIONS
Newsbox 1:
Newsbox 2:
Newsbox 3:

LOG RELATED (You should disable them)
Log Building:
Log Tech:
Log Login:
Log Gold:
Log Admin:
Log War:
Log Market:
Log Illegal:
Log :

EXTRA OPTIONS
Quest:
Quest Type:
Activate:
Limit Mailbox: (NOT DONE)
Max mails: (NOT DONE)
Demolish - lvl required:
Village Expand:
Error Reporting:
T4 is Coming screen:


Server Start Settings
Start Date:
Start Time: