Beispiel #1
0
function TestPOP3MessageFetch()
{
    print "**************RUNING IN TESTING MODE************\n";
    $config = get_postie_config();
    extract($config);
    $email = $test_email_account;
    $password = $test_email_password;
    return POP3MessageFetch($mail_server, $mail_server_port, $email, $password, $input_protocol, $time_offset, $test_email);
}
Beispiel #2
0
<?php

// try to connect to server with different protocols/ and userids
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "postie-functions.php";
include_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . "wp-config.php";
//require_once('admin.php');
require_once "postie-functions.php";
$config = get_postie_config();
extract($config);
$title = __("Postie Diagnosis");
$parent_file = 'options-general.php?page=postie/postie.php';
get_currentuserinfo();
if (!current_user_can('manage_options')) {
    echo "<h2> Sorry only admin can run this file</h2>";
    exit;
}
?>

<?
    $images = array("Test.png",
                    "Test.jpg",
                    "Test.gif");
?>
<div class="wrap"> 
    <h1>Postie Configuration Test</h1>
    <?php 
if (TestForMarkdown()) {
    print "<h1>Warning!</h1>\n                    <p>You currently have the Markdown plugin installed. It will cause problems if you send in HTML\n                    email. Please turn it off if you intend to send email using HTML</p>";
}
?>
    <?php