| @@ 307-314 (lines=8) @@ | ||
| 304 | $newitem = '<img src="' . XOOPS_URL . '/modules/adslight/assets/images/newred.gif" />'; |
|
| 305 | $a_item['new'] = $newitem; |
|
| 306 | } |
|
| 307 | if ($xoopsUser) { |
|
| 308 | $timezone = $xoopsUser->timezone(); |
|
| 309 | if (isset($timezone)) { |
|
| 310 | $useroffset = $xoopsUser->timezone(); |
|
| 311 | } else { |
|
| 312 | $useroffset = $xoopsConfig['default_TZ']; |
|
| 313 | } |
|
| 314 | } |
|
| 315 | $date = ($useroffset * 3600) + $date; |
|
| 316 | $date = formatTimestamp($date, 's'); |
|
| 317 | if ($xoopsUser) { |
|
| @@ 251-258 (lines=8) @@ | ||
| 248 | } |
|
| 249 | ||
| 250 | $useroffset = ''; |
|
| 251 | if ($xoopsUser) { |
|
| 252 | $timezone = $xoopsUser->timezone(); |
|
| 253 | if (isset($timezone)) { |
|
| 254 | $useroffset = $xoopsUser->timezone(); |
|
| 255 | } else { |
|
| 256 | $useroffset = $xoopsConfig['default_TZ']; |
|
| 257 | } |
|
| 258 | } |
|
| 259 | ||
| 260 | $date = ($useroffset * 3600) + $date; |
|
| 261 | $date = formatTimestamp($date, 's'); |
|
| @@ 178-181 (lines=4) @@ | ||
| 175 | $contactby = $myts->htmlSpecialChars($contactby); |
|
| 176 | $premium = $myts->htmlSpecialChars($premium); |
|
| 177 | $useroffset = ''; |
|
| 178 | if ($xoopsUser) { |
|
| 179 | $timezone = $xoopsUser->timezone(); |
|
| 180 | $useroffset = (!empty($timezone)) ? $xoopsUser->timezone() : $xoopsConfig['default_TZ']; |
|
| 181 | } |
|
| 182 | $dates = ($useroffset * 3600) + $date; |
|
| 183 | $dates = formatTimestamp($date, 's'); |
|
| 184 | ||
| @@ 94-101 (lines=8) @@ | ||
| 91 | ||
| 92 | while (list($r_lid, $lid, $title, $date, $submitter, $message, $tele, $email, $r_usid) = $xoopsDB->fetchRow($result)) { |
|
| 93 | $useroffset = ''; |
|
| 94 | if ($xoopsUser) { |
|
| 95 | $timezone = $xoopsUser->timezone(); |
|
| 96 | if (isset($timezone)) { |
|
| 97 | $useroffset = $xoopsUser->timezone(); |
|
| 98 | } else { |
|
| 99 | $useroffset = $xoopsConfig['default_TZ']; |
|
| 100 | } |
|
| 101 | } |
|
| 102 | $r_usid = $r_usid; |
|
| 103 | $xoopsTpl->assign('submitter', " <a href='" . XOOPS_URL . "/userinfo.php?uid=$r_usid'>$submitter</a>"); |
|
| 104 | $date = ($useroffset * 3600) + $date; |
|