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
NATARS & MAP
OASIS & STORAGE
SQL RELATED
SERVER URLS
NEW MECHANICS AND FUNCTIONS
'Display oasis in profile', 'new_functions_alliance_invitation' => 'Alliance invitation', 'new_functions_embassy_mechanics' => 'Embassy mechanics', 'new_functions_forum_post_message' => 'Forum post message', 'new_functions_tribe_images' => 'Tribes images', 'new_functions_mhs_images' => 'MHs images', 'new_functions_display_artifact' => 'Display artifact', 'new_functions_display_wonder' => 'Display wonder', 'new_functions_vacation' => 'Vacation Mode', 'new_functions_display_catapult_target'=> 'Catapult targets', 'new_functions_manual_naturenatars' => 'Manual Nature/Natars', 'new_functions_display_links' => 'Direct links', 'new_functions_medal_3year' => 'Medal 3y', 'new_functions_medal_5year' => 'Medal 5y', 'new_functions_medal_10year' => 'Medal 10y', 'new_functions_special_medals_system' => 'Special Medals System' ]; foreach($mechs as $k => $l){ echo "
"; } ?>
PLUS GOLD PACKAGES
NEWSBOX OPTIONS
LOG RELATED (You should disable them)
EXTRA OPTIONS