root / trunk / phpBB / includes / functions_compress.php

View | Annotate | Download (18.4 KB)

  • svn:eol-style: LF
  • svn:keywords: Author Date Id Revision
# Date Author Comment
10211 10/04/2009 07:14 PM Meik Sievertsen

Copy 3.0.x branch to trunk

9768 07/17/2009 11:32 AM Andreas Fischer

Fix bugs #46615 & #46945 - Fail gracefully if store folder is not writable during update.

8780 08/22/2008 02:52 PM Meik Sievertsen

change the way we do chmodd'ing. I know, my implementation really sucked... good we have motivated community members who point this out. ;) Thanks to faw for providing a way better function and for discussing and also abiding to our needs. :) LEW21 should maybe credited too... he gave the inspiration without knowing it.

8763 08/16/2008 09:06 PM Meik Sievertsen

the chmod change i already had within the changelog (by mistake). This should further secure writable directories and created files.
Installation need to be tested on different hosts.

8639 06/09/2008 07:44 PM Meik Sievertsen

check if folder is not empty (may happen for absolute paths). Thanks paul

8505 04/20/2008 06:39 AM David M

#14429

8479 03/29/2008 01:22 AM Nils Adermann

Hiding everywhere little buggers, eh?

8285 12/26/2007 03:53 PM

This commit was manufactured by cvs2svn to create branch 'phpBB-3_0_0'.

8146 10/05/2007 04:30 PM Meik Sievertsen

dumdidum... sorry. ;)

7877 07/13/2007 05:16 AM David M

#13327

7134 03/06/2007 12:30 PM Meik Sievertsen

safer name for the updater downloads (even if removed after download) - reported by SHS`

6688 11/28/2006 03:29 PM David M

#5654
- bzopen_or_bzdopen in bzlib.c appends us our binary mode in a strcat call, we don't need it for bzopen();

6549 11/04/2006 12:09 AM David M

- compress is nicer (fixed a bug :P)
- UTF-8 code is nicer (fixed a bug :P)
- new CAPTCHA. Replaced the old one for size and usability issues. The old CAPTCHA will most likely be released as a separate package

6371 09/16/2006 08:07 AM David M

bug fixes
schema changes
i really hope nothing went wrong

6073 06/16/2006 06:54 PM Meik Sievertsen

- removed db cache (might re-appear, but for now we do not see the need for it)
- all changes to styles/subsilver/template are purely cosmetic (no functional changes)
- cosmetics
- bugfixes
- add index to modules table
- use modules ordering code for forums too

6058 06/13/2006 11:06 PM Meik Sievertsen

make sure custom profile fields are created correctly on registration (#2225)

6015 06/06/2006 10:53 PM Meik Sievertsen

ok, this one is rather large... the most important change:
re-introduce append_sid: old style continues to work, not a performance hog as it was in 2.0.x -> structure is different

apart from this, code cleanage, bug fixing, etc.

5853 04/27/2006 04:20 PM Nils Adermann

- allow searches for multibyte characters in fulltext_native
- use preg_quote safely

5786 04/15/2006 08:00 PM David M

- Some archivers are worthless in this world

5765 04/06/2006 07:15 PM Meik Sievertsen

To all people having their bug status set to fixed: SF pserver CVS access is currently down, therefore the snapshots are still out of date.

- fix a bunch of bugs
- <!-- $Id$ --> is no longer allowed in template (.html) files
- changed layout of private message screens (folders are menu items)...

5647 03/18/2006 07:39 AM David M

- Cleaned up some compress stuff
- Replaced deprecated functions in the PostrgreSQL DBAL
- Added an undefined constant during install
- Oh, and we now have backups :D We currently work with all the MySQL flavors, PostgreSQL and SQLite...

5581 02/24/2006 07:27 PM David M

- We only write to the archive ONCE for every file and folder when working with tar files
- Checksum is faster, uses some precomputation to speed things up
- We only needed to pad the end of the archive with 512 nulls, not 1024 :D
- Added some comments regarding the other fields ;-)

5579 02/24/2006 06:30 AM David M

- fseek -> rewind
- fewer read commands, less ugly array stuff :D
- much cleaner way to deal with the version flag, stored files are now differently labeled than deflated files ( we follow the zip spec better than 7-Zip :D )

5578 02/24/2006 12:54 AM David M

Appending to the string is faster than copying it. Additionally, str_repeat is optimized for strings like "\0". This issue only came up with really, really large files to compress ( 150 MB + !)

5521 02/04/2006 11:29 PM David M

- Tar extraction and compression has changed to be more efficent by making fewer read/write commands.

5511 01/30/2006 02:14 AM David M

- We don't use the extra info because we can extrapolate the only thing of use (attributes) by using logic. Thus, we can skip large amounts of the file without missing any information.

5498 01/27/2006 07:51 AM David M

- More loose definition regarding what gets to be a folder and what does not (More accurate, we lost folders before...)
- Changed some fread()s to fseek()s
- Much faster, single loop ( This might eat up more mem! Please report findings! )

5497 01/27/2006 05:20 AM David M

- Tar extraction is MUCH faster, we parse the archive ONCE and create the directories on the spot instead of reading it twice and playing magic with file pointers. Also removed a potential leak.

- Zip extraction needs a small shot in the arm, files and archive must be handled a little better.

5496 01/26/2006 10:39 PM David M

Fixes in both CAPTCHA and Compress

Compress:
- The "crc bug" is not a bug, it is actually a feature (the function returns an Adler hash, not a crc hash. This is more usefull for PNG files..) and was "fixed" by using the proper function instead of munging a substring...

5422 01/04/2006 07:37 AM David M

- file_get_contents instead of imploding file()s or fread()ing till the maximum filesize
- language and style properly use compression
- language now prompts user for methods
- functions_compress does not need to eval() to get a hex date, instead calls pack()...

5416 01/02/2006 06:30 PM Meik Sievertsen

- install style and style elements
- refresh template and style cache

5385 12/27/2005 06:21 PM David M

- I forgot that we can add and remove prefixes :D
- A small style fix :D

5383 12/27/2005 03:13 PM David M

- Forgot to repair a function ;-)

5377 12/25/2005 12:12 PM Meik Sievertsen
  • empty log message ***
5351 12/18/2005 05:35 AM David M

This code works. All of it works. At least, it should.

Extraction of TAR files:
- It now works!
- If it could work before (which it couldn't) , it would create nasty issues with spaces. This is resolved
- If it could work before (which it couldn't) , it would try to create folders in such a way where some (all) folders could not be created. This is resolved....

5335 12/15/2005 01:42 PM David M

- Now creates vaild ZIP archives, "Data Descriptor" is not needed and breaks things.

5315 11/30/2005 06:48 PM Meik Sievertsen

- added acp_language (language pack management)
- minor adjustments to cope with PHP5.x

5114 04/09/2005 02:26 PM Meik Sievertsen

- Documentation related changes
- added resend activation email dialog
- fixed issue in session code
- log failed/successful admin re-authentication/login
- fixed simple forum dropdown box (used in mcp and posting)

5074 01/24/2005 12:02 AM Meik Sievertsen

- change registration page language on-the-fly
- added download function to functions_compress as well as tiny bugfixes
- added local_name and author to iso.txt file

4418 08/22/2003 02:35 AM psotfx

Various updates "discovered" while working on website compression function useage

4399 08/13/2003 06:43 PM psotfx

Seems some compression applications don't bother with little things like standards ...

4398 08/13/2003 06:11 PM psotfx

Fix up issues with .tar, .tar.gz and .tar.bz2 archives and directory structure creation

4381 08/12/2003 03:37 AM psotfx

Don't write out when closing unless a file actually exists ...

4357 08/09/2003 06:05 PM psotfx

Brain wanted in Room 101, Brain wanted

4356 08/09/2003 05:30 PM psotfx

It's amazing what a strategically placed = can do for normal operation ...

4355 08/09/2003 02:36 PM psotfx

Further tidy ups for zip compatibility ... still seem to be problems deleting entries via Powerarchiver ... works fine under Linux

4353 08/09/2003 02:30 AM psotfx

Improve compatibility of zip extract method

4315 07/22/2003 10:06 PM psotfx

Save some mem when decompressing .zip

4309 07/22/2003 12:54 AM psotfx

Extract .zip ... damn gzuncompress

4308 07/21/2003 07:32 PM psotfx

Extraction of .tar, .tar.gz and .tar.bz2

4307 07/21/2003 06:10 PM psotfx

argh

4306 07/21/2003 06:10 PM psotfx

concanetate rather than substr_replace

4305 07/21/2003 05:44 PM psotfx

add .tar, .tar.gz and .tar.bz2 support, rejiggle source, seperate compress objects extending the base class

4291 07/20/2003 04:37 PM psotfx

Ignore given list of files

4287 07/20/2003 04:18 PM psotfx

Compression/decompression "libs" and a change to filelist