Рефакторинг
This commit is contained in:
@@ -5,17 +5,7 @@ namespace Core;
|
||||
class Config
|
||||
{
|
||||
private static self $instance;
|
||||
private function __construct()
|
||||
{
|
||||
// error_reporting(E_ALL ^ E_NOTICE);
|
||||
|
||||
// ini_set('display_errors', 'Off');
|
||||
// ini_set('date.timezone', 'Europe/Moscow');
|
||||
|
||||
// header('Cache-Control: no-cache, no-store, must-revalidate');
|
||||
// header('Pragma: no-cache');
|
||||
// header('Expires: 0');
|
||||
}
|
||||
private function __construct() {}
|
||||
|
||||
public static function get(?string $key = null)
|
||||
{
|
||||
@@ -36,8 +26,8 @@ class Config
|
||||
$c['thiscity'] = 'capitalcity';
|
||||
$c['capitalcity'] = $c['host'];
|
||||
$c['abandonedplain'] = $c['host'];
|
||||
$c['https'] = 'https://' . $c['host'] . DIRECTORY_SEPARATOR;
|
||||
$c['exit'] = '<script>top.location.href="' . $c['https'] . '";</script>';
|
||||
$c['https'] = '//' . $c['host'] . DIRECTORY_SEPARATOR;
|
||||
$c['exit'] = '<script>top.location.href="//' . $c['host'] . '/";</script>';
|
||||
$c['support'] = 'support@' . $c['host'];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user