-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
45 lines (39 loc) · 1.1 KB
/
index.php
File metadata and controls
45 lines (39 loc) · 1.1 KB
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
<?php
/* * **
* Lest'CMS par yamisaaf merci de respecter le copyright
*/
session_start();
define('START_TIME', microtime(true));
define('DS', DIRECTORY_SEPARATOR);
define('CORE', __DIR__ . DS . 'Core' . DS);
define('EXT', '.php');
define('BASE', __DIR__ . DS);
define('CONTROLLER', BASE . 'app' . DS . 'Controllers' . DS);
define('MODEL', BASE . 'app' . DS . 'Models' . DS);
define('VIEW', BASE . 'app' . DS . 'Views' . DS);
define('HELPER', BASE . 'Core' . DS . 'Helper' . DS);
define('LIBRARY', BASE . 'library' . DS);
define('LAYOUT', BASE . 'app' . DS . 'Layout' . DS);
define('DEBUG', FALSE);
require CORE . 'Session' . EXT;
try {
require CORE . 'Core' . EXT;
$core = new Core\Core();
$core->run();
//Session::Start();
if (DEBUG) {
Core\Core::debug($core->_loader->_class);
}
} catch (Exception $e) {
exit("probleme generer : " . $e->getMessage());
}
echo "<br/>";
$temps = function() {
//echo 'Page generee en ' . round(microtime(true) - START_TIME, 5) . ' secondes';
};
$temps();
if (DEBUG) {
echo "<pre>";
print_r(get_included_files());
echo "</pre>";
}