@@ 35-39 (lines=5) @@ | ||
32 | //$erh = new ErrorHandler; //ErrorHandler object |
|
33 | ||
34 | $module_id = $xoopsModule->getVar('mid'); |
|
35 | if (is_object($GLOBALS['xoopsUser'])) { |
|
36 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
37 | } else { |
|
38 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
39 | } |
|
40 | /** @var XoopsGroupPermHandler $gpermHandler */ |
|
41 | $gpermHandler = xoops_getHandler('groupperm'); |
|
42 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
@@ 31-35 (lines=5) @@ | ||
28 | $myts = MyTextSanitizer::getInstance(); |
|
29 | $module_id = $xoopsModule->getVar('mid'); |
|
30 | ||
31 | if (is_object($GLOBALS['xoopsUser'])) { |
|
32 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
33 | } else { |
|
34 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
35 | } |
|
36 | /** @var XoopsGroupPermHandler $gpermHandler */ |
|
37 | $gpermHandler = xoops_getHandler('groupperm'); |
|
38 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
@@ 41-45 (lines=5) @@ | ||
38 | $lid = Request::getInt('lid', 0, 'GET'); |
|
39 | $usid = Request::getInt('usid', 0, 'GET'); |
|
40 | $module_id = $xoopsModule->getVar('mid'); |
|
41 | if (is_object($GLOBALS['xoopsUser'])) { |
|
42 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
43 | } else { |
|
44 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
45 | } |
|
46 | /** @var XoopsGroupPermHandler $gpermHandler */ |
|
47 | $gpermHandler = xoops_getHandler('groupperm'); |
|
48 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
@@ 32-36 (lines=5) @@ | ||
29 | $myts = MyTextSanitizer::getInstance(); |
|
30 | $module_id = $xoopsModule->getVar('mid'); |
|
31 | ||
32 | if (is_object($GLOBALS['xoopsUser'])) { |
|
33 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
34 | } else { |
|
35 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
36 | } |
|
37 | /** @var XoopsGroupPermHandler $gpermHandler */ |
|
38 | $gpermHandler = xoops_getHandler('groupperm'); |
|
39 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
@@ 168-172 (lines=5) @@ | ||
165 | $xoopsTpl->assign('category_title', $ctitle); |
|
166 | ||
167 | $module_id = $xoopsModule->getVar('mid'); |
|
168 | if (is_object($GLOBALS['xoopsUser'])) { |
|
169 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
170 | } else { |
|
171 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
172 | } |
|
173 | /** @var XoopsGroupPermHandler $gpermHandler */ |
|
174 | $gpermHandler = xoops_getHandler('groupperm'); |
|
175 | $xoopsTpl->assign('purchasable', $gpermHandler->checkRight('adslight_purchase', $cid, $groups, $module_id)); |
@@ 32-36 (lines=5) @@ | ||
29 | $myts = MyTextSanitizer::getInstance(); |
|
30 | $module_id = $xoopsModule->getVar('mid'); |
|
31 | ||
32 | if (is_object($GLOBALS['xoopsUser'])) { |
|
33 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
34 | } else { |
|
35 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
36 | } |
|
37 | /** @var XoopsGroupPermHandler $gpermHandler */ |
|
38 | $gpermHandler = xoops_getHandler('groupperm'); |
|
39 |
@@ 339-343 (lines=5) @@ | ||
336 | echo "<input type=\"hidden\" name=\"op\" value=\"ModAdS\" >"; |
|
337 | ||
338 | $module_id = $xoopsModule->getVar('mid'); |
|
339 | if (is_object($GLOBALS['xoopsUser'])) { |
|
340 | $groups =& $GLOBALS['xoopsUser']->getGroups(); |
|
341 | } else { |
|
342 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
343 | } |
|
344 | /** @var XoopsGroupPermHandler $gpermHandler */ |
|
345 | $gpermHandler = xoops_getHandler('groupperm'); |
|
346 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
@@ 158-162 (lines=5) @@ | ||
155 | global $xoopsConfig, $xoopsDB, $myts, $meta; |
|
156 | ||
157 | $module_id = $xoopsModule->getVar('mid'); |
|
158 | if (is_object($GLOBALS['xoopsUser'])) { |
|
159 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
160 | } else { |
|
161 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
162 | } |
|
163 | /** @var XoopsGroupPermHandler $gpermHandler */ |
|
164 | $gpermHandler = xoops_getHandler('groupperm'); |
|
165 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |