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
|
@@ 6255-6259 (lines=5) @@
|
| 6252 |
|
); |
| 6253 |
|
} |
| 6254 |
|
|
| 6255 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
| 6256 |
|
DocumentManager::file_send_for_download($tempZipFile, true); |
| 6257 |
|
@unlink($tempZipFile); |
| 6258 |
|
exit; |
| 6259 |
|
} |
| 6260 |
|
} |
| 6261 |
|
|
| 6262 |
|
/** |
main/work/work.lib.php 1 location
|
@@ 5249-5253 (lines=5) @@
|
| 5246 |
|
// Start download of created file |
| 5247 |
|
$name = basename(api_replace_dangerous_char($userInfo['complete_name'])).'.zip'; |
| 5248 |
|
Event::event_download($name.'.zip (folder)'); |
| 5249 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
| 5250 |
|
DocumentManager::file_send_for_download($tempZipFile, true, $name); |
| 5251 |
|
@unlink($tempZipFile); |
| 5252 |
|
exit; |
| 5253 |
|
} |
| 5254 |
|
} |
| 5255 |
|
exit; |
| 5256 |
|
} |