-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
39 lines (25 loc) · 1.35 KB
/
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();
// BOOTSTRAP ///////////////////////////////////////////////////////////////////////////////////////////////////////////
require(__DIR__.'/module/core/helper/app.php');
$app = new coreApp();
// BENCH
if(BENCHME && defined('BENCHALLOW') && BENCHALLOW) include(__DIR__.'/module/core/helper/bench.php');
// CUSTOM CONFIG
if(file_exists(CONFIG.'/app.php')) include(CONFIG.'/app.php');
// URL (Common URL Rewriting rules)
require(__DIR__.'/module/core/helper/url.php');
// Custom URL
if(file_exists(CONFIG.'/url.php')) include(CONFIG.'/url.php');
// INIT KODEINE ////////////////////////////////////////////////////////////////////////////////////////////////////////
// Logout or Auto Login
if(isset($_REQUEST['logout'])) $app->userLogout();
$app->userIsLoged($_REQUEST['login'], $_REQUEST['password']);
// Init (main work here, init all process chapter, page etc...)
$app->kodeineInit($_GET);
// THEME ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Offline message
$app->offlineMessage();
// Next step is in the theme file
$app->themeInclude('html.build.php');
// PROFILE /////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(BENCHME && defined('BENCHALLOW') && BENCHALLOW) $app->benchmarkProfiling();