Code Duplication    Length = 6-6 lines in 2 locations

htdocs/user.php 1 location

@@ 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();

htdocs/xoops_lib/Xoops.php 1 location

@@ 1503-1508 (lines=6) @@
1500
                $url = $xoops_url;
1501
            }
1502
        }
1503
        if (!$allowExternalLink && $pos = strpos($url, '://')) {
1504
            $xoopsLocation = substr($xoops_url, strpos($xoops_url, '://') + 3);
1505
            if (strcasecmp(substr($url, $pos + 3, strlen($xoopsLocation)), $xoopsLocation)) {
1506
                $url = $xoops_url;
1507
            }
1508
        }
1509
        if (!defined('XOOPS_CPFUNC_LOADED')) {
1510
            $theme = 'default';
1511
        } else {