summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpabs <pabs@pablotron.org>2009-05-30 04:58:07 -0400
committerpabs <pabs@pablotron.org>2009-05-30 04:58:07 -0400
commit7839baa92b69874eddc5b296b1be3a181d910160 (patch)
tree47f6f14d6613b931acf3c48769e45ef4d199d624
parentae3d40dce04eba33ecf8db2e2f3b50855035b08f (diff)
downloadzipstream-php-7839baa92b69874eddc5b296b1be3a181d910160.tar.bz2
zipstream-php-7839baa92b69874eddc5b296b1be3a181d910160.zip
fix license
-rw-r--r--README16
-rw-r--r--zipstream.php7
2 files changed, 10 insertions, 13 deletions
diff --git a/README b/README
index 906cccb..2ae8b27 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-ZipStream 0.2.1 README
+ZipStream 0.2.2 README
======================
Please see the file COPYING for licensing and warranty information. The
@@ -11,21 +11,21 @@ Overview
A fast and simple streaming zip file downloader for PHP. Here's a
simple example:
- # create a new zipstream object
- $zip = new ZipStream('example.zip');
+ # create a new zipstream object
+ $zip = new ZipStream('example.zip');
- # add a file named 'image.jpg'
- $zip->add_file('image.jpg', file_get_contents('image.jpg'));
+ # add a file named 'image.jpg'
+ $zip->add_file('image.jpg', file_get_contents('image.jpg'));
- # finish the zip stream
- $zip->finish();
+ # finish the zip stream
+ $zip->finish();
You can also add comments, modify file timestamps, and customize (or
disable) the HTTP headers. See the class file for details. There are a
couple of additional examples in the initial release announcement at the
following URL:
- http://pablotron.org/?cid=1535
+ http://pablotron.org/?cid=1535
Requirements
============
diff --git a/zipstream.php b/zipstream.php
index a004277..efa6c50 100644
--- a/zipstream.php
+++ b/zipstream.php
@@ -15,10 +15,7 @@
# the following conditions: #
# #
# The above copyright notice and this permission notice shall be #
-# included in all copies of the Software, its documentation and #
-# marketing & publicity materials, and acknowledgment shall be given in #
-# the documentation, materials and software packages that this Software #
-# was used. #
+# included in all copies or substantial portions of the of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, #
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF #
@@ -79,7 +76,7 @@
# $zip->finish();
#
class ZipStream {
- const VERSION = '0.2.1';
+ const VERSION = '0.2.2';
var $opt = array(),
$files = array(),