main/work/downloadfolder.inc.php 1 location
|
@@ 186-190 (lines=5) @@
|
183 |
|
//start download of created file |
184 |
|
$name = $fileName .'.zip'; |
185 |
|
|
186 |
|
if (Security::check_abs_path($temp_zip_file, api_get_path(SYS_ARCHIVE_PATH))) { |
187 |
|
DocumentManager::file_send_for_download($temp_zip_file, true, $name); |
188 |
|
@unlink($temp_zip_file); |
189 |
|
exit; |
190 |
|
} |
191 |
|
} else { |
192 |
|
exit; |
193 |
|
} |
main/inc/lib/document.lib.php 1 location
|
@@ 6226-6230 (lines=5) @@
|
6223 |
|
); |
6224 |
|
} |
6225 |
|
|
6226 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
6227 |
|
DocumentManager::file_send_for_download($tempZipFile, true); |
6228 |
|
@unlink($tempZipFile); |
6229 |
|
exit; |
6230 |
|
} |
6231 |
|
} |
6232 |
|
|
6233 |
|
/** |
main/work/work.lib.php 1 location
|
@@ 5015-5019 (lines=5) @@
|
5012 |
|
// Start download of created file |
5013 |
|
$name = basename(api_replace_dangerous_char($userInfo['complete_name'])).'.zip'; |
5014 |
|
Event::event_download($name.'.zip (folder)'); |
5015 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
5016 |
|
DocumentManager::file_send_for_download($tempZipFile, true, $name); |
5017 |
|
@unlink($tempZipFile); |
5018 |
|
exit; |
5019 |
|
} |
5020 |
|
} |
5021 |
|
exit; |
5022 |
|
} |