Index: branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php =================================================================== diff -u -r5653 -r5661 --- branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5653) +++ branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5661) @@ -190,7 +190,7 @@ if($this->InitDone) return false; ob_start(); // collect any output from method (other then tags) into buffer - + if(defined('DEBUG_MODE') && $this->isDebugMode() && constOn('DBG_PROFILE_MEMORY')) { $this->Debugger->appendMemoryUsage('Application before Init:'); } @@ -231,7 +231,7 @@ if ($level < 0 || $level > 9) $level = 7; safeDefine('DBG_COMPRESSION_LEVEL', $level); } - + $this->HttpQuery =& $this->recallObject('HTTPQuery'); $this->Session =& $this->recallObject('Session'); @@ -241,7 +241,7 @@ $this->LoadCache(); $this->InitConfig(); - + // Module items are recalled during url parsing & PhrasesCache is needed already there, // because it's used in their build events. That's why phrases cache initialization is // called from kHTTPQuery in case when mod_rewrite is used @@ -268,7 +268,7 @@ $this->HandleEvent( new kEvent('visits:OnRegisterVisit') ); $this->ValidateLogin(); - + if($this->isDebugMode()) { $this->Debugger->profileFinish('kernel4_startup'); } @@ -686,14 +686,14 @@ } //eval("?".">".$this->HTML); - + $this->HTML = ob_get_clean().$this->HTML; if ($this->isDebugMode()) { $this->HTML .= $this->Debugger->printReport(true); } - + echo $this->UseOutputCompression() ? gzencode($this->HTML, DBG_COMPRESSION_LEVEL) : $this->HTML; - + $this->UpdateCache(); flush(); @@ -710,17 +710,18 @@ $session->SaveData(); //$this->SaveBlocksCache(); } - + /** * Checks if output compression options is available * * @return string */ function UseOutputCompression() { + if (constOn('IS_INSTALL')) return false; return $this->ConfigValue('UseOutputCompression') && function_exists('gzencode') && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'); } - + function SaveBlocksCache() { /*if (constOn('EXPERIMENTAL_PRE_PARSE')) { @@ -1392,7 +1393,7 @@ $buffer_content = ob_get_clean(); echo $this->UseOutputCompression() ? gzencode($buffer_content, DBG_COMPRESSION_LEVEL) : $buffer_content; - + $session =& $this->recallObject('Session'); $session->SaveData(); $this->SaveBlocksCache(); @@ -2094,14 +2095,14 @@ $target_zone = isset($time_zone) ? $time_zone : $this->ConfigValue('Config_Site_Time'); return 3600 * ($target_zone - $this->ConfigValue('Config_Server_Time')); } - + function ApplicationDie($message = '') { $message = ob_get_clean().$message; if ($this->isDebugMode()) { $message .= $this->Debugger->printReport(true); } - + echo $this->UseOutputCompression() ? gzencode($message, DBG_COMPRESSION_LEVEL) : $message; exit; }