Example #1
0
            if ($email->ctype_primary == 'multipart' && $email->ctype_secondary == 'report' && $email->ctype_parameters['report-type'] == 'delivery-status' && isset($email->parts[1]) && $email->parts[1]->ctype_primary == 'message' && $email->parts[1]->ctype_secondary == 'delivery-status') {
                $deleted_mails[] = process_bounce($email->parts[1]->body);
                //
                // On supprime l'email maintenant devenu inutile
                //
                //$pop->delete_mail($mail_id);
            }
        }
        $pop->quit();
    }
    $output = "Opération effectuée avec succés\n";
    $output .= count($deleted_mails) . " compte(s) supprimé(s) pour cause d'adresse non valide.\n\n";
    foreach ($deleted_mails as $mail) {
        $output .= ' - ' . $mail . "\n";
    }
    plain_error($output);
} else {
    $sql = "SELECT a.abo_id, a.abo_email\n\t\tFROM wa_abonnes AS a";
    $result = $db->query($sql);
    ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    
    <title>Bounces Manager</title>
	
	<style type="text/css">
	html  { background-color: white; font: .9em "Bitstream Vera Sans", sans-serif; color: black; }
	table {
		border: none;
Example #2
0
        $output->send_headers();
        $output->set_filenames(array('body' => 'show_popup.tpl'));
        $output->assign_vars(array('POPUP_TITLE' => sprintf($lang['Title']['Show_popup'], $filedata['file_real_name']), 'CONTENT_LANG' => $lang['CONTENT_LANG'], 'CONTENT_DIR' => $lang['CONTENT_DIR'], 'CHARSET' => $lang['CHARSET'], 'FILENAME' => $filedata['file_real_name'], 'MIME_TYPE' => $filedata['file_mimetype'], 'WIDTH_IMG' => $width, 'HEIGHT_IMG' => $height, 'U_SHOW_IMG' => sessid('./show.php?fid=' . $file_id)));
        $output->pparse('body');
    } else {
        header('Date: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
        header('Content-Disposition: inline; filename="' . $filedata['file_real_name'] . '"');
        header('Content-Length: ' . $filedata['file_size']);
        if ($is_svg == true) {
            $charset = 'UTF-8';
            if (preg_match('/^<\\?xml(.+?)\\?>/', $data, $match)) {
                if (preg_match('/encoding="([a-z0-9.:_-]+)"/i', $match[0], $match2)) {
                    $charset = $match2[1];
                }
            }
            header('Content-Type: ' . $filedata['file_mimetype'] . '; charset=' . $charset);
        } else {
            header('Content-Type: ' . $filedata['file_mimetype']);
        }
        echo $data;
    }
    //
    // Si l'option FTP est utilisée, suppression du fichier temporaire
    //
    if ($nl_config['use_ftp']) {
        $attach->remove_file($tmp_filename);
    }
    exit;
} else {
    plain_error('Unknown file !');
}