| @@ 45-47 (lines=3) @@ | ||
| 42 | } else { |
|
| 43 | $perm_itemid = 0; |
|
| 44 | } |
|
| 45 | if (!$gperm_handler->checkRight('adslight_submit', $perm_itemid, $groups, $module_id)) { |
|
| 46 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 47 | } |
|
| 48 | if (!$gperm_handler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
| 49 | $premium = 0; |
|
| 50 | } else { |
|
| @@ 43-45 (lines=3) @@ | ||
| 40 | } else { |
|
| 41 | $perm_itemid = 0; |
|
| 42 | } |
|
| 43 | if (!$gperm_handler->checkRight('adslight_submit', $perm_itemid, $groups, $module_id)) { |
|
| 44 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 45 | } |
|
| 46 | if (!$gperm_handler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
| 47 | $premium = 0; |
|
| 48 | } else { |
|
| @@ 53-55 (lines=3) @@ | ||
| 50 | $perm_itemid = 0; |
|
| 51 | } |
|
| 52 | //If no access |
|
| 53 | if (!$gperm_handler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
| 54 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 55 | } |
|
| 56 | global $xoopsConfig, $xoopsModuleConfig, $xoopsDB, $myts, $meta; |
|
| 57 | require_once(XOOPS_ROOT_PATH . '/modules/adslight/include/gtickets.php'); |
|
| 58 | ||
| @@ 174-176 (lines=3) @@ | ||
| 171 | $perm_itemid = 0; |
|
| 172 | } |
|
| 173 | //If no access |
|
| 174 | if (!$gperm_handler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
| 175 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 176 | } |
|
| 177 | ||
| 178 | require_once(XOOPS_ROOT_PATH . '/modules/adslight/include/gtickets.php'); |
|
| 179 | include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| @@ 35-37 (lines=3) @@ | ||
| 32 | ||
| 33 | isset($_POST['item_id']) ? $perm_itemid = (int)$_POST['item_id'] : $perm_itemid = 0; |
|
| 34 | ||
| 35 | if (!$gperm_handler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
| 36 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 37 | } |
|
| 38 | ||
| 39 | (!$gperm_handler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) ? $prem_perm = '0' : $prem_perm = '1'; |
|
| 40 | ||
| @@ 41-43 (lines=3) @@ | ||
| 38 | $perm_itemid = 0; |
|
| 39 | } |
|
| 40 | //If no access |
|
| 41 | if (!$gperm_handler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
| 42 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 43 | } |
|
| 44 | if (!$gperm_handler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
| 45 | $prem_perm = '0'; |
|
| 46 | } else { |
|
| @@ 42-44 (lines=3) @@ | ||
| 39 | $perm_itemid = 0; |
|
| 40 | } |
|
| 41 | //If no access |
|
| 42 | if (!$gperm_handler->checkRight('adslight_submit', $perm_itemid, $groups, $module_id)) { |
|
| 43 | redirect_header(XOOPS_URL . '/modules/adslight/index.php', 3, _NOPERM); |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @param $lid |
|
| @@ 39-41 (lines=3) @@ | ||
| 36 | $perm_itemid = 0; |
|
| 37 | } |
|
| 38 | //If no access |
|
| 39 | if (!$gperm_handler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
| 40 | redirect_header(XOOPS_URL . '/modules/adslight/index.php', 3, _NOPERM); |
|
| 41 | } |
|
| 42 | include_once XOOPS_ROOT_PATH . '/modules/adslight/class/classifiedstree.php'; |
|
| 43 | $mytree = new ClassifiedsTree($xoopsDB->prefix('adslight_categories'), 'cid', 'pid'); |
|
| 44 | $lid = isset($_GET['lid']) ? (int)$_GET['lid'] : 0; |
|
| @@ 41-43 (lines=3) @@ | ||
| 38 | $perm_itemid = 0; |
|
| 39 | } |
|
| 40 | //If no access |
|
| 41 | if (!$gperm_handler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
| 42 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 43 | } |
|
| 44 | if (!$gperm_handler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
| 45 | $prem_perm = '0'; |
|
| 46 | } else { |
|
| @@ 41-43 (lines=3) @@ | ||
| 38 | $perm_itemid = 0; |
|
| 39 | } |
|
| 40 | //If no access |
|
| 41 | if (!$gperm_handler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
| 42 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 43 | } |
|
| 44 | if (!$gperm_handler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
| 45 | $prem_perm = '0'; |
|
| 46 | } else { |
|
| @@ 41-43 (lines=3) @@ | ||
| 38 | $perm_itemid = 0; |
|
| 39 | } |
|
| 40 | ||
| 41 | if (!$gperm_handler->checkRight('adslight_view', $perm_itemid, $groups, $module_id)) { |
|
| 42 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 43 | } |
|
| 44 | if (!$gperm_handler->checkRight('adslight_premium', $perm_itemid, $groups, $module_id)) { |
|
| 45 | $prem_perm = '0'; |
|
| 46 | } else { |
|