| | |
| | | <?php |
| | | |
| | | /* |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | This file is part of the Roundcube Webmail client | |
| | | | | |
| | |
| | | if ($url) { |
| | | $a_uri = parse_url($url); |
| | | $ssl = ($a_uri['scheme'] == 'https' || $a_uri['scheme'] == 'ssl'); |
| | | $port = $a_uri['port'] ? $a_uri['port'] : ($ssl ? 443 : 80); |
| | | $port = $a_uri['port'] ?: ($ssl ? 443 : 80); |
| | | $host = ($ssl ? 'ssl://' : '') . $a_uri['host']; |
| | | $path = $a_uri['path'] . ($a_uri['query'] ? '?'.$a_uri['query'] : '') . $this->lang; |
| | | } |
| | |
| | | $result = new SimpleXMLElement($response); |
| | | } |
| | | catch (Exception $e) { |
| | | $thid->error = "Unexpected response from server: " . $store; |
| | | $this->error = "Unexpected response from server: " . $response; |
| | | return array(); |
| | | } |
| | | |
| | |
| | | |
| | | return $result; |
| | | } |
| | | |
| | | } |
| | | |