| @@ 262-275 (lines=14) @@ | ||
| 259 | ||
| 260 | $date = ($useroffset * 3600) + $date; |
|
| 261 | $date = formatTimestamp($date, 's'); |
|
| 262 | if ($GLOBALS['xoopsUser']) { |
|
| 263 | if ($GLOBALS['xoopsUser']->isAdmin()) { |
|
| 264 | $a_item['admin'] = '<a href="' |
|
| 265 | . XOOPS_URL |
|
| 266 | . '/modules/adslight/admin/validate_ads.php?op=ModifyAds&lid=' |
|
| 267 | . $lid |
|
| 268 | . '"><img src="' |
|
| 269 | . $pathIcon16 |
|
| 270 | . '/edit.png' |
|
| 271 | . '" border=0 alt="' |
|
| 272 | . _ADSLIGHT_MODADMIN |
|
| 273 | . '" /></a>'; |
|
| 274 | } |
|
| 275 | } |
|
| 276 | ||
| 277 | $result7 = $xoopsDB->query('SELECT nom_type FROM ' . $xoopsDB->prefix('adslight_type') . " WHERE id_type='" . $xoopsDB->escape($type) . "'"); |
|
| 278 | list($nom_type) = $xoopsDB->fetchRow($result7); |
|
| @@ 315-330 (lines=16) @@ | ||
| 312 | } |
|
| 313 | $date = ($useroffset * 3600) + $date; |
|
| 314 | $date = formatTimestamp($date, 's'); |
|
| 315 | if ($GLOBALS['xoopsUser']) { |
|
| 316 | if ($GLOBALS['xoopsUser']->isAdmin()) { |
|
| 317 | $a_item['admin'] = '<a href="' |
|
| 318 | . XOOPS_URL |
|
| 319 | . '/modules/adslight/admin/validate_ads.php?op=ModifyAds&lid=' |
|
| 320 | . $lid |
|
| 321 | . '"><img src="' |
|
| 322 | . $pathIcon16 |
|
| 323 | . '/edit.png' |
|
| 324 | . '" border=0 alt="' |
|
| 325 | . _ADSLIGHT_MODADMIN |
|
| 326 | . '" title="' |
|
| 327 | . _ADSLIGHT_MODADMIN |
|
| 328 | . '"/></a>'; |
|
| 329 | } |
|
| 330 | } |
|
| 331 | ||
| 332 | $result7 = $xoopsDB->query('SELECT nom_type FROM ' . $xoopsDB->prefix('adslight_type') . " WHERE id_type='" . $xoopsDB->escape($type) . "'"); |
|
| 333 | list($nom_type) = $xoopsDB->fetchRow($result7); |
|