| @@ 1844-1851 (lines=8) @@ | ||
| 1841 | if($use_ssl) |
|
| 1842 | { |
|
| 1843 | $port = self::get('_https_port'); |
|
| 1844 | if($port && $port != 443) |
|
| 1845 | { |
|
| 1846 | $url_info['port'] = $port; |
|
| 1847 | } |
|
| 1848 | elseif($url_info['port'] == 443) |
|
| 1849 | { |
|
| 1850 | unset($url_info['port']); |
|
| 1851 | } |
|
| 1852 | } |
|
| 1853 | else |
|
| 1854 | { |
|
| @@ 1853-1864 (lines=12) @@ | ||
| 1850 | unset($url_info['port']); |
|
| 1851 | } |
|
| 1852 | } |
|
| 1853 | else |
|
| 1854 | { |
|
| 1855 | $port = self::get('_http_port'); |
|
| 1856 | if($port && $port != 80) |
|
| 1857 | { |
|
| 1858 | $url_info['port'] = $port; |
|
| 1859 | } |
|
| 1860 | elseif($url_info['port'] == 80) |
|
| 1861 | { |
|
| 1862 | unset($url_info['port']); |
|
| 1863 | } |
|
| 1864 | } |
|
| 1865 | ||
| 1866 | $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']); |
|
| 1867 | ||