Code Duplication    Length = 5-5 lines in 3 locations

ro_regonlinehandler.php 3 locations

@@ 453-457 (lines=5) @@
450
451
        $title = $summary . ' (' . $eventdate . ' ' . $location . ')';
452
453
        if (!empty($_SERVER['HTTPS'])) {
454
            $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
455
        } else {
456
            $url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
457
        }
458
459
        $url .= '?form_add=1';
460
        $url .= "&eventid=$eventid";
@@ 1196-1200 (lines=5) @@
1193
        $event_uid = Request::getInt('event_uid');
1194
        $classname = '';
1195
1196
        if (!empty($_SERVER['HTTPS'])) {
1197
            $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
1198
        } else {
1199
            $url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
1200
        }
1201
1202
        if (!isset($xoopsUser) || !is_object($xoopsUser)) {
1203
            $current_uid = 0;
@@ 1476-1480 (lines=5) @@
1473
        $lastname  = Request::getString('lastname', '');
1474
        $classname ='';
1475
1476
        if( ! empty( $_SERVER['HTTPS'] ) ) {
1477
            $url = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ;
1478
        } else {
1479
            $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ;
1480
        }
1481
1482
        $url .= "?list=1";
1483
        $url .= "&uid=$uid";