Code Duplication    Length = 5-5 lines in 3 locations

ro_regonlinehandler.php 3 locations

@@ 450-454 (lines=5) @@
447
448
        $title = $summary . ' (' . $eventdate . ' ' . $location . ')';
449
450
        if (!empty($_SERVER['HTTPS'])) {
451
            $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
452
        } else {
453
            $url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
454
        }
455
456
        $url .= '?form_add=1';
457
        $url .= "&eventid=$eventid";
@@ 1266-1270 (lines=5) @@
1263
        $event_uid = Request::getInt('event_uid');
1264
        $classname = '';
1265
1266
        if (!empty($_SERVER['HTTPS'])) {
1267
            $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
1268
        } else {
1269
            $url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
1270
        }
1271
1272
        if (!isset($xoopsUser) || !is_object($xoopsUser)) {
1273
            $current_uid = 0;
@@ 1560-1564 (lines=5) @@
1557
        $lastname  = Request::getString('lastname', '');
1558
        $classname ='';
1559
1560
        if( ! empty( $_SERVER['HTTPS'] ) ) {
1561
            $url = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ;
1562
        } else {
1563
            $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ;
1564
        }
1565
1566
        $url .= "?list=1";
1567
        $url .= "&uid=$event_uid";