Changeset 921

Show
Ignore:
Timestamp:
05/04/08 18:58:11 (3 months ago)
Author:
julieni
Message:

ticket #538: jResponseZip : on windows files are view like folders

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/CREDITS

    r919 r921  
    1919 - localization system should work with language code without country (#95) 
    2020 - jForms html shouldn't generate readonly attribute on select (#550) 
     21 - jResponseZip : on windows files are view like folders (#538) 
    2122 
    2223Bastien Jaillot (aka bastnic) 
  • trunk/lib/jelix/CREDITS

    r919 r921  
    1919 - localization system should work with language code without country (#95) 
    2020 - jForms html shouldn't generate readonly attribute on select (#550) 
     21 - jResponseZip : on windows files are view like folders (#538) 
    2122 
    2223Bastien Jaillot (aka bastnic) 
  • trunk/lib/jelix/CREDITS

    r919 r921  
    1919 - localization system should work with language code without country (#95) 
    2020 - jForms html shouldn't generate readonly attribute on select (#550) 
     21 - jResponseZip : on windows files are view like folders (#538) 
    2122 
    2223Bastien Jaillot (aka bastnic) 
  • trunk/lib/jelix/CREDITS

    r919 r921  
    1919 - localization system should work with language code without country (#95) 
    2020 - jForms html shouldn't generate readonly attribute on select (#550) 
     21 - jResponseZip : on windows files are view like folders (#538) 
    2122 
    2223Bastien Jaillot (aka bastnic) 
  • trunk/lib/jelix/utils/jZipCreator.class.php

    r335 r921  
    44 * @subpackage utils 
    55 * @author     Laurent Jouanneau 
     6 * @contributor Julien Issler 
    67 * @copyright  2006 Laurent Jouanneau 
     8 * @copyright 2008 Julien Issler 
    79 * @link       http://www.jelix.org 
    810 * @licence    GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    8991        // converts unix timestamp to dos binary format 
    9092        if($filetime == 0) 
    91             $filetime = mktime(); 
     93            $filetime = time(); 
    9294        elseif($filetime < 315529200) // 01/01/1980 
    9395            $filetime = 315529200; 
     
    156158        */ 
    157159        $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); 
    159162        $cdrecord .= pack('V', $this ->centralDirOffset ); 
    160163        $cdrecord .= $zipFileName; 
  • trunk/lib/jelix/utils/jZipCreator.class.php

    r335 r921  
    44 * @subpackage utils 
    55 * @author     Laurent Jouanneau 
     6 * @contributor Julien Issler 
    67 * @copyright  2006 Laurent Jouanneau 
     8 * @copyright 2008 Julien Issler 
    79 * @link       http://www.jelix.org 
    810 * @licence    GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    8991        // converts unix timestamp to dos binary format 
    9092        if($filetime == 0) 
    91             $filetime = mktime(); 
     93            $filetime = time(); 
    9294        elseif($filetime < 315529200) // 01/01/1980 
    9395            $filetime = 315529200; 
     
    156158        */ 
    157159        $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); 
    159162        $cdrecord .= pack('V', $this ->centralDirOffset ); 
    160163        $cdrecord .= $zipFileName; 
  • trunk/lib/jelix/utils/jZipCreator.class.php

    r335 r921  
    44 * @subpackage utils 
    55 * @author     Laurent Jouanneau 
     6 * @contributor Julien Issler 
    67 * @copyright  2006 Laurent Jouanneau 
     8 * @copyright 2008 Julien Issler 
    79 * @link       http://www.jelix.org 
    810 * @licence    GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    8991        // converts unix timestamp to dos binary format 
    9092        if($filetime == 0) 
    91             $filetime = mktime(); 
     93            $filetime = time(); 
    9294        elseif($filetime < 315529200) // 01/01/1980 
    9395            $filetime = 315529200; 
     
    156158        */ 
    157159        $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); 
    159162        $cdrecord .= pack('V', $this ->centralDirOffset ); 
    160163        $cdrecord .= $zipFileName; 
  • trunk/lib/jelix/utils/jZipCreator.class.php

    r335 r921  
    44 * @subpackage utils 
    55 * @author     Laurent Jouanneau 
     6 * @contributor Julien Issler 
    67 * @copyright  2006 Laurent Jouanneau 
     8 * @copyright 2008 Julien Issler 
    79 * @link       http://www.jelix.org 
    810 * @licence    GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    8991        // converts unix timestamp to dos binary format 
    9092        if($filetime == 0) 
    91             $filetime = mktime(); 
     93            $filetime = time(); 
    9294        elseif($filetime < 315529200) // 01/01/1980 
    9395            $filetime = 315529200; 
     
    156158        */ 
    157159        $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); 
    159162        $cdrecord .= pack('V', $this ->centralDirOffset ); 
    160163        $cdrecord .= $zipFileName; 
Download in other formats: Unified Diff Zip Archive