@@ 94-104 (lines=11) @@ | ||
91 | $xoopsTpl->assign('adslight_active_menu', $GLOBALS['xoopsModuleConfig']['adslight_active_menu']); |
|
92 | $xoopsTpl->assign('adslight_active_rss', $GLOBALS['xoopsModuleConfig']['adslight_active_rss']); |
|
93 | ||
94 | if ($GLOBALS['xoopsUser']) { |
|
95 | $member_usid = $GLOBALS['xoopsUser']->getVar('uid'); |
|
96 | if ($usid = $member_usid) { |
|
97 | $xoopsTpl->assign('istheirs', true); |
|
98 | ||
99 | list($show_user) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_listing') . " WHERE usid=$member_usid")); |
|
100 | ||
101 | $xoopsTpl->assign('show_user', $show_user); |
|
102 | $xoopsTpl->assign('show_user_link', "members.php?usid=$member_usid"); |
|
103 | } |
|
104 | } |
|
105 | } |
|
106 | ||
107 | ###################################################### |
@@ 69-79 (lines=11) @@ | ||
66 | $xoopsTpl->assign('adslight_active_menu', $GLOBALS['xoopsModuleConfig']['adslight_active_menu']); |
|
67 | $xoopsTpl->assign('adslight_active_rss', $GLOBALS['xoopsModuleConfig']['adslight_active_rss']); |
|
68 | ||
69 | if ($GLOBALS['xoopsUser']) { |
|
70 | $member_usid = $GLOBALS['xoopsUser']->getVar('uid'); |
|
71 | if ($usid = $member_usid) { |
|
72 | $xoopsTpl->assign('istheirs', true); |
|
73 | ||
74 | list($show_user) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_listing') . " WHERE usid=$member_usid")); |
|
75 | ||
76 | $xoopsTpl->assign('show_user', $show_user); |
|
77 | $xoopsTpl->assign('show_user_link', "members.php?usid=$member_usid"); |
|
78 | } |
|
79 | } |
|
80 | } |
|
81 | ||
82 | ###################################################### |