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
|
@@ 5065-5069 (lines=5) @@
|
5062 |
|
// Start download of created file |
5063 |
|
$name = basename(api_replace_dangerous_char($userInfo['complete_name'])).'.zip'; |
5064 |
|
Event::event_download($name.'.zip (folder)'); |
5065 |
|
if (Security::check_abs_path($tempZipFile, api_get_path(SYS_ARCHIVE_PATH))) { |
5066 |
|
DocumentManager::file_send_for_download($tempZipFile, true, $name); |
5067 |
|
@unlink($tempZipFile); |
5068 |
|
exit; |
5069 |
|
} |
5070 |
|
} |
5071 |
|
exit; |
5072 |
|
} |