Code Duplication    Length = 4-4 lines in 2 locations

modify.php 1 location

@@ 176-179 (lines=4) @@
173
            $contactby  = $myts->htmlSpecialChars($contactby);
174
            $premium    = $myts->htmlSpecialChars($premium);
175
            $useroffset = '';
176
            if ($GLOBALS['xoopsUser']) {
177
                $timezone   = $GLOBALS['xoopsUser']->timezone();
178
                $useroffset = (!empty($timezone)) ? $GLOBALS['xoopsUser']->timezone() : $xoopsConfig['default_TZ'];
179
            }
180
            $dates = ($useroffset * 3600) + $date;
181
            $dates = formatTimestamp($date, 's');
182

print.php 1 location

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