From 2868a393104a29f3b305f4066792b57b1ac38cec Mon Sep 17 00:00:00 2001 From: till Date: Wed, 13 Feb 2008 20:10:29 +0000 Subject: * a few additions (eyecandy) --- check.php-dist | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/check.php-dist b/check.php-dist index 89a1587ee..f7fc0e787 100644 --- a/check.php-dist +++ b/check.php-dist @@ -69,7 +69,8 @@ set_include_path($include_path); $writable_dirs = array('logs/', 'temp/'); $create_files = array('config/db.inc.php', 'config/main.inc.php'); -$path = dirname(__FILE__) . '/'; +$path = dirname(__FILE__) . '/'; +$check = basename(__FILE__); ?> @@ -216,26 +217,41 @@ echo '
'; @include_once $path . '/config/main.inc.php'; ?>

Check email settings

-

SMTP Settings


'; if (is_array($rcmail_config) && count($rcmail_config)) { - echo 'OK
'; +?> + + + + + + +

SMTP Settings

IMAP Settings

+OK
'; echo 'server: ' . $rcmail_config['smtp_server'] . '
'; echo 'port: ' . $rcmail_config['smtp_port'] . '
'; echo 'user: ' . (($rcmail_config['smtp_user'] == '%u')?'use current session':$rcmail_config['smtp_user']) . '
'; echo 'pass: ' . (($rcmail_config['smtp_pass'] == '%p')?'use current session':$rcmail_config['smtp_pass']) . '
'; //var_dump($rcmail_config); ?> +
+OK
'; + echo 'server: ' . $rcmail_config['default_host'] . '
'; + echo 'port: ' . $rcmail_config['default_port'] . '
'; +?> +

Test SMTP settings - send an email

Don't abuse this!

-
+ -
+
We cannot test, default_host is not set in config/main.inc.php.'; } else { ?> - + -

+



@@ -312,7 +328,7 @@ if ($rcmail_config['default_host'] == '') { if ($result != true) { echo 'NOT OK'; - echo '
' . $iil_error; + echo '
Error return: ' . $iil_error; } else { echo 'OK'; } -- cgit v1.2.3