From bb62626c02d071b9d8d8335b57f1e24008a9f05f Mon Sep 17 00:00:00 2001 From: haneul Date: Tue, 11 May 2010 12:17:09 +0000 Subject: [PATCH] rollback 7443 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7444 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- common/script.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/common/script.php b/common/script.php index b3c9e43e0..f82643f7d 100644 --- a/common/script.php +++ b/common/script.php @@ -74,11 +74,15 @@ function printFileList($list){ for($i=0,$c=count($list);$i<$c;$i++){ $file = getRealPath($list[$i]); if(file_exists($file)){ - readfile($file); - flush(); - echo "\n"; + //$f = fopen($file,"r"); + //fpassthru($f); + $output .= file_get_contents($file); + $output .= "\n"; + //print("\n"); } } + header("Content-Encoding: gzip"); + print ob_gzhandler($output, 5); } if($type == '.css'){