From 2563619a58b98c1d088883ff9b6a9bb269ea87bb Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 26 May 2010 04:57:00 -0400 Subject: [PATCH] - small improvements --- installer/test.php | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/installer/test.php b/installer/test.php index 66698d7..e75ef27 100644 --- a/installer/test.php +++ b/installer/test.php @@ -119,7 +119,7 @@ ?> -<h3>Check configured database settings</h3> +<h3>Check DB config</h3> <?php $db_working = false; @@ -167,7 +167,8 @@ else if ($RCI->db_schema_check($DB, $update = !empty($_POST['updatedb']))) { $RCI->fail('DB Schema', "Database schema differs"); $updatefile = INSTALL_PATH . 'SQL/' . $DB->db_provider . '.update.sql'; - echo '<p class="warning">Please manually execute the SQL statements from '.$updatefile.' on your database</p>'; + echo '<p class="warning">Please manually execute the SQL statements from '.$updatefile.' on your database.<br/>'; + echo 'See comments in the file and execute queries that are superscribed with the currently installed version number.</p>'; $db_working = false; } else { @@ -210,7 +211,7 @@ ?> -<h3>Test SMTP settings</h3> +<h3>Test SMTP config</h3> <p> Server: <?php echo $RCI->getprop('smtp_server', 'PHP mail()'); ?><br /> @@ -243,10 +244,10 @@ <?php -if (isset($_POST['sendmail']) && !empty($_POST['_from']) && !empty($_POST['_to'])) { - +if (isset($_POST['sendmail'])) { + echo '<p>Trying to send email...<br />'; - + if (preg_match('/^' . $RCI->email_pattern . '$/i', trim($_POST['_from'])) && preg_match('/^' . $RCI->email_pattern . '$/i', trim($_POST['_to']))) { @@ -325,7 +326,7 @@ <p><input type="submit" name="sendmail" value="Send test mail" /></p> -<h3>Test IMAP configuration</h3> +<h3>Test IMAP config</h3> <?php -- Gitblit v1.9.1