-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
35 lines (29 loc) · 716 Bytes
/
index.php
File metadata and controls
35 lines (29 loc) · 716 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
34
35
<?php
include('./Config/parameters.php');
ob_start();
try {
/**
* View sequence, ob_start() is used to manage the localisation keys
*/
include(ROOT_PATH.'site/layout.php');
$send = ob_get_contents();
ob_end_clean();
echo Localise::run($send);
if(DEBUG) {
\He\Trace::dump();
}
} catch (Exception $exc) {
if(DEBUG) {
\He\Trace::addTrace('CRASH : '.$exc->getMessage(), 'GLOBAL', -2);
\He\Trace::addTrace('DETAIL : '.$exc->getTraceAsString(), 'GLOBAL', -2);
$send = ob_get_contents();
ob_end_clean();
include(ROOT_PATH.'site/layout_top.php');
echo Localise::run($send);
include(ROOT_PATH.'site/layout_bottom.php');
\He\Trace::dump(true);
exit(300);
} else {
exit(500);
}
}