equal
deleted
inserted
replaced
15 * @subpackage Frontend |
15 * @subpackage Frontend |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 define('ENANO_INTERFACE_INDEX', ''); |
19 define('ENANO_INTERFACE_INDEX', ''); |
|
20 |
|
21 // For the mighty and brave. |
|
22 define('ENANO_DEBUG', ''); |
20 |
23 |
21 // Set up gzip encoding before any output is sent |
24 // Set up gzip encoding before any output is sent |
22 |
25 |
23 $aggressive_optimize_html = true; |
26 $aggressive_optimize_html = true; |
24 |
27 |
31 |
34 |
32 if ( isset($_GET['nocompress']) ) |
35 if ( isset($_GET['nocompress']) ) |
33 $aggressive_optimize_html = false; |
36 $aggressive_optimize_html = false; |
34 |
37 |
35 error_reporting(E_ALL); |
38 error_reporting(E_ALL); |
36 |
|
37 // if(!strstr($v, 'CSS') && !strstr($v, 'UploadFile') && !strstr($v, 'DownloadFile')) // These pages are blacklisted because we can't have debugConsole's HTML output disrupting the flow of header() calls and whatnot |
|
38 // { |
|
39 // $do_gzip = ( function_exists('gzcompress') && ( isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') ) ) ? true : false; |
|
40 // // Uncomment the following line to enable debugConsole (requires PHP 5 or later) |
|
41 // // define('ENANO_DEBUG', ''); |
|
42 // } |
|
43 |
|
44 if(defined('ENANO_DEBUG')) $do_gzip = false; |
|
45 |
39 |
46 if($aggressive_optimize_html || $do_gzip) |
40 if($aggressive_optimize_html || $do_gzip) |
47 { |
41 { |
48 ob_start(); |
42 ob_start(); |
49 } |
43 } |