Code Duplication    Length = 6-6 lines in 3 locations

admin/gateways/pec24/nusoap.php 3 locations

@@ 3415-3420 (lines=6) @@
3412
3413
        $cookie_param = 'domain=';
3414
        $start = strpos($cookie_str, $cookie_param);
3415
        if ($start > 0) {
3416
            $domain = substr($cookie_str, $start + strlen($cookie_param));
3417
            $domain = substr($domain, 0, strpos($domain, ';'));
3418
        } else {
3419
            $domain = '';
3420
        }
3421
3422
        $cookie_param = 'expires=';
3423
        $start = strpos($cookie_str, $cookie_param);
@@ 3424-3429 (lines=6) @@
3421
3422
        $cookie_param = 'expires=';
3423
        $start = strpos($cookie_str, $cookie_param);
3424
        if ($start > 0) {
3425
            $expires = substr($cookie_str, $start + strlen($cookie_param));
3426
            $expires = substr($expires, 0, strpos($expires, ';'));
3427
        } else {
3428
            $expires = '';
3429
        }
3430
3431
        $cookie_param = 'path=';
3432
        $start = strpos($cookie_str, $cookie_param);
@@ 3433-3438 (lines=6) @@
3430
3431
        $cookie_param = 'path=';
3432
        $start = strpos($cookie_str, $cookie_param);
3433
        if ($start > 0) {
3434
            $path = substr($cookie_str, $start + strlen($cookie_param));
3435
            $path = substr($path, 0, strpos($path, ';'));
3436
        } else {
3437
            $path = '/';
3438
        }
3439
3440
        $cookie_param = ';secure;';
3441
        if (strpos($cookie_str, $cookie_param) !== FALSE) {