EngineGP/system/data/params.php
Sergei Solovev 276ec7f3eb Updating the server name reference in code
This change replaces the use of $_SERVER['SERVER_NAME'] with $_SERVER['HTTP_HOST'] throughout the codebase. The modification ensures consistency and compliance with best practices, since $_SERVER['HTTP_HOST'] is often used to extract the host header from an HTTP request. This update may improve compatibility and security, especially in scenarios where the Host header plays a key role in proper server configuration and routing. Please review and test the changes carefully to ensure smooth functionality in different environments.
2023-12-23 04:50:14 +03:00

302 lines
11 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
class params
{
// Скидки / Наценки
public static $disconunt = array(
'service' => array(
'time' => array(
'buy' => array(
'15' => '+:30',
'90' => '-:5%',
'180' => '-:7%'
),
'extend' => array(
'1' => '+:100%',
'15' => '+:30%',
'90' => '-:5%',
'180' => '-:7%'
)
),
9 => array(
'buy' => array(
'30' => '+:49%'
),
'extend' => array(
'1' => '+:50%'
)
)
)
);
// Стандартные порты
public static $aDefPort = array(
'cs' => 27015,
'cssold' => 27015,
'css' => 27015,
'csgo' => 27015,
'cs2' => 27015,
'rust' => 28015,
'samp' => 7777,
'crmp' => 7777,
'mta' => 22003,
'mc' => 25565,
);
// Параметры раздела "Копии"
public static $section_copy = array(
'cs' => array(
'CopyFull' => 'cstrike',
'aCopy' => array(
'addons' => 'Директория с дополнениями (модули/плагины)',
'cfg' => 'Файлы настроек (server.cfg/motd.txt/liblist.gam/banned.cfg и т.д.)',
'dlls' => 'Директория с библиотеками (название.so)',
'gfx' => 'Директория с изображениями (название.tga)',
'maps' => 'Директория с картами (название.bsp)',
'models' => 'Директория с моделями (название.mdl)',
'sound' => 'Директория со звуками (название.mp3/название.wav)'
),
'aCopyDir' => array(
'addons' => 'cstrike/addons',
'dlls' => 'cstrike/dlls',
'gfx' => 'cstrike/gfx',
'maps' => 'cstrike/maps',
'models' => 'cstrike/models',
'sound' => 'cstrike/sound'
),
'aCopyFile' => array(
'cfg' => 'cstrike/server.cfg cstrike/motd.txt cstrike/fastdl.cfg cstrike/liblist.gam cstrike/banned.cfg cstrike/listip.cfg cstrike/reunion.cfg cstrike/mapcycle.txt'
)
),
'cssold' => array(
'CopyFull' => 'cstrike',
'aCopy' => array(
'addons' => 'Директория с дополнениями (модули/плагины)',
'cfg' => 'Файлы настроек (server.cfg/motd.txt/banned_user.cfg/banned_ip.cfg и т.д.)',
'maps' => 'Директория с картами (название.bsp)',
'models' => 'Директория с моделями (название.mdl)',
'sound' => 'Директория со звуками (название.mp3/название.wav)'
),
'aCopyDir' => array(
'addons' => 'cstrike/addons',
'maps' => 'cstrike/maps',
'models' => 'cstrike/models',
'sound' => 'cstrike/sound'
),
'aCopyFile' => array(
'cfg' => 'cstrike/cfg/server.cfg cstrike/motd.txt cstrike/fastdl.cfg cstrike/banned_user.cfg cstrike/banned_ip.cfg cstrike/mapcycle.txt cstrike/maplist.txt'
)
),
'css' => array(
'CopyFull' => 'cstrike',
'aCopy' => array(
'addons' => 'Директория с дополнениями (модули/плагины)',
'cfg' => 'Файлы настроек (server.cfg/motd.txt/banned_user.cfg/banned_ip.cfg и т.д.)',
'maps' => 'Директория с картами (название.bsp)',
'models' => 'Директория с моделями (название.mdl)',
'sound' => 'Директория со звуками (название.mp3/название.wav)'
),
'aCopyDir' => array(
'addons' => 'cstrike/addons',
'maps' => 'cstrike/maps',
'models' => 'cstrike/models',
'sound' => 'cstrike/sound'
),
'aCopyFile' => array(
'cfg' => 'cstrike/cfg/server.cfg cstrike/motd.txt cstrike/fastdl.cfg cstrike/banned_user.cfg cstrike/banned_ip.cfg cstrike/mapcycle.txt cstrike/maplist.txt'
)
),
'csgo' => array(
'CopyFull' => 'csgo',
'aCopy' => array(
'addons' => 'Директория с дополнениями (модули/плагины)',
'cfg' => 'Файлы настроек (server.cfg/motd.txt/banned_user.cfg/banned_ip.cfg и т.д.)',
'maps' => 'Директория с картами (название.bsp)',
'models' => 'Директория с моделями (название.mdl)',
'sound' => 'Директория со звуками (название.mp3/название.wav)'
),
'aCopyDir' => array(
'addons' => 'csgo/addons',
'maps' => 'csgo/maps',
'models' => 'csgo/models',
'sound' => 'csgo/sound'
),
'aCopyFile' => array(
'cfg' => 'csgo/cfg/server.cfg csgo/motd.txt csgo/fastdl.cfg csgo/banned_user.cfg csgo/banned_ip.cfg csgo/mapcycle.txt csgo/maplist.txt'
)
),
'cs2' => array(
'CopyFull' => 'csgo',
'aCopy' => array(
'addons' => 'Директория с дополнениями (модули/плагины)',
'cfg' => 'Файлы настроек (server.cfg/motd.txt/banned_user.cfg/banned_ip.cfg и т.д.)',
'maps' => 'Директория с картами (название.bsp)',
'models' => 'Директория с моделями (название.mdl)',
'sound' => 'Директория со звуками (название.mp3/название.wav)'
),
'aCopyDir' => array(
'addons' => 'csgo/addons',
'maps' => 'csgo/maps',
'models' => 'csgo/models',
'sound' => 'csgo/sound'
),
'aCopyFile' => array(
'cfg' => 'csgo/cfg/server.cfg csgo/motd.txt csgo/fastdl.cfg csgo/banned_user.cfg csgo/banned_ip.cfg csgo/mapcycle.txt csgo/maplist.txt'
)
),
'rust' => array(
'CopyFull' => '*',
'aCopy' => array(
'addons' => 'Директория с дополнениями (модули/плагины)',
'cfg' => 'Файлы настроек (server.cfg/motd.txt/banned_user.cfg/banned_ip.cfg и т.д.)',
'maps' => 'Директория с картами (название.bsp)',
'models' => 'Директория с моделями (название.mdl)',
'sound' => 'Директория со звуками (название.mp3/название.wav)'
),
'aCopyDir' => array(
'addons' => 'csgo/addons',
'maps' => 'csgo/maps',
'models' => 'csgo/models',
'sound' => 'csgo/sound'
),
'aCopyFile' => array(
'cfg' => 'csgo/cfg/server.cfg csgo/motd.txt csgo/fastdl.cfg csgo/banned_user.cfg csgo/banned_ip.cfg csgo/mapcycle.txt csgo/maplist.txt'
)
),
'samp' => array(
'CopyFull' => '*',
'aCopy' => array(
'filterscripts' => 'Директория с дополнительными скриптами',
'cfg' => 'Файл настроек (server.cfg)',
'gamemodes' => 'Директория с модами',
'scriptfiles' => 'Директория с скриптами'
),
'aCopyDir' => array(
'filterscripts' => 'filterscripts',
'gamemodes' => 'gamemodes',
'scriptfiles' => 'scriptfiles'
),
'aCopyFile' => array(
'cfg' => 'server.cfg'
)
),
'crmp' => array(
'CopyFull' => '*',
'aCopy' => array(
'filterscripts' => 'Директория с дополнительными скриптами',
'cfg' => 'Файл настроек (server.cfg)',
'gamemodes' => 'Директория с модами',
'scriptfiles' => 'Директория с скриптами'
),
'aCopyDir' => array(
'filterscripts' => 'filterscripts',
'gamemodes' => 'gamemodes',
'scriptfiles' => 'scriptfiles'
),
'aCopyFile' => array(
'cfg' => 'server.cfg'
)
),
'mta' => array(
'CopyFull' => '*',
'aCopy' => array(
'databases' => 'Директория баз данных',
'cfg' => 'Файлы настроек (mtaserver.conf, acl.xml, vehiclecolors.conf и т.д.)',
'modules ' => 'Директория с модулями',
'resources' => 'Директория с ресурсами'
),
'aCopyDir' => array(
'databases' => 'mods/deathmatch/databases',
'modules' => 'mods/deathmatch/modules',
'resources' => 'mods/deathmatch/resources'
),
'aCopyFile' => array(
'cfg' => 'mods/deathmatch/mtaserver.conf mods/deathmatch/acl.xml mods/deathmatch/vehiclecolors.conf mods/deathmatch/settings.xml'
)
)
);
// Дни в месяцах
public static $aDayMonth = array(
1 => 31, 2 => 28, 3 => 31, 4 => 30,
5 => 31, 6 => 30, 7 => 31, 8 => 31,
9 => 30, 10 => 31, 11 => 30, 12 => 31
);
// Названия месяцев
public static $aNameMonth = array(
1 => 'Январь', 2 => 'Февраль', 3 => 'Март', 4 => 'Апрель',
5 => 'Май', 6 => 'Июнь', 7 => 'Июль', 8 => 'Август',
9 => 'Сентябрь', 10 => 'Октябрь', 11 => 'Ноябрь', 12 => 'Декабрь'
);
// Директории
public static $aDirGame = array(
'cs' => 'cstrike',
'cssold' => 'cstrike',
'css' => 'cstrike',
'csgo' => 'csgo',
'cs2' => 'cs2',
'rust' => '',
'samp' => '',
'crmp' => '',
'mta' => '',
'mc' => '',
);
// Исполняемые файлы
public static $aFileGame = array(
'cs' => 'hlds_run hlds_linux hlds_i686',
'cssold' => 'srcds_run srcds_i486 srcds_i686',
'css' => 'srcds_linux srcds_run',
'csgo' => 'srcds_linux srcds_run',
'cs2' => 'srcds_linux srcds_run',
'rust' => 'RustDedicated',
'samp' => 'samp03svr',
'crmp' => 'samp03svr-cr',
'mta' => 'mta-server',
'mc' => 'start.jar'
);
}
?>