| @@ 1855-1862 (lines=8) @@ | ||
| 1852 | if($use_ssl) |
|
| 1853 | { |
|
| 1854 | $port = self::get('_https_port'); |
|
| 1855 | if($port && $port != 443) |
|
| 1856 | { |
|
| 1857 | $url_info['port'] = $port; |
|
| 1858 | } |
|
| 1859 | elseif($url_info['port'] == 443) |
|
| 1860 | { |
|
| 1861 | unset($url_info['port']); |
|
| 1862 | } |
|
| 1863 | } |
|
| 1864 | else |
|
| 1865 | { |
|
| @@ 1864-1875 (lines=12) @@ | ||
| 1861 | unset($url_info['port']); |
|
| 1862 | } |
|
| 1863 | } |
|
| 1864 | else |
|
| 1865 | { |
|
| 1866 | $port = self::get('_http_port'); |
|
| 1867 | if($port && $port != 80) |
|
| 1868 | { |
|
| 1869 | $url_info['port'] = $port; |
|
| 1870 | } |
|
| 1871 | elseif($url_info['port'] == 80) |
|
| 1872 | { |
|
| 1873 | unset($url_info['port']); |
|
| 1874 | } |
|
| 1875 | } |
|
| 1876 | ||
| 1877 | $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']); |
|
| 1878 | ||