00001 <?php 00016 function PPFDecompress($data, $type) 00017 { 00018 $uData = false; 00019 if($type == 1) 00020 $uData = @gzinflate(substr($data, 10)); 00021 else if($type == 2) 00022 $uData = @gzuncompress($data); 00023 else if($type == 3) 00024 $uData = @gzinflate($data); 00025 00026 return $uData; 00027 } 00028 00036 function PPFCanDecompress($type) 00037 { 00038 switch($type) 00039 { 00040 case 1: 00041 case 3: 00042 if(function_exists('gzinflate')) 00043 return true; 00044 break; 00045 case 2: 00046 if(function_exists('gzuncompress')) 00047 return true; 00048 break; 00049 } 00050 00051 return false; 00052 } 00053 00054 ?>