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