| @@ 1902-1909 (lines=8) @@ | ||
| 1899 | if($use_ssl) |
|
| 1900 | { |
|
| 1901 | $port = self::get('_https_port'); |
|
| 1902 | if($port && $port != 443) |
|
| 1903 | { |
|
| 1904 | $url_info['port'] = $port; |
|
| 1905 | } |
|
| 1906 | elseif($url_info['port'] == 443) |
|
| 1907 | { |
|
| 1908 | unset($url_info['port']); |
|
| 1909 | } |
|
| 1910 | } |
|
| 1911 | else |
|
| 1912 | { |
|
| @@ 1911-1922 (lines=12) @@ | ||
| 1908 | unset($url_info['port']); |
|
| 1909 | } |
|
| 1910 | } |
|
| 1911 | else |
|
| 1912 | { |
|
| 1913 | $port = self::get('_http_port'); |
|
| 1914 | if($port && $port != 80) |
|
| 1915 | { |
|
| 1916 | $url_info['port'] = $port; |
|
| 1917 | } |
|
| 1918 | elseif($url_info['port'] == 80) |
|
| 1919 | { |
|
| 1920 | unset($url_info['port']); |
|
| 1921 | } |
|
| 1922 | } |
|
| 1923 | ||
| 1924 | $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']); |
|
| 1925 | ||