| @@ 81-88 (lines=8) @@ | ||
| 78 | $xoops_redirect = rawurldecode($xoops_redirect); |
|
| 79 | $parsed = parse_url($xoops_url); |
|
| 80 | $url = isset($parsed['scheme']) ? $parsed['scheme'] . '://' : 'http://'; |
|
| 81 | if (isset($parsed['host'])) { |
|
| 82 | $url .= $parsed['host']; |
|
| 83 | if (isset($parsed['port'])) { |
|
| 84 | $url .= ':' . $parsed['port']; |
|
| 85 | } |
|
| 86 | } else { |
|
| 87 | $url .= $_SERVER['HTTP_HOST']; |
|
| 88 | } |
|
| 89 | if (@$parsed['path']) { |
|
| 90 | if (strncmp($parsed['path'], $xoops_redirect, strlen($parsed['path']))) { |
|
| 91 | $url .= $parsed['path']; |
|
| @@ 81-88 (lines=8) @@ | ||
| 78 | $this->xoops->loadLanguage('main', $this->xoops->module->getVar('dirname', 'n')); |
|
| 79 | $parsed = parse_url($this->xoops_url); |
|
| 80 | $url = isset($parsed['scheme']) ? $parsed['scheme'] . '://' : 'http://'; |
|
| 81 | if (isset($parsed['host'])) { |
|
| 82 | $url .= $parsed['host']; |
|
| 83 | if (isset($parsed['port'])) { |
|
| 84 | $url .= ':' . $parsed['port']; |
|
| 85 | } |
|
| 86 | } else { |
|
| 87 | $url .= $_SERVER['HTTP_HOST']; |
|
| 88 | } |
|
| 89 | ||
| 90 | $_SERVER['REQUEST_URI'] = |
|
| 91 | substr($this->xoops_url, strlen($url)) . '/modules/' . $startpage . '/index.php'; |
|