[ Index ]

PHP Cross Reference of phpBB-3.3.14-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: 830 lines (22 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):
  __construct()
  unix_to_dos_time()
  extract()
  close()
  data()
  file()
  download()

compress_tar:: (6 methods):
  __construct()
  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.

param: string $name The filename
return: string A unique 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
__construct($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

__construct($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: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1