| @@ 32-36 (lines=5) @@ | ||
| 29 | //$erh = new ErrorHandler; //ErrorHandler object |
|
| 30 | ||
| 31 | $module_id = $xoopsModule->getVar('mid'); |
|
| 32 | if (is_object($GLOBALS['xoopsUser'])) { |
|
| 33 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
| 34 | } else { |
|
| 35 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
| 36 | } |
|
| 37 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 38 | if (isset($_POST['item_id'])) { |
|
| 39 | $perm_itemid = (int)$_POST['item_id']; |
|
| @@ 39-43 (lines=5) @@ | ||
| 36 | ||
| 37 | $module_id = $xoopsModule->getVar('mid'); |
|
| 38 | ||
| 39 | if (is_object($GLOBALS['xoopsUser'])) { |
|
| 40 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
| 41 | } else { |
|
| 42 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
| 43 | } |
|
| 44 | ||
| 45 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 46 | ||
| @@ 162-166 (lines=5) @@ | ||
| 159 | global $xoopsConfig, $xoopsDB, $myts, $meta; |
|
| 160 | ||
| 161 | $module_id = $xoopsModule->getVar('mid'); |
|
| 162 | if (is_object($GLOBALS['xoopsUser'])) { |
|
| 163 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
| 164 | } else { |
|
| 165 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
| 166 | } |
|
| 167 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 168 | if (isset($_POST['item_id'])) { |
|
| 169 | $perm_itemid = (int)$_POST['item_id']; |
|
| @@ 29-33 (lines=5) @@ | ||
| 26 | $myts = MyTextSanitizer::getInstance(); |
|
| 27 | $module_id = $xoopsModule->getVar('mid'); |
|
| 28 | ||
| 29 | if (is_object($GLOBALS['xoopsUser'])) { |
|
| 30 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
| 31 | } else { |
|
| 32 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
| 33 | } |
|
| 34 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 35 | if (isset($_POST['item_id'])) { |
|
| 36 | $perm_itemid = (int)$_POST['item_id']; |
|
| @@ 38-42 (lines=5) @@ | ||
| 35 | $lid = XoopsRequest::getInt('lid', 0, 'GET'); |
|
| 36 | $usid = XoopsRequest::getInt('usid', 0, 'GET'); |
|
| 37 | $module_id = $xoopsModule->getVar('mid'); |
|
| 38 | if (is_object($GLOBALS['xoopsUser'])) { |
|
| 39 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
| 40 | } else { |
|
| 41 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
| 42 | } |
|
| 43 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 44 | $perm_itemid = XoopsRequest::getInt('item_id', 0, 'POST'); |
|
| 45 | ||
| @@ 30-34 (lines=5) @@ | ||
| 27 | $myts = MyTextSanitizer::getInstance(); |
|
| 28 | $module_id = $xoopsModule->getVar('mid'); |
|
| 29 | ||
| 30 | if (is_object($GLOBALS['xoopsUser'])) { |
|
| 31 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
| 32 | } else { |
|
| 33 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
| 34 | } |
|
| 35 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 36 | if (isset($_POST['item_id'])) { |
|
| 37 | $perm_itemid = (int)$_POST['item_id']; |
|
| @@ 166-170 (lines=5) @@ | ||
| 163 | $xoopsTpl->assign('category_title', $ctitle); |
|
| 164 | ||
| 165 | $module_id = $xoopsModule->getVar('mid'); |
|
| 166 | if (is_object($GLOBALS['xoopsUser'])) { |
|
| 167 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
| 168 | } else { |
|
| 169 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
| 170 | } |
|
| 171 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 172 | $xoopsTpl->assign('purchasable', $gpermHandler->checkRight('adslight_purchase', $cid, $groups, $module_id)); |
|
| 173 | ||
| @@ 30-34 (lines=5) @@ | ||
| 27 | $myts = MyTextSanitizer::getInstance(); |
|
| 28 | $module_id = $xoopsModule->getVar('mid'); |
|
| 29 | ||
| 30 | if (is_object($GLOBALS['xoopsUser'])) { |
|
| 31 | $groups = $GLOBALS['xoopsUser']->getGroups(); |
|
| 32 | } else { |
|
| 33 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
| 34 | } |
|
| 35 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 36 | if (isset($_POST['item_id'])) { |
|
| 37 | $perm_itemid = (int)$_POST['item_id']; |
|
| @@ 322-326 (lines=5) @@ | ||
| 319 | echo "<input type=\"hidden\" name=\"op\" value=\"ModAdS\" />"; |
|
| 320 | ||
| 321 | $module_id = $xoopsModule->getVar('mid'); |
|
| 322 | if (is_object($GLOBALS['xoopsUser'])) { |
|
| 323 | $groups =& $GLOBALS['xoopsUser']->getGroups(); |
|
| 324 | } else { |
|
| 325 | $groups = XOOPS_GROUP_ANONYMOUS; |
|
| 326 | } |
|
| 327 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 328 | if (isset($_POST['item_id'])) { |
|
| 329 | $perm_itemid = (int)$_POST['item_id']; |
|