Рефакторинг

This commit is contained in:
2023-04-15 22:18:30 +03:00
parent bdda3d24a0
commit 6afdb1a1be
19 changed files with 3321 additions and 3683 deletions
+3 -13
View File
@@ -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'];