@@ 41-43 (lines=3) @@ | ||
38 | $gpermHandler = xoops_getHandler('groupperm'); |
|
39 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
40 | //If no access |
|
41 | if (!$gpermHandler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
42 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
43 | } |
|
44 | if (!$gpermHandler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
45 | $prem_perm = '0'; |
|
46 | } else { |
@@ 42-44 (lines=3) @@ | ||
39 | ||
40 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
41 | ||
42 | if (!$gpermHandler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
43 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
44 | } |
|
45 | if (!$gpermHandler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
46 | $prem_perm = '0'; |
|
47 | } else { |
@@ 43-45 (lines=3) @@ | ||
40 | /** @var XoopsGroupPermHandler $gpermHandler */ |
|
41 | $gpermHandler = xoops_getHandler('groupperm'); |
|
42 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
43 | if (!$gpermHandler->checkRight('adslight_submit', $perm_itemid, $groups, $module_id)) { |
|
44 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
45 | } |
|
46 | if (!$gpermHandler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
47 | $premium = 1; // user has premium content rights |
|
48 | } else { |
@@ 50-52 (lines=3) @@ | ||
47 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
48 | ||
49 | //If no access |
|
50 | if (!$gpermHandler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
51 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
52 | } |
|
53 | global $xoopsConfig, $xoopsDB, $myts, $meta; |
|
54 | ||
55 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
@@ 167-169 (lines=3) @@ | ||
164 | $gpermHandler = xoops_getHandler('groupperm'); |
|
165 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
166 | //If no access |
|
167 | if (!$gpermHandler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
168 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
169 | } |
|
170 | ||
171 | // require_once XOOPS_ROOT_PATH . '/modules/adslight/include/gtickets.php'; |
|
172 | require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
@@ 38-40 (lines=3) @@ | ||
35 | ||
36 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
37 | ||
38 | if (!$gpermHandler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
39 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
40 | } |
|
41 | ||
42 | $prem_perm = (!$gpermHandler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) ? '0' : '1'; |
|
43 |
@@ 40-42 (lines=3) @@ | ||
37 | $gpermHandler = xoops_getHandler('groupperm'); |
|
38 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
39 | //If no access |
|
40 | if (!$gpermHandler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
41 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
42 | } |
|
43 | if (!$gpermHandler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
44 | $prem_perm = '0'; |
|
45 | } else { |
@@ 38-40 (lines=3) @@ | ||
35 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
36 | ||
37 | //If no access |
|
38 | if (!$gpermHandler->checkRight('adslight_submit', $perm_itemid, $groups, $module_id)) { |
|
39 | redirect_header(XOOPS_URL . '/modules/adslight/index.php', 3, _NOPERM); |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * @param $lid |
@@ 36-38 (lines=3) @@ | ||
33 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
34 | ||
35 | //If no access |
|
36 | if (!$gpermHandler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
37 | redirect_header(XOOPS_URL . '/modules/adslight/index.php', 3, _NOPERM); |
|
38 | } |
|
39 | require_once XOOPS_ROOT_PATH . '/modules/adslight/class/classifiedstree.php'; |
|
40 | $mytree = new ClassifiedsTree($xoopsDB->prefix('adslight_categories'), 'cid', 'pid'); |
|
41 |
@@ 36-38 (lines=3) @@ | ||
33 | $gpermHandler = xoops_getHandler('groupperm'); |
|
34 | $perm_itemid = Request::getInt('item_id', 0, 'POST'); |
|
35 | //If no access |
|
36 | if (!$gpermHandler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
37 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
38 | } |
|
39 | $prem_perm = $gpermHandler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id) ? '1' : '0'; |
|
40 | ||
41 | # function tips_writing |