Changeset 2282

Show
Ignore:
Timestamp:
12/04/10 17:47:31 (18 months ago)
Author:
petsagouris
Message:

[Branch 1.5] Adding gzip compression. test #180

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/Hotaru.php

    r2281 r2282  
    9292                        $init = new Initialize($this); 
    9393 
     94                        $this->ob_start(); 
     95                         
    9496                        $this->db           = $init->db;            // database object 
    9597                        $this->cage         = $init->cage;          // Inspekt cage 
     
    144146 
    145147                $lang->writeLanguageCache($this); 
    146  
     148                $this->ob_flush(); 
    147149                exit; 
     150        } 
     151 
     152        /** 
     153         * Start the buffering of the output 
     154         * @todo This function is temporary just to test various options and test stuff. Decide to keep them just before the release. 
     155         */ 
     156        public function ob_start() 
     157        { 
     158                ob_start("ob_gzhandler"); 
     159        } 
     160 
     161        /** 
     162         * Stop the buffering of the output and just send the contents 
     163         * @todo This function is temporary just to test various options and test stuff. Decide to keep them just before the release. 
     164         */ 
     165        public function ob_flush() 
     166        { 
     167                ob_end_flush(); 
    148168        } 
    149169