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
|
@@ 6241-6245 (lines=5) @@
|
| 6238 |
|
); |
| 6239 |
|
} |
| 6240 |
|
|
| 6241 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
| 6242 |
|
DocumentManager::file_send_for_download($tempZipFile, true); |
| 6243 |
|
@unlink($tempZipFile); |
| 6244 |
|
exit; |
| 6245 |
|
} |
| 6246 |
|
} |
| 6247 |
|
|
| 6248 |
|
/** |
main/work/work.lib.php 1 location
|
@@ 5037-5041 (lines=5) @@
|
| 5034 |
|
// Start download of created file |
| 5035 |
|
$name = basename(api_replace_dangerous_char($userInfo['complete_name'])).'.zip'; |
| 5036 |
|
Event::event_download($name.'.zip (folder)'); |
| 5037 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
| 5038 |
|
DocumentManager::file_send_for_download($tempZipFile, true, $name); |
| 5039 |
|
@unlink($tempZipFile); |
| 5040 |
|
exit; |
| 5041 |
|
} |
| 5042 |
|
} |
| 5043 |
|
exit; |
| 5044 |
|
} |