-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.php
38 lines (30 loc) · 872 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* @package panopticon
* @copyright Copyright (c)2023-2024 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license https://www.gnu.org/licenses/agpl-3.0.txt GNU Affero General Public License, version 3 or later
*/
use Akeeba\Panopticon\Application;
use Akeeba\Panopticon\Factory;
const AKEEBA = 1;
const AKEEBA_WEB = 1;
call_user_func(function (){
// Load prerequisites
require __DIR__ . '/defines.php';
require APATH_ROOT . '/version.php';
if (file_exists(APATH_USER_CODE . '/early_bootstrap.php'))
{
require_once APATH_USER_CODE . '/early_bootstrap.php';
}
require APATH_ROOT . '/includes/bootstrap.php';
$app = Factory::getApplication();
if (method_exists(Application::class, 'setInstance'))
{
Application::setInstance('panopticon', $app);
}
$app->initialise();
$app->route();
$app->dispatch();
$app->render();
$app->close();
});