[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/ -> functions_compress.php (summary)

(no description)

Copyright: (c) 2005 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 739 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

compress:: (4 methods):
  add_file()
  add_custom_file()
  add_data()
  methods()

compress_zip:: (7 methods):
  compress_zip()
  unix_to_dos_time()
  extract()
  close()
  data()
  file()
  download()

compress_tar:: (6 methods):
  compress_tar()
  extract()
  close()
  data()
  open()
  download()


Class: compress  - X-Ref

Class for handling archives (compression/decompression)

add_file($src, $src_rm_prefix = '', $src_add_prefix = '', $skip_files = '')   X-Ref
Add file to archive


add_custom_file($src, $filename)   X-Ref
Add custom file (the filepath will not be adjusted)


add_data($src, $name)   X-Ref
Add file data


methods()   X-Ref
Return available methods


Class: compress_zip  - X-Ref

Zip creation class from phpMyAdmin 2.3.0 (c) Tobias Ratschiller, Olivier Müller, Loïc Chapeaux,
Marc Delisle, http://www.phpmyadmin.net/

Zip extraction function by Alexandre Tedeschi, alexandrebr at gmail dot com

Modified extensively by psoTFX and DavidMJ, (c) phpBB Group, 2003

Based on work by Eric Mueller and Denis125
Official ZIP file format: http://www.pkware.com/appnote.txt

compress_zip($mode, $file)   X-Ref
Constructor


unix_to_dos_time($time)   X-Ref
Convert unix to dos time


extract($dst)   X-Ref
Extract archive


close()   X-Ref
Close archive


data($name, $data, $is_dir = false, $stat)   X-Ref
Create the structures ... note we assume version made by is MSDOS


file()   X-Ref
file


download($filename, $download_name = false)   X-Ref
Download archive


Class: compress_tar  - X-Ref

Tar/tar.gz compression routine
Header/checksum creation derived from tarfile.pl, (c) Tom Horsley, 1994

compress_tar($mode, $file, $type = '')   X-Ref
Constructor


extract($dst)   X-Ref
Extract archive


close()   X-Ref
Close archive


data($name, $data, $is_dir = false, $stat)   X-Ref
Create the structures


open()   X-Ref
Open archive


download($filename, $download_name = false)   X-Ref
Download archive




Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1