add checking for a new instalation
This commit is contained in:
@@ -1,11 +1,18 @@
|
|||||||
<?php
|
<?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'])) {
|
if (empty($_GET['entryPoint'])) {
|
||||||
include "main.html";
|
include "main.html";
|
||||||
} else {
|
} else {
|
||||||
include "bootstrap.php";
|
|
||||||
|
|
||||||
$app = new \Espo\Core\Application();
|
|
||||||
$app->runEntryPoint($_GET['entryPoint']);
|
$app->runEntryPoint($_GET['entryPoint']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user