View file includes/functions/gzip_foot.php

File size: 519B
<?php 
$Contents = ob_get_contents();
$gzib_file = strlen($Contents); 


if ($support_deflate) {
$gzib_file_out = strlen(gzdeflate($Contents,9));
} else{
if($support_gzip){
$gzib_file_out = strlen(gzencode($Contents,9));
} else {
if($support_x_gzip){
$gzib_file_out = strlen(gzcompress($Contents,9));
}else {
$gzib_file_out = strlen($Contents);
}}}

$gzib_pro=round(($gzib_file_out*100)/$gzib_file,1);
//if($gzib_pro > 0 && $gzib_pro < 100){
//echo 'Cжатие: '.$gzib_pro.'%';}
//echo'<br/>';
?>