index.php
changeset 1074 1a4f13626f76
parent 1016 6d32d80b2192
child 1081 745200a9cc2a
equal deleted inserted replaced
1073:b19a9bcb6a45 1074:1a4f13626f76
    15  * @subpackage Frontend
    15  * @subpackage Frontend
    16  */
    16  */
    17  
    17  
    18   define('ENANO_INTERFACE_INDEX', '');
    18   define('ENANO_INTERFACE_INDEX', '');
    19   
    19   
    20   // For the mighty and brave.
    20   // start up Enano
    21   // define('ENANO_DEBUG', '');
    21   require('includes/common.php');
    22  
    22   
       
    23   // decide on HTML compacting
       
    24   $aggressive_optimize_html = !defined('ENANO_DEBUG') && !isset($_GET['nocompress']);
       
    25   
    23   // Set up gzip encoding before any output is sent
    26   // Set up gzip encoding before any output is sent
    24   
       
    25   $aggressive_optimize_html = true;
       
    26   
       
    27   global $do_gzip;
    27   global $do_gzip;
    28   // FIXME: make this configurable
    28   // FIXME: make this configurable
    29   $do_gzip = true;
    29   $do_gzip = !defined('ENANO_DEBUG');
    30   
       
    31   if ( isset($_GET['nocompress']) )
       
    32     $aggressive_optimize_html = false;
       
    33   
    30   
    34   error_reporting(E_ALL);
    31   error_reporting(E_ALL);
    35   
    32   
    36   if($aggressive_optimize_html || $do_gzip)
    33   if($aggressive_optimize_html || $do_gzip)
    37   {
    34   {
    38     ob_start();
    35     ob_start();
    39   }
    36   }
    40   
       
    41   // start up Enano
       
    42   require('includes/common.php');
       
    43   
    37   
    44   global $db, $session, $paths, $template, $plugins; // Common objects
    38   global $db, $session, $paths, $template, $plugins; // Common objects
    45   $page_timestamp = time();
    39   $page_timestamp = time();
    46   
    40   
    47   if ( !isset($_GET['do']) )
    41   if ( !isset($_GET['do']) )