| @copyright 2007-2026 (c) AVE.cms | @link https://ave-cms.ru | @version 3.3 */ define('START_MICROTIME', microtime()); define('START_MEMORY', memory_get_usage()); define('BASEPATH', str_replace('\\', '/', __DIR__)); if (!@filesize(BASEPATH . '/configs/db.config.php')) { if (!is_file(BASEPATH . '/storage/installed.lock')) { $basePath = rtrim(str_replace('\\', '/', dirname(isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : '/index.php')), '/'); header('Location: ' . $basePath . '/setup/', true, 302); exit; } http_response_code(503); header('Content-Type: text/plain; charset=UTF-8'); echo 'Конфигурация базы данных отсутствует. Восстановите configs/db.config.php.'; exit; } if (is_file(BASEPATH . '/storage/updates/maintenance.json')) { http_response_code(503); header('Content-Type: text/html; charset=UTF-8'); header('Retry-After: 60'); header('Cache-Control: no-store'); echo '' . '
AVE.cms устанавливает системное обновление. Страница станет доступна автоматически после контрольной проверки.