This repository was archived by the owner on Feb 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfiredmint.php
More file actions
49 lines (39 loc) · 1.32 KB
/
firedmint.php
File metadata and controls
49 lines (39 loc) · 1.32 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
44
45
46
47
48
49
<?php
// security check
if (defined('FM_SECURITY'))
{
header('HTTP/1.1 500 Internal Server Error');
print '<html><head><title>500 Application Error</title></head><body><h1>Application Error</h1><p>The Firedmint application could not be launched.</p></body></html>';
die();
}
@define('FM_SECURITY', true);
@define('FM_START_TIME', microtime(true));
// don't show errors
error_reporting(E_ALL);
ini_set('display_errors',1);
ob_start();
define('FM_VERSION', '0.3-svn');
define('FM_PHP_STARTFILE', '<?php'.PHP_EOL.'if (!defined(\'FM_SECURITY\')) die();'.PHP_EOL);
// define root paths
define('FM_PATH_CORE', 'core/');
define('FM_PATH_SITE', 'site/');
define('FM_PATH_STATIC', 'static/');
define('FM_PATH_VAR', 'var/');
// boot includes
require_once FM_PATH_CORE.'private/compatibility.php';
require_once FM_PATH_CORE.'private/function.php';
// Firedmint Live sequance
$__content = _boot();
ob_end_clean();
header::send();
@ini_set('zlib.output_compression_level', 1);
if(!config::$config['header']['page_compression'] || !ob_start("ob_gzhandler"))
ob_start();
if (is_null(header::getAlternateContent()))
echo $__content;
else
echo header::getAlternateContent();
ob_end_flush();
ob_start();
_shutdown();
ob_end_clean();