-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·39 lines (28 loc) · 868 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
39
<?php
session_start();
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
include 'conf.php';
if( (!defined('__corePath')) || (__corePath == '{basePath}core/') )
{
header('location: ' . str_replace('index.php', '', $_SERVER['PHP_SELF']) . 'install/');
die();
}
include __corePath.'libs/db.php';
include __corePath.'libs/core.php';
include __corePath.'libs/controller.php';
include __corePath.'libs/action.php';
include __corePath.'libs/service.php';
include __corePath.'libs/jsonDB.php';
include __corePath.'app.php';
$settingsDB = new JsonDB(__settingsdb);
include __corePath.'lang/'.$settingsDB->data['lang'].'.php';
/* load plugins */
foreach (glob(__corePath."plugins/*.php") as $filename)
include $filename;
/* load plugins */
$app = new App($dbconf);
$app->doAction();
$app->showPage();
?>