| @@ 1874-1881 (lines=8) @@ | ||
| 1871 | if($use_ssl) |
|
| 1872 | { |
|
| 1873 | $port = self::get('_https_port'); |
|
| 1874 | if($port && $port != 443) |
|
| 1875 | { |
|
| 1876 | $url_info['port'] = $port; |
|
| 1877 | } |
|
| 1878 | elseif($url_info['port'] == 443) |
|
| 1879 | { |
|
| 1880 | unset($url_info['port']); |
|
| 1881 | } |
|
| 1882 | } |
|
| 1883 | else |
|
| 1884 | { |
|
| @@ 1883-1894 (lines=12) @@ | ||
| 1880 | unset($url_info['port']); |
|
| 1881 | } |
|
| 1882 | } |
|
| 1883 | else |
|
| 1884 | { |
|
| 1885 | $port = self::get('_http_port'); |
|
| 1886 | if($port && $port != 80) |
|
| 1887 | { |
|
| 1888 | $url_info['port'] = $port; |
|
| 1889 | } |
|
| 1890 | elseif($url_info['port'] == 80) |
|
| 1891 | { |
|
| 1892 | unset($url_info['port']); |
|
| 1893 | } |
|
| 1894 | } |
|
| 1895 | ||
| 1896 | $url[$ssl_mode][$domain_key] = sprintf('%s://%s%s%s', $use_ssl ? 'https' : $url_info['scheme'], $url_info['host'], $url_info['port'] && $url_info['port'] != 80 ? ':' . $url_info['port'] : '', $url_info['path']); |
|
| 1897 | ||