-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·139 lines (130 loc) · 4.52 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php /** This is the /index.php file for WDGWV CMS. */
/*
------------------------------------------------------------
- :....................,:, -
- ,.`,,,::;;;;;;;;;;;;;;;;:;` -
- `...`,::;:::::;;;;;;;;;;;;;::' -
- ,..``,,,::::::::::::::::;:;;:::; -
- :.,,``..::;;,,,,,,,,,,,,,:;;;;;::;` -
- ,.,,,`...,:.:,,,,,,,,,,,,,:;:;;;;:;; -
- `..,,``...;;,;::::::::::::::'';';';:'' -
- ,,,,,``..:;,;;:::::::::::::;';;';';;''; -
- ,,,,,``....;,,:::::::;;;;;;;;':'''';''+; -
- :,::```....,,,:;;;;;;;;;;;;;;;''''';';';; -
- `,,::``.....,,,;;;;;;;;;;;;;;;;'''''';';;;' -
- :;:::``......,;;;;;;;;:::::;;;;'''''';;;;:- -
- ;;;::,`.....,::;;::::::;;;;;;;;'''''';;,;;, -
- ;:;;:;`....,:::::::::::::::::;;;;'''':;,;;; -
- ';;;;;.,,,,::::::::::::::::::;;;;;''':::;;' -
- ;';;;;.;,,,,::::::::::::::::;;;;;;;''::;;;' -
- ;'';;:;..,,,;;;:;;:::;;;;;;;;;;;;;;;':::;;' -
- ;'';;;;;.,,;:;;;;;;;;;;;;;;;;;;;;;;;;;:;':; -
- ;''';;:;;.;;;;;;;;;;;;;;;;;;;;;;;;;;;''';:. -
- :';';;;;;;::,,,,,,,,,,,,,,:;;;;;;;;;;''''; -
- '';;;;:;;;.,,,,,,,,,,,,,,,,:;;;;;;;;''''' -
- '''';;;;;:..,,,,,,,,,,,,,,,,,;;;;;;;''':, -
- .'''';;;;....,,,,,,,,,,,,,,,,,,,:;;;'''' -
- ''''';;;;....,,,,,,,,,,,,,,,,,,;;;''';. -
- '''';;;::.......,,,,,,,,,,,,,:;;;'''' -
- `''';;;;:,......,,,,,,,,,,,,,;;;;;'' -
- .'';;;;;:.....,,,,,,,,,,,,,,:;;;;' -
- `;;;;;:,....,,,,,,,,,,,,,,,:;;'' -
- ;';;,,..,.,,,,,,,,,,,,,,,;;', -
- '';:,,,,,,,,,,,,,,,::;;;: -
- `:;'''''''''''''''';:. -
- -
- ,,,::::::::::::::::::::::::;;;;,:::::::::::::::::::::::: -
- ,::::::::::::::::::::::::::;;;;,:::::::::::::::::::::::: -
- ,:; ## ## ## ##### #### ## ## ## ## ## ;:: -
- ,,; ## ## ## ## ## ## ## ## ## ## ## ;:: -
- ,,; ## ## ## ## ## ## #### ## ## ## ## ## ;:: -
- ,,' ## ## ## ## ## ## ## ## ## ## ## ## ::: -
- ,:: ######## #### ###### ######## ### ::: -
- ,,,:,,:,,:::,,,:;:::::::::::::::;;;:::;:;::::::::::::::: -
- ,,,,,,,,,,,,,,,,,,,,,,,,:,::::::;;;;:::::;;;;::::;;;;::: -
- -
- (c) WDGWV. 2018, http://www.wdgwv.com -
- Websites, Apps, Hosting, Services, Development. -
------------------------------------------------------------
*/
/**
* Set the namespace to WDGWV\CMS
*/
namespace WDGWV\CMS;
/**
* Set error reporting to E_ALL
*/
error_reporting(E_ALL);
/**
* CMS Start time
* @var int time in microseconds
*/
$CMSStartTime = microtime(true);
/**
* Check if loader is present, otherwise fail with error(1)
*/
if (file_exists('Data/WDGWV/CMS/Loader.php') &&
is_readable('Data/WDGWV/CMS/Loader.php')) {
/**
* Include the class loader.
*/
include_once 'Data/WDGWV/CMS/Loader.php';
} else {
/**
* File not found, exit(1).
*/
trigger_error('Loader class un-loadable.', E_USER_ERROR);
exit(1);
}
/**
* Check if the CMS is installed.
*/
if (Installer::shared()->isInstalled()) {
/**
* If the CMS is installed, then serve.
*/
Base::shared()->serve();
} else {
/**
* Check for a 'offline' install file.
*/
if (Installer::shared()->canOfflineInstall()) {
/**
* Install 'offline'
*/
Installer::shared()->beginOfflineInstall();
} else {
/**
* Install 'online'
*/
Installer::shared()->beginOnlineInstall();
}
}
/**
* If debugmode is on, then debug.
*/
if (Config::shared()->debug()) {
echo "<hr>";
$debugger->log(
array(
"Hooks" => Hooks::shared()->dumpDatabase(),
)
);
$debugger->logdump();
echo "<hr>";
$debugger->dumpAllClasses();
}
/**
* CMS End time
* @var int time in microseconds
*/
$CMSEndTime = microtime(true);
/**
* If in debug mode, then say "Generated this page in 000μs."
*/
if (Config::shared()->debug()) {
/**
* Output "Generated this page in ...μs."
*/
echo sprintf("Generated this page in %.2fμs.", ($CMSEndTime - $CMSStartTime));
}