[ Index ]

PHP Cross Reference of phpBB-3.1.10-deutsch

title

Body

[close]

/includes/ -> functions_compress.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 774 lines (20 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

compress:: (5 methods):
  add_file()
  add_custom_file()
  add_data()
  unique_filename()
  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


unique_filename($name)   X-Ref
Checks if a file by that name as already been added and, if it has,
returns a new, unique name.

return: string A unique filename
param: string $name The filename

methods()   X-Ref
Return available methods

return: array Array of strings of available compression methods (.tar, .tar.gz, .zip, etc.)

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 Limited, 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, $stat, $is_dir = false)   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, $stat, $is_dir = false)   X-Ref
Create the structures


open()   X-Ref
Open archive


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




Generated: Sun Feb 19 19:52:41 2017 Cross-referenced by PHPXref 0.7.1