You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
581 B
16 lines
581 B
<?php
|
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
|
use Claroline\WebInstaller\Kernel;
|
|
|
|
$loader = require_once __DIR__ . '/../vendor/autoload.php';
|
|
$request = Request::createFromGlobals();
|
|
|
|
if (!file_exists($file = __DIR__ . '/../app/config/is_installed.php') || false === require_once $file) {
|
|
AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
|
|
$kernel = new Kernel(__DIR__ . '/../app');
|
|
$kernel->handle($request)->send();
|
|
} else {
|
|
header('Location: ' . $request->getBaseUrl() . '/../app.php');
|
|
}
|
|
|