| @@ 83-93 (lines=11) @@ | ||
| 80 | // ExpireAd(); |
|
| 81 | AdslightUtility::expireAd(); |
|
| 82 | ||
| 83 | if ($GLOBALS['xoopsUser']) { |
|
| 84 | $member_usid = $GLOBALS['xoopsUser']->getVar('uid'); |
|
| 85 | if ($usid = $member_usid) { |
|
| 86 | $xoopsTpl->assign('istheirs', true); |
|
| 87 | ||
| 88 | list($show_user) = $xoopsDB->fetchRow($xoopsDB->query('SELECT SQL_CACHE COUNT(*) FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE usid=' . $member_usid . '')); |
|
| 89 | ||
| 90 | $xoopsTpl->assign('show_user', $show_user); |
|
| 91 | $xoopsTpl->assign('show_user_link', 'members.php?usid=' . $member_usid . ''); |
|
| 92 | } |
|
| 93 | } |
|
| 94 | ||
| 95 | $result = $xoopsDB->query('SELECT SQL_CACHE COUNT(*) FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE valid="No"'); |
|
| 96 | list($propo) = $xoopsDB->fetchRow($result); |
|
| @@ 118-128 (lines=11) @@ | ||
| 115 | ||
| 116 | $xoopsTpl->assign('Feed_RSS_cat', ' <a href="rss.php?cid=' . addslashes($cid) . '"><img border="0" alt="Feed RSS" src="assets/images/rssfeed_buttons.png" ></a>'); |
|
| 117 | ||
| 118 | if ($GLOBALS['xoopsUser']) { |
|
| 119 | $member_usid = $GLOBALS['xoopsUser']->getVar('uid'); |
|
| 120 | if ($usid = $member_usid) { |
|
| 121 | $xoopsTpl->assign('istheirs', true); |
|
| 122 | ||
| 123 | list($show_user) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE usid=' . $member_usid . '')); |
|
| 124 | ||
| 125 | $xoopsTpl->assign('show_user', $show_user); |
|
| 126 | $xoopsTpl->assign('show_user_link', 'members.php?usid=' . $member_usid); |
|
| 127 | } |
|
| 128 | } |
|
| 129 | ||
| 130 | $default_sort = $GLOBALS['xoopsModuleConfig']['adslight_lsort_order']; |
|
| 131 | ||