-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.php
71 lines (61 loc) · 1.62 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* wityCMS index.php start-up file
*
* Content Management System for everyone.
*
* @author Johan Dufau <[email protected]>
* @author Julien Blatecky <[email protected]>
* @version 0.6.2-04-06-2018
*/
/**
* wityCMS version number
*/
define('WITYCMS_VERSION', '0.6.2');
/**
* Error reporting level = MAXIMUM
*/
error_reporting(E_ALL);
/**
* Files paths
*/
require_once 'paths.php';
/**
* Core classes inclusion
*/
require_once SYS_DIR.'WTemplate'.DS.'WTemplate.php';
require_once SYS_DIR.'WCore'.DS.'WSystem.php';
require_once SYS_DIR.'WCore'.DS.'WSession.php';
require_once SYS_DIR.'WCore'.DS.'WDatabase.php';
require_once SYS_DIR.'WCore'.DS.'WRoute.php';
require_once SYS_DIR.'WCore'.DS.'WConfig.php';
require_once SYS_DIR.'WCore'.DS.'WRequest.php';
require_once SYS_DIR.'WCore'.DS.'WLang.php';
require_once SYS_DIR.'WCore'.DS.'WDate.php';
require_once SYS_DIR.'WCore'.DS.'WNote.php';
require_once SYS_DIR.'WCore'.DS.'WHelper.php';
require_once SYS_DIR.'WCore'.DS.'WTools.php';
require_once SYS_DIR.'WCore'.DS.'WExport.php';
require_once SYS_DIR.'WCore'.DS.'WRetriever.php';
require_once SYS_DIR.'WCore'.DS.'WResponse.php';
require_once SYS_DIR.'WCore'.DS.'WMain.php';
/**
* Installer section
*/
if (file_exists(WITY_PATH.'installer/installer.php') && !file_exists(CONFIG_DIR.'config.php')) {
WRoute::init();
// Redirect user to root directory if not already on it
if (WRoute::getQuery() != '') {
header('Location: '.WRoute::getDir());
exit();
}
require 'installer/installer.php';
$installer = new Installer();
$installer->launch();
exit();
}
/**
* Execute Wity
*/
$wity = new WMain();
?>