[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/components/com_mostlydbadmin/classes/ -> zip.lib.php (summary)

(no description)

File Size: 188 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

zipfile:: (3 methods):
  unix2DosTime()
  addFile()
  file()


Class: zipfile  - X-Ref

Zip file creation class.
Makes zip files.

Based on :

http://www.zend.com/codex.php?id=535&single=1
By Eric Mueller <eric@themepark.com>

http://www.zend.com/codex.php?id=470&single=1
by Denis125 <webmaster@atlant.ru>

a patch from Peter Listiak <mlady@users.sourceforge.net> for last modified
date and time of the compressed file

Official ZIP file format: http://www.pkware.com/appnote.txt

unix2DosTime($unixtime = 0)   X-Ref
Converts an Unix timestamp to a four byte DOS date and time format (date
in high two bytes, time in low two bytes allowing magnitude comparison).

param: integer  the current Unix timestamp
return: integer  the current date in a four byte DOS format

addFile($data, $name, $time = 0)   X-Ref
Adds "file" to archive

param: string   file contents
param: string   name of the file in the archive (may contains the path)
param: integer  the current timestamp

file()   X-Ref
Dumps out file

return: string  the zipped file