| @@ 245-248 (lines=4) @@ | ||
| 242 | $newcount = $GLOBALS['xoopsModuleConfig']['adslight_countday']; |
|
| 243 | $startdate = (time() - (86400 * $newcount)); |
|
| 244 | ||
| 245 | if ($startdate < $date) { |
|
| 246 | $newitem = '<img src="' . XOOPS_URL . '/modules/adslight/assets/images/newred.gif" alt="new" />'; |
|
| 247 | $a_item['new'] = $newitem; |
|
| 248 | } |
|
| 249 | ||
| 250 | $useroffset = ''; |
|
| 251 | if ($GLOBALS['xoopsUser']) { |
|
| @@ 304-307 (lines=4) @@ | ||
| 301 | ||
| 302 | $newcount = $GLOBALS['xoopsModuleConfig']['adslight_countday']; |
|
| 303 | $startdate = (time() - (86400 * $newcount)); |
|
| 304 | if ($startdate < $date) { |
|
| 305 | $newitem = '<img src="' . XOOPS_URL . '/modules/adslight/assets/images/newred.gif" />'; |
|
| 306 | $a_item['new'] = $newitem; |
|
| 307 | } |
|
| 308 | if ($GLOBALS['xoopsUser']) { |
|
| 309 | $timezone = $GLOBALS['xoopsUser']->timezone(); |
|
| 310 | if (isset($timezone)) { |
|