-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
33 lines (23 loc) · 839 Bytes
/
index.php
File metadata and controls
33 lines (23 loc) · 839 Bytes
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
<?php
session_start();
$minPHPVersion = '8.0';
if(phpversion() < $minPHPVersion)
die("You need a minimum of PHP version $minPHPVersion to run this app");
define('DS', DIRECTORY_SEPARATOR);
define('ROOTPATH', __DIR__.DS);
require 'config.php';
require 'app'.DS.'core'.DS.'init.php';
DEBUG ? ini_set('display_errors', 1) : ini_set('display_errors', 0);
$ACTIONS = [];
$FILTERS = [];
$APP['URL'] = split_url($_GET['url'] ?? 'home');
$APP['permissions'] = [];
$USER_DATA = [];
/** load plugins **/
$PLUGINS = get_plugin_folders();
if(!load_plugins($PLUGINS))
die("<center><h1 style='font-family:tahoma'>No plugins were found! Please put at least one plugin in the plugins folder</h1></center>");
$APP['permissions'] = do_filter('permissions',$APP['permissions']);
/*load the app*/
$app = new \Core\App();
$app->index();