| @@ 1935-1942 (lines=8) @@ | ||
| 1932 | if($use_ssl) |
|
| 1933 | { |
|
| 1934 | $port = self::get('_https_port'); |
|
| 1935 | if($port && $port != 443) |
|
| 1936 | { |
|
| 1937 | $url_info['port'] = $port; |
|
| 1938 | } |
|
| 1939 | elseif($url_info['port'] == 443) |
|
| 1940 | { |
|
| 1941 | unset($url_info['port']); |
|
| 1942 | } |
|
| 1943 | } |
|
| 1944 | else |
|
| 1945 | { |
|
| @@ 1944-1955 (lines=12) @@ | ||
| 1941 | unset($url_info['port']); |
|
| 1942 | } |
|
| 1943 | } |
|
| 1944 | else |
|
| 1945 | { |
|
| 1946 | $port = self::get('_http_port'); |
|
| 1947 | if($port && $port != 80) |
|
| 1948 | { |
|
| 1949 | $url_info['port'] = $port; |
|
| 1950 | } |
|
| 1951 | elseif($url_info['port'] == 80) |
|
| 1952 | { |
|
| 1953 | unset($url_info['port']); |
|
| 1954 | } |
|
| 1955 | } |
|
| 1956 | ||
| 1957 | $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']); |
|
| 1958 | ||