main/work/downloadfolder.inc.php 1 location
|
@@ 197-201 (lines=5) @@
|
| 194 |
|
//start download of created file |
| 195 |
|
$name = $fileName.'.zip'; |
| 196 |
|
|
| 197 |
|
if (Security::check_abs_path($temp_zip_file, api_get_path(SYS_ARCHIVE_PATH))) { |
| 198 |
|
DocumentManager::file_send_for_download($temp_zip_file, true, $name); |
| 199 |
|
@unlink($temp_zip_file); |
| 200 |
|
exit; |
| 201 |
|
} |
| 202 |
|
} else { |
| 203 |
|
exit; |
| 204 |
|
} |
main/inc/lib/document.lib.php 1 location
|
@@ 6509-6513 (lines=5) @@
|
| 6506 |
|
); |
| 6507 |
|
} |
| 6508 |
|
|
| 6509 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
| 6510 |
|
self::file_send_for_download($tempZipFile, true); |
| 6511 |
|
@unlink($tempZipFile); |
| 6512 |
|
exit; |
| 6513 |
|
} |
| 6514 |
|
} |
| 6515 |
|
|
| 6516 |
|
/** |
main/work/work.lib.php 1 location
|
@@ 5442-5446 (lines=5) @@
|
| 5439 |
|
// Start download of created file |
| 5440 |
|
$name = basename(api_replace_dangerous_char($userInfo['complete_name'])).'.zip'; |
| 5441 |
|
Event::event_download($name.'.zip (folder)'); |
| 5442 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
| 5443 |
|
DocumentManager::file_send_for_download($tempZipFile, true, $name); |
| 5444 |
|
@unlink($tempZipFile); |
| 5445 |
|
exit; |
| 5446 |
|
} |
| 5447 |
|
} |
| 5448 |
|
exit; |
| 5449 |
|
} |