diff options
| author | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-23 20:42:24 +0000 |
|---|---|---|
| committer | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-23 20:42:24 +0000 |
| commit | 26f78224c51892da0ac28085a2147ed15f092351 (patch) | |
| tree | 019977c624ff3a998e2f379b88f530155c056949 /roundcubemail/installer/test.php | |
| parent | 59db32c2b2d44f4f957174e8e25adecd6ff1a66f (diff) | |
* fixing bug where people got: Call to undefined function decrypt_passwd()
(The form fields for smtp and imap test shared names and imap test overwrote smtp test fields (obviously).)
git-svn-id: https://svn.roundcube.net/trunk@1212 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/test.php')
| -rw-r--r-- | roundcubemail/installer/test.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/roundcubemail/installer/test.php b/roundcubemail/installer/test.php index 2e0637f7a..04259dd1c 100644 --- a/roundcubemail/installer/test.php +++ b/roundcubemail/installer/test.php @@ -164,11 +164,11 @@ if ($RCI->getprop('smtp_server')) { $pass = $RCI->getprop('smtp_pass', '(none)'); if ($user == '%u') { - $user_field = new textfield(array('name' => '_user')); - $user = $user_field->show($_POST['_user']); + $user_field = new textfield(array('name' => '_smtp_user')); + $user = $user_field->show($_POST['_smtp_user']); } if ($pass == '%p') { - $pass_field = new passwordfield(array('name' => '_pass')); + $pass_field = new passwordfield(array('name' => '_smtp_pass')); $pass = $pass_field->show(); } @@ -195,8 +195,8 @@ if (isset($_POST['sendmail']) && !empty($_POST['_from']) && !empty($_POST['_to'] preg_match('/^' . $RCI->email_pattern . '$/i', trim($_POST['_to']))) { $headers = array( - 'From' => trim($_POST['_from']), - 'To' => trim($_POST['_to']), + 'From' => trim($_POST['_from']), + 'To' => trim($_POST['_to']), 'Subject' => 'Test message from RoundCube', ); @@ -207,11 +207,13 @@ if (isset($_POST['sendmail']) && !empty($_POST['_from']) && !empty($_POST['_to'] if ($RCI->getprop('smtp_server')) { $CONFIG = $RCI->config; - if (!empty($_POST['_user'])) - $CONFIG['smtp_user'] = $_POST['_user']; - if (!empty($_POST['_pass'])) - $CONFIG['smtp_pass'] = $_POST['_pass']; - + if (!empty($_POST['_smtp_user'])) { + $CONFIG['smtp_user'] = $_POST['_smtp_user']; + } + if (!empty($_POST['_smtp_pass'])) { + $CONFIG['smtp_pass'] = $_POST['_smtp_pass']; + } + $mail_object = new rc_mail_mime(); $send_headers = $mail_object->headers($headers); |
