| @@ 87-92 (lines=6) @@ | ||
| 84 | if (!empty($xoops_redirect)) { |
|
| 85 | $redirect = $xoops_redirect; |
|
| 86 | $isExternal = false; |
|
| 87 | if ($pos = strpos($redirect, '://')) { |
|
| 88 | $xoopsLocation = substr($xoops_url, strpos($xoops_url, '://') + 3); |
|
| 89 | if (strcasecmp(substr($redirect, $pos + 3, strlen($xoopsLocation)), $xoopsLocation)) { |
|
| 90 | $isExternal = true; |
|
| 91 | } |
|
| 92 | } |
|
| 93 | if (!$isExternal) { |
|
| 94 | header('Location: ' . $redirect); |
|
| 95 | exit(); |
|
| @@ 1500-1505 (lines=6) @@ | ||
| 1497 | $url = $xoops_url; |
|
| 1498 | } |
|
| 1499 | } |
|
| 1500 | if (!$allowExternalLink && $pos = strpos($url, '://')) { |
|
| 1501 | $xoopsLocation = substr($xoops_url, strpos($xoops_url, '://') + 3); |
|
| 1502 | if (strcasecmp(substr($url, $pos + 3, strlen($xoopsLocation)), $xoopsLocation)) { |
|
| 1503 | $url = $xoops_url; |
|
| 1504 | } |
|
| 1505 | } |
|
| 1506 | if (!defined('XOOPS_CPFUNC_LOADED')) { |
|
| 1507 | $theme = 'default'; |
|
| 1508 | } else { |
|