Chamilo is a learning management system focused on ease of use and accessibility
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.
 
 
 
 
 
 
chamilo-lms/public/index.php

19 lines
478 B

<?php
/* For licensing terms, see /license.txt */
use Chamilo\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
// Chamilo
$isInstalled = $context['APP_INSTALLED'] ?? null;
if (1 !== (int) $isInstalled) {
// Does not support subdirectories for now
header('Location: /main/install/index.php');
exit;
}
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};