index.php
changeset 564 a1c450a911a6
parent 547 0a2c1ce32d91
child 582 a38876c0793c
equal deleted inserted replaced
563:0103428e2179 564:a1c450a911a6
    26   $aggressive_optimize_html = true;
    26   $aggressive_optimize_html = true;
    27   
    27   
    28   global $do_gzip;
    28   global $do_gzip;
    29   $do_gzip = true;
    29   $do_gzip = true;
    30   
    30   
    31   if(isset($_SERVER['PATH_INFO'])) $v = $_SERVER['PATH_INFO'];
       
    32   elseif(isset($_GET['title'])) $v = $_GET['title'];
       
    33   else $v = '';
       
    34   
       
    35   if ( isset($_GET['nocompress']) )
    31   if ( isset($_GET['nocompress']) )
    36     $aggressive_optimize_html = false;
    32     $aggressive_optimize_html = false;
    37   
    33   
    38   error_reporting(E_ALL);
    34   error_reporting(E_ALL);
    39   
    35   
    40   if($aggressive_optimize_html || $do_gzip)
    36   if($aggressive_optimize_html || $do_gzip)
    41   {
    37   {
    42     ob_start();
    38     ob_start();
    43   }
    39   }
    44   
    40   
       
    41   // start up Enano
    45   require('includes/common.php');
    42   require('includes/common.php');
    46   
    43   
    47   global $db, $session, $paths, $template, $plugins; // Common objects
    44   global $db, $session, $paths, $template, $plugins; // Common objects
    48   $page_timestamp = time();
    45   $page_timestamp = time();
    49   
    46   
   584     header("ETag: \"$etag\"");
   581     header("ETag: \"$etag\"");
   585     
   582     
   586     // Done, send it to the user
   583     // Done, send it to the user
   587     echo( $html );
   584     echo( $html );
   588   }
   585   }
   589 
   586   
   590   $db->close();  
   587   $db->close();  
   591   gzip_output();
   588   gzip_output();
   592   
   589   
   593   @ob_end_flush();
   590   @ob_end_flush();
   594   
   591