Lines Matching refs:header
79 $header = $this->parseHeader($read);
80 if(!is_array($header)) continue;
82 $this->skipbytes(ceil($header['size'] / 512) * 512);
83 $result[] = $header;
126 $header = $this->parseHeader($dat);
127 if(!is_array($header)) continue;
128 if(!$header['filename']) continue;
131 $filename = $this->cleanPath($header['filename']);
135 if(!$header['typeflag']) {
166 $extracted[] = $header;
169 $directory = ($header['typeflag']) ? $output : dirname($output);
176 if(!$header['typeflag']) {
180 $size = floor($header['size'] / 512);
184 … if(($header['size'] % 512) != 0) fwrite($fp, $this->readbytes(512), $header['size'] % 512);
187 touch($output, $header['mtime']);
188 chmod($output, $header['perm']);
190 … $this->skipbytes(ceil($header['size'] / 512) * 512); // the size is usually 0 for directories
193 $this->skipbytes(ceil($header['size'] / 512) * 512);
504 …$header = @unpack("a100filename/a8perm/a8uid/a8gid/a12size/a12mtime/a8checksum/a1typeflag/a100link…
505 if(!$header) return false;
507 $return['checksum'] = OctDec(trim($header['checksum']));
510 $return['filename'] = trim($header['filename']);
511 $return['perm'] = OctDec(trim($header['perm']));
512 $return['uid'] = OctDec(trim($header['uid']));
513 $return['gid'] = OctDec(trim($header['gid']));
514 $return['size'] = OctDec(trim($header['size']));
515 $return['mtime'] = OctDec(trim($header['mtime']));
516 $return['typeflag'] = $header['typeflag'];
517 $return['link'] = trim($header['link']);
518 $return['uname'] = trim($header['uname']);
519 $return['gname'] = trim($header['gname']);
522 … if(trim($header['prefix'])) $return['filename'] = trim($header['prefix']).'/'.$return['filename'];
527 $filename = trim($this->readbytes(ceil($header['size'] / 512) * 512));