game/_incl_data/class/Core/Config.php
2022-12-30 21:03:50 +02:00

100 lines
4.6 KiB
PHP
Raw 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
namespace Core;
class Config
{
private static self $instance;
private function __construct()
{
error_reporting(E_ALL ^ E_NOTICE);
setlocale(LC_CTYPE, "ru_RU.CP1251");
ini_set('display_errors', 'Off');
ini_set('default_charset', 'windows-1251');
ini_set('date.timezone', 'Europe/Moscow');
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');
}
public static function get(?string $key = null)
{
$c['ver'] = '1.8.3.7';
/* Êîíôèãóðàöèè èãðû */
$c['name'] = 'Áîéöîâñêèé Êëóá';
$c['title'] = 'Íîâûé «' . $c['name'] . '» - Áåñïëàòíàÿ,áðàóçåðíàÿ îíëàéí èãðà'; //Íàçâàíèå èãðû
$c['title2'] = ' - Áåñïëàòíàÿ, îíëàéí èãðà ïîñâÿùåííàÿ ñðàæåíèÿì è ìàãèè!';
$c['title3'] = $c['name'];
$c['keys'] = $c['name'] . ', combats.com, ' . $c['name'] . ' èãðà, ' . $c['name'] . ' èãðàòü, èãðà ' . $c['name'] . ', ñòàðûé ' . $c['name'] . ', ' . $c['name'] . ' îíëàéí èãðà, ' . $c['name'] . ' áðàóçåðíàÿ èãðà, èãðàòü â ' . $c['name'] . ', èãðà áê, áê èãðà, ñòàðûé áê, èãðàòü â áê, áê îíëàéí èãðà, íîâûé áê, Ëåãåíäàðíûé ' . $c['name'] . ', ëåãåíäàðíûé áê, combats, êîìáàòñ, combats ru, combats com, OldBK, oldbk ru, oldbk com, îëäáê, old bk, îëä áê, mycombats, rebk, recombats, oldcombats, obk2'; //Êëþ÷åâûå ñëîâà META
$c['desc'] = '«' . $c['name'] . ýòî áåñïëàòíàÿ óâëåêàòåëüíàÿ áðàóçåðíàÿ îíëàéí èãðà 2004-2009ã, â êîòîðîé ñêîíöåíòðèðîâàíî âñå ñàìîå ëó÷øåå îò ñîâðåìåííûõ îíëàéí èãð. Â ýòîé áðàóçåðíîé èãðå çàëîæåíû ñàìûå èíòåðåñíûå òðàäèöèè âñåì èçâåñòíîé îíëàéí èãðû ïîä íàçâàíèåì «' . $c['name'] . ' 2004-2009», êîòîðàÿ, êñòàòè, ñòàëà ïåðâîîòêðûâàòåëåì âñåõ áðàóçåðíûõ èãð.'; //Îïèñàíèå META
//Ñåðâåðà
$c['host'] = 'new-combats.com';
$c['forum'] = 'forum.' . $c['host'];
$c['img'] = 'img.' . $c['host'];
$c['thiscity'] = 'capitalcity';
$c['capitalcity'] = $c['host'];
$c['abandonedplain'] = $c['host'];
$c['https'] = 'https://' . $c['host'] . DIRECTORY_SEPARATOR;
$c['exit'] = '<script>top.location="' . $c['https'] . '";</script>';
//Âàëþòà
$c['curency_name'] = 'RUB';
$c['curency_value'] = 30;
//Áîò êëîí
$c['bot_level'] = 0; // äî êàêîãî ëâë áîò (âêëþ÷èòåëüíî)
$c['propsk_die'] = 0; //Ñìåðòü ïðè ïðîïóñêå õîäîâ, 0 - âûêë. , >= 1 - êîëè÷åñòâî ïðîïóñêîâ äî ñìåðòè ïðè íàïàäåíèè
//Ñêóïêà
$c['exp'] = 0; //áîíóñ îïûòà
$c['shop_type1'] = 100; //â ãîñ ÍÅ ÒÐÎÃÀÒÜ
$c['shop_type2'] = 90; //â áåðåçêó ÍÅ ÒÐÎÃÀÒÜ
$c['shop_all'] = 0; //Ñêóïêà íà âñå! , 0 - ñäåëàòü äëÿ îòêëþ÷åíèÿ ñêóïêè.
$c['shop_all_type1'] = 100; //Ñêóïêà òîëüêî ñ ãîñå! , 0 - ñäåëàòü äëÿ îòêëþ÷åíèÿ ñêóïêè.
$c['shop_all_type2'] = 100; //Ñêóïêà òîëüêî ñ áåðåçêè! , 0 - ñäåëàòü äëÿ îòêëþ÷åíèÿ ñêóïêè.
//
$c['nosanich'] = true; //Ñòðàíè÷êè Ñàíû÷à íå âûïàäàþò - true , âûïàäàþò - false
$c['zuby'] = false; //çóáû
$c['limitedexp'] = false; //ëèìèò îïûòà
$c['infinity5level'] = false; //âå÷íûå 5 óðîâíè
$c['expstop'] = 2999999; //9; //Îïûò íà êîòîðîì îñòàíàâëèâàåìñÿ 11 149999999
$c['expstopu'] = 2999999; //Îïûò íà êîòîðîì îñòàíàâëèâàåìñÿ
$c['noobgade'] = false; //íóá êâåñò (ïåùåðà)
$c['bonusonline'] = true; //áîíóñ çà îíëàéí
$c['level_ransfer'] = 8; //Ñ êàêîãî óðîâíÿ ðàçðåøåíû ïåðåäà÷è
$c['znahar'] = true; //áåñïëàòíûé çíàõàðü
$c['nolevel'] = false; //ëèìèòèðîâàíèå óðîâíåé
$c['noitembuy'] = false; //Íå òðåáóåò ðåñóðñû äëÿ ïîêóïêè
$c['effz'] = 0; //Ñêîëüêèì ñåêóíäàì ðàâåí çàðÿä
$c['money_haot'] = true; //êð çà õàîòû
$c['crtoecr'] = 500; //Êóðñ îáìåíà êð íà åêð (åñëè 0, òî âûêëþ÷åíî)
$c['ecrtocr'] = 200; //Êóðñ îáìåíà åêð íà êð
$c['bonuslevel'] = true; //Áîíóñ óðîâíÿ
$c['bonussocial'] = false; //Áîíóñ ñîöèàëüíûé
$c['w'] = date('w');
$c['m'] = date('m');
$c['counters'] = '';
$c['counters_noFrm'] = '';
$c['securetime'] = 0; //Âðåìÿ ïîñëåäíåãî âîçìîæíîãî âçëîìà ïåðñîâ (ïîäáîð ïàðîëÿ ïî áàçàì äàííûõ äðóãèõ èãð)
$c['copyright'] = 'Copyright © ' . date('Y') . ' « Íîâûé Áîéöîâñêèé Êëóá »';
$c['db_user'] = 'newcom1_abk';
$c['db_name'] = 'newcom1_abk';
$c['db_password'] = '4nWYsIM[c?}P';
return $c[$key] ?? $c;
}
public static function init(): Config
{
if (!isset(self::$instance)) {
self::$instance = new static();
}
return self::$instance;
}
}