# HG changeset patch # User Dan # Date 1249412810 14400 # Node ID 1a4f13626f76aa409e19090953fe1a7b3430ed1d # Parent b19a9bcb6a450f91fef445c6653155520ea119be Made index.php bootstrap smarter and better commented. diff -r b19a9bcb6a45 -r 1a4f13626f76 index.php --- a/index.php Tue Aug 04 15:02:54 2009 -0400 +++ b/index.php Tue Aug 04 15:06:50 2009 -0400 @@ -17,19 +17,16 @@ define('ENANO_INTERFACE_INDEX', ''); - // For the mighty and brave. - // define('ENANO_DEBUG', ''); - + // start up Enano + require('includes/common.php'); + + // decide on HTML compacting + $aggressive_optimize_html = !defined('ENANO_DEBUG') && !isset($_GET['nocompress']); + // Set up gzip encoding before any output is sent - - $aggressive_optimize_html = true; - global $do_gzip; // FIXME: make this configurable - $do_gzip = true; - - if ( isset($_GET['nocompress']) ) - $aggressive_optimize_html = false; + $do_gzip = !defined('ENANO_DEBUG'); error_reporting(E_ALL); @@ -38,9 +35,6 @@ ob_start(); } - // start up Enano - require('includes/common.php'); - global $db, $session, $paths, $template, $plugins; // Common objects $page_timestamp = time();