main/inc/lib/document.lib.php 1 location
|
@@ 6311-6315 (lines=5) @@
|
| 6308 |
|
); |
| 6309 |
|
} |
| 6310 |
|
|
| 6311 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
| 6312 |
|
DocumentManager::file_send_for_download($tempZipFile, true); |
| 6313 |
|
@unlink($tempZipFile); |
| 6314 |
|
exit; |
| 6315 |
|
} |
| 6316 |
|
} |
| 6317 |
|
|
| 6318 |
|
/** |
main/work/downloadfolder.inc.php 1 location
|
@@ 195-199 (lines=5) @@
|
| 192 |
|
//start download of created file |
| 193 |
|
$name = $fileName .'.zip'; |
| 194 |
|
|
| 195 |
|
if (Security::check_abs_path($temp_zip_file, api_get_path(SYS_ARCHIVE_PATH))) { |
| 196 |
|
DocumentManager::file_send_for_download($temp_zip_file, true, $name); |
| 197 |
|
@unlink($temp_zip_file); |
| 198 |
|
exit; |
| 199 |
|
} |
| 200 |
|
} else { |
| 201 |
|
exit; |
| 202 |
|
} |
main/work/work.lib.php 1 location
|
@@ 5053-5057 (lines=5) @@
|
| 5050 |
|
// Start download of created file |
| 5051 |
|
$name = basename(api_replace_dangerous_char($userInfo['complete_name'])).'.zip'; |
| 5052 |
|
Event::event_download($name.'.zip (folder)'); |
| 5053 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
| 5054 |
|
DocumentManager::file_send_for_download($tempZipFile, true, $name); |
| 5055 |
|
@unlink($tempZipFile); |
| 5056 |
|
exit; |
| 5057 |
|
} |
| 5058 |
|
} |
| 5059 |
|
exit; |
| 5060 |
|
} |