| | |
| | | <?php |
| | | |
| | | if (!class_exists('rcube_install') || !is_object($RCI)) { |
| | | if (!class_exists('rcmail_install', false) || !is_object($RCI)) { |
| | | die("Not allowed! Please open installer/index.php instead."); |
| | | } |
| | | |
| | |
| | | if ($RCI->configured) { |
| | | if (!empty($RCI->config['db_dsnw'])) { |
| | | $DB = rcube_db::factory($RCI->config['db_dsnw'], '', false); |
| | | $DB->set_debug((bool)$RCI->config['sql_debug']); |
| | | $DB->db_connect('w'); |
| | | |
| | | if (!($db_error_msg = $DB->is_error())) { |
| | |
| | | |
| | | <h3>Test filetype detection</h3> |
| | | |
| | | <p> |
| | | <?php |
| | | |
| | | if ($errors = $RCI->check_mime_detection()) { |
| | |
| | | } |
| | | else { |
| | | $RCI->pass('Fileinfo/mime_content_type configuration'); |
| | | echo "<br/>"; |
| | | } |
| | | |
| | | ?> |
| | | </p> |
| | | <p> |
| | | <?php |
| | | |
| | | if ($errors = $RCI->check_mime_extensions()) { |
| | | $RCI->fail('Mimetype to file extension mapping'); |
| | |
| | | } |
| | | else { |
| | | $RCI->pass('Mimetype to file extension mapping'); |
| | | echo "<br/>"; |
| | | } |
| | | |
| | | ?> |
| | |
| | | $imap_user = idn_to_ascii($_POST['_user']); |
| | | |
| | | $imap = new rcube_imap(null); |
| | | $imap->set_options(array( |
| | | 'auth_type' => $RCI->getprop('imap_auth_type'), |
| | | 'debug' => $RCI->getprop('imap_debug'), |
| | | )); |
| | | |
| | | if ($imap->connect($imap_host, $imap_user, $_POST['_pass'], $imap_port, $imap_ssl)) { |
| | | $RCI->pass('IMAP connect', 'SORT capability: ' . ($imap->get_capability('SORT') ? 'yes' : 'no')); |
| | | $imap->close(); |