mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-27 22:46:04 +00:00
add checking for a new instalation
This commit is contained in:
13
index.php
13
index.php
@@ -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']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user