mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 02:12:37 +02:00
First assign to var, then use it
This commit is contained in:
@@ -126,12 +126,12 @@ class DirectoryLister {
|
||||
|
||||
} else {
|
||||
|
||||
// zip the stuff (dir and all in there) into the tmp_zip file
|
||||
exec('zip -' . $this->_config['zip_compression_level'] . ' -r ' . $tmp_zip . ' * -x ' . $exclude_list);
|
||||
|
||||
// get a tmp name for the .zip
|
||||
$tmp_zip = tempnam('tmp', 'tempzip') . '.zip';
|
||||
|
||||
// zip the stuff (dir and all in there) into the tmp_zip file
|
||||
exec('zip -' . $this->_config['zip_compression_level'] . ' -r ' . $tmp_zip . ' * -x ' . $exclude_list);
|
||||
|
||||
// calc the length of the zip. it is needed for the progress bar of the browser
|
||||
$filesize = filesize($tmp_zip);
|
||||
header("Content-Length: $filesize");
|
||||
|
Reference in New Issue
Block a user