Lines Matching refs:zip
20 $zip = @fopen($zip_name, 'rb');
21 if(!$zip) return(0);
22 $centd = $this->ReadCentralDir($zip,$zip_name);
24 @rewind($zip);
25 @fseek($zip, $centd['offset']);
29 $header = $this->ReadCentralFileHeaders($zip);
177 $ok = 0; $zip = @fopen($zn,'rb');
178 if(!$zip) return(-1);
179 $cdir = $this->ReadCentralDir($zip,$zn);
190 @fseek($zip, $pos_entry);
191 $header = $this->ReadCentralFileHeaders($zip);
192 $header['index'] = $i; $pos_entry = ftell($zip);
193 @rewind($zip); fseek($zip, $header['offset']);
195 $stat[$header['filename']]=$this->ExtractFile($header, $to, $zip);
198 fclose($zip);
202 function ReadFileHeader($zip, $header) argument
204 $binary_data = fread($zip, 30);
207 $header['filename'] = fread($zip, $data['filename_len']);
209 $header['extra'] = fread($zip, $data['extra_len']);
233 function ReadCentralFileHeaders($zip){ argument
234 $binary_data = fread($zip, 46);
238 $header['filename'] = fread($zip,$header['filename_len']);
242 $header['extra'] = fread($zip, $header['extra_len']);
246 $header['comment'] = fread($zip, $header['comment_len']);
268 function ReadCentralDir($zip,$zip_name) argument
274 @fseek($zip, $size-$maximum_size);
275 $pos = ftell($zip); $bytes = 0x00000000;
279 $byte = @fread($zip, 1);
285 fread($zip, 18));
288 $centd['comment'] = fread($zip, $data['comment_size']);
296 function ExtractFile($header,$to,$zip) argument
298 $header = $this->readfileheader($zip, $header);
327 $buffer = fread($zip, $read_size);
348 $buffer = fread($zip, $read_size);