header("Pragma: public"); header("Expires: 0"); header("Pragma: no-cache"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Cache-Control: private", false); header("Content-Type: {$content_type}"); header("Content-Transfer-Encoding: binary"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header('Content-Disposition: attachment; filename="' . $file_name . '";'); } if ($admin_routine == 'download_ftp' && $admin_action == 'ftp') { if ($use_zip) { set_common_file_download_header('ftp_list.zip', 'application/zip'); ob_start(); $pony_db->get_ftp_list(true); $ftp_list_data = ob_get_contents(); ob_end_clean(); create_zip_and_send('ftp_list.txt', $ftp_list_data); } else { set_common_file_download_header('ftp_list.txt'); $pony_db->get_ftp_list(true); } die; } if ($admin_routine == 'download_ssh' && $admin_action == 'ftp') { if ($use_zip) { set_common_file_download_header('ssh_list.zip', 'application/zip'); ob_start(); $null_array = array(); $pony_db->get_ftp_list(true, $null_array, 0, 'ssh');