| | |
| | | ?> |
| | | |
| | | <h3>Check if directories are writable</h3> |
| | | <p>RoundCube may need to write/save files into these directories</p> |
| | | <p>Roundcube may need to write/save files into these directories</p> |
| | | <?php |
| | | |
| | | if ($RCI->configured) { |
| | |
| | | } |
| | | 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'; |
| | | $db_map = array('pgsql' => 'postgres', 'mysqli' => 'mysql', 'sqlsrv' => 'mssql'); |
| | | $updatefile = INSTALL_PATH . 'SQL/' . (isset($db_map[$DB->db_provider]) ? $db_map[$DB->db_provider] : $DB->db_provider) . '.update.sql'; |
| | | 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; |
| | |
| | | $headers = array( |
| | | 'From' => trim($_POST['_from']), |
| | | 'To' => trim($_POST['_to']), |
| | | 'Subject' => 'Test message from RoundCube', |
| | | 'Subject' => 'Test message from Roundcube', |
| | | ); |
| | | |
| | | $body = 'This is a test to confirm that RoundCube can send email.'; |
| | | $body = 'This is a test to confirm that Roundcube can send email.'; |
| | | $smtp_response = array(); |
| | | |
| | | // send mail using configured SMTP server |
| | |
| | | $send_headers = $mail_object->headers($headers); |
| | | |
| | | $SMTP = new rcube_smtp(); |
| | | $SMTP->connect(); |
| | | $SMTP->connect(rcube_parse_host($RCI->getprop('smtp_server')), |
| | | $RCI->getprop('smtp_port'), $CONFIG['smtp_user'], $CONFIG['smtp_pass']); |
| | | |
| | | $status = $SMTP->send_mail($headers['From'], $headers['To'], |
| | | ($foo = $mail_object->txtHeaders($send_headers)), $body); |