Ticket #538: 538-jZipCreator.2.diff
| File 538-jZipCreator.2.diff, 1.2 kB (added by Julien, 4 months ago) |
|---|
-
lib/jelix/utils/jZipCreator.class.php
old new 3 3 * @package jelix 4 4 * @subpackage utils 5 5 * @author Laurent Jouanneau 6 * @contributor Julien Issler 6 7 * @copyright 2006 Laurent Jouanneau 8 * @copyright 2008 Julien Issler 7 9 * @link http://www.jelix.org 8 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 9 11 */ … … 88 90 89 91 // converts unix timestamp to dos binary format 90 92 if($filetime == 0) 91 $filetime = mktime();93 $filetime = time(); 92 94 elseif($filetime < 315529200) // 01/01/1980 93 95 $filetime = 315529200; 94 96 … … 155 157 - file comment (variable size) 156 158 */ 157 159 $cdrecord = "\x50\x4b\x01\x02\x00\x00\x14\x00\x00\x00\x08\x00".$fileinfo; 158 $cdrecord .= "\x00\x00\x00\x00\x00\x00\x32\x00\x00\x00"; 160 $cdrecord .= "\x00\x00\x00\x00\x00\x00"; 161 $cdrecord .= pack('V', 32); 159 162 $cdrecord .= pack('V', $this ->centralDirOffset ); 160 163 $cdrecord .= $zipFileName; 161 164
