[+not_installed_header+]
+[+not_installed_message+]
+ +diff --git a/index.php b/index.php index a24e6abe5..1bc68dcc5 100644 --- a/index.php +++ b/index.php @@ -58,18 +58,20 @@ if (file_exists(__DIR__ . '/config.php')) { $config = array_merge($config, require __DIR__ . '/config.php'); } -if (!defined('IN_INSTALL_MODE') && !file_exists($config['core'] . '/.install')) { +if (!defined('IN_INSTALL_MODE') && !file_exists($config['core'] . '/.install')) { + + if (is_dir(__DIR__ . '/install')) { + header('Location: install/index.php?action=not_installed'); + exit; + } + header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Status: 503 Service Temporarily Unavailable'); header('Retry-After: 3600'); - $path = __DIR__ . '/install/src/template/not_installed.tpl'; - if (file_exists($path)) { - readfile($path); - } else { - echo '
Evolution CMS is not currently installed or the configuration file cannot be found.
-Do you want to install now?
-
+ [+not_installed_message+]
+ +