[*] fix coredump centos
This commit is contained in:
1 parent
5c66b6e2a7
commit
05e47fb0e4
2 files changed
+7
-16
No files matched your search
@@ -71,6 +71,12 @@
|
||||
define('START_TIME', microtime(true)); // засекаем время старта скрипта
|
||||
const CORE_LOADED = true; // флаг корректного запуска
|
||||
|
||||
if (empty($_SERVER['SERVER_NAME'])) {
|
||||
$_SERVER['SERVER_NAME'] = 'localhost';
|
||||
}
|
||||
if (empty($_SERVER['DOCUMENT_ROOT'])) {
|
||||
$_SERVER['DOCUMENT_ROOT'] = __DIR__. '/../';
|
||||
}
|
||||
require_once __DIR__ . '/config.php';
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user