| @@ 143-149 (lines=7) @@ | ||
| 140 | $xoopsTpl->assign('subcat_title2', _ADSLIGHT_ANNONCES); |
|
| 141 | ||
| 142 | $categories = AdslightUtilities::getMyItemIds('adslight_view'); |
|
| 143 | if (is_array($categories) && count($categories) > 0) { |
|
| 144 | if (!in_array($cid, $categories)) { |
|
| 145 | redirect_header(XOOPS_URL . '/modules/adslight/index.php', 3, _NOPERM); |
|
| 146 | } |
|
| 147 | } else { // User can't see any category |
|
| 148 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 149 | } |
|
| 150 | ||
| 151 | $arrow = '<img src="' . XOOPS_URL . '/modules/adslight/assets/images/arrow.gif" alt="»" />'; |
|
| 152 | ||
| @@ 149-155 (lines=7) @@ | ||
| 146 | list($lid, $cide, $title, $status, $expire, $type, $desctext, $tel, $price, $typeprice, $typeusure, $date, $email, $submitter, $usid, $town, $country, $contactby, $premium, $valid) = $xoopsDB->fetchRow($result); |
|
| 147 | ||
| 148 | $categories = AdslightUtilities::getMyItemIds('adslight_submit'); |
|
| 149 | if (is_array($categories) && count($categories) > 0) { |
|
| 150 | if (!in_array($cide, $categories)) { |
|
| 151 | redirect_header(XOOPS_URL . '/modules/adslight/index.php', 3, _NOPERM); |
|
| 152 | } |
|
| 153 | } else { // User can't see any category |
|
| 154 | redirect_header(XOOPS_URL . '/index.php', 3, _NOPERM); |
|
| 155 | } |
|
| 156 | ||
| 157 | if ($GLOBALS['xoopsUser']) { |
|
| 158 | $calusern = $GLOBALS['xoopsUser']->uid(); |
|