add checking for a new instalation

This commit is contained in:
Taras Machyshyn
2014-02-28 18:35:38 +02:00
parent eb0482d862
commit fabf2da566

View File

@@ -1,11 +1,18 @@
<?php
include "bootstrap.php";
$app = new \Espo\Core\Application();
$configFile = $app->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']);
}