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
|
@@ 6210-6214 (lines=5) @@
|
| 6207 |
|
); |
| 6208 |
|
} |
| 6209 |
|
|
| 6210 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
| 6211 |
|
DocumentManager::file_send_for_download($tempZipFile, true); |
| 6212 |
|
@unlink($tempZipFile); |
| 6213 |
|
exit; |
| 6214 |
|
} |
| 6215 |
|
} |
| 6216 |
|
|
| 6217 |
|
/** |
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 |
|
} |