From fabf2da566b2ce098d949785b89a85893922bf11 Mon Sep 17 00:00:00 2001 From: Taras Machyshyn Date: Fri, 28 Feb 2014 18:35:38 +0200 Subject: [PATCH] add checking for a new instalation --- index.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index df5bd1c02a..29421df556 100644 --- a/index.php +++ b/index.php @@ -1,11 +1,18 @@ getContainer()->get('config')->get('configPath'); +if (!file_exists($configFile)) { + header("Location: install/"); + exit; +} + if (empty($_GET['entryPoint'])) { include "main.html"; } else { - include "bootstrap.php"; - - $app = new \Espo\Core\Application(); $app->runEntryPoint($_GET['entryPoint']); }