Code Duplication    Length = 4-4 lines in 2 locations

modify.php 1 location

@@ 188-191 (lines=4) @@
185
            $contactby  = $myts->htmlSpecialChars($contactby);
186
            $premium    = $myts->htmlSpecialChars($premium);
187
            $useroffset = '';
188
            if ($GLOBALS['xoopsUser']) {
189
                $timezone   = $GLOBALS['xoopsUser']->timezone();
190
                $useroffset = (!empty($timezone)) ? $GLOBALS['xoopsUser']->timezone() : $xoopsConfig['default_TZ'];
191
            }
192
            $dates = ($useroffset * 3600) + $date;
193
            $dates = formatTimestamp($date, 's');
194

print.php 1 location

@@ 71-74 (lines=4) @@
68
    <table border=0 width=100% cellpadding=15 cellspacing=1 bgcolor=\"#FFFFFF\"><tr><td>";
69
70
    $useroffset = 0;
71
    if ($GLOBALS['xoopsUser'] instanceof XoopsUser) {
72
        $timezone   = $GLOBALS['xoopsUser']->timezone();
73
        $useroffset = (!empty($timezone)) ? $GLOBALS['xoopsUser']->timezone() : $xoopsConfig['default_TZ'];
74
    }
75
    $date  = ($useroffset * 3600) + $date;
76
    $date2 = $date + ($expire * 86400);
77
    $date  = formatTimestamp($date, 's');