| | |
| | | <?php |
| | | |
| | | /* |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | This file is part of the Roundcube Webmail client | |
| | | | | |
| | |
| | | { |
| | | $this->content = $text; |
| | | |
| | | if (empty($text)) { |
| | | return $this->matches = array(); |
| | | } |
| | | |
| | | // spell check uri is configured |
| | | $url = rcube::get_instance()->config->get('spellcheck_uri'); |
| | | |
| | |
| | | if ($fp = fsockopen($host, $port, $errno, $errstr, 30)) { |
| | | $out = "POST $path HTTP/1.0\r\n"; |
| | | $out .= "Host: " . str_replace('ssl://', '', $host) . "\r\n"; |
| | | $out .= "User-Agent: Roundcube Webmail/" . RCMAIL_VERSION . " (Googiespell Wrapper)\r\n"; |
| | | $out .= "User-Agent: Roundcube Webmail/" . RCUBE_VERSION . " (Googiespell Wrapper)\r\n"; |
| | | $out .= "Content-Length: " . strlen($gtext) . "\r\n"; |
| | | $out .= "Content-Type: text/xml\r\n"; |
| | | $out .= "Connection: Close\r\n\r\n"; |
| | |
| | | |
| | | return $result; |
| | | } |
| | | |
| | | } |
| | | |