| | |
| | | |
| | | // check list of tables |
| | | $existing_tables = $DB->list_tables(); |
| | | |
| | | foreach ($db_schema as $table => $cols) { |
| | | if (!in_array($this->config['db_table_'.$table], $existing_tables)) |
| | | $table = !empty($this->config['db_table_'.$table]) ? $this->config['db_table_'.$table] : $table; |
| | | if (!in_array($table, $existing_tables)) |
| | | $errors[] = "Missing table ".$table; |
| | | |
| | | // TODO: check cols and indices |
| | | } |
| | | |
| | |
| | | |
| | | foreach ($default_hosts as $key => $name) { |
| | | if (!empty($name)) |
| | | $out[] = is_numeric($key) ? $name : $key; |
| | | $out[] = rcube_parse_host(is_numeric($key) ? $name : $key); |
| | | } |
| | | |
| | | return $out; |