Changeset 702 for trunk/forum/includes/functions_compress.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/includes/functions_compress.php
r400 r702 3 3 * 4 4 * @package phpBB3 5 * @version $Id : functions_compress.php 8780 2008-08-22 12:52:48Z acydburn$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 81 81 } 82 82 } 83 else 84 { 85 // $src does not exist 86 return false; 87 } 83 88 84 89 return true; … … 90 95 function add_custom_file($src, $filename) 91 96 { 97 if (!file_exists($src)) 98 { 99 return false; 100 } 101 92 102 $this->data($filename, file_get_contents($src), false, stat($src)); 93 103 return true; … … 156 166 function compress_zip($mode, $file) 157 167 { 158 return $this->fp = @fopen($file, $mode . 'b'); 168 $this->fp = @fopen($file, $mode . 'b'); 169 170 if (!$this->fp) 171 { 172 trigger_error('Unable to open file ' . $file . ' [' . $mode . 'b]'); 173 } 159 174 } 160 175
Note:
See TracChangeset
for help on using the changeset viewer.