| @@ 48-50 (lines=3) @@ | ||
| 45 | require_once XOOPS_ROOT_PATH . '/modules/adslight/class/classifiedstree.php'; |
|
| 46 | $mytree = new ClassifiedsTree($xoopsDB->prefix('adslight_categories'), 'cid', 'pid'); |
|
| 47 | ||
| 48 | if (!$GLOBALS['xoopsUser'] instanceof XoopsUser) { |
|
| 49 | redirect_header(XOOPS_URL . '/user.php', 2, _MA_ADSLIGHT_MUSTREGFIRST); |
|
| 50 | } |
|
| 51 | ||
| 52 | if (Request::hasVar('submit', 'POST')) { |
|
| 53 | $howlong = $GLOBALS['xoopsModuleConfig']['adslight_howlong']; |
|
| @@ 59-61 (lines=3) @@ | ||
| 56 | ||
| 57 | //@todo - seems this should let users through if they have group rights instead of |
|
| 58 | // kicking out all Anon users |
|
| 59 | if (!$GLOBALS['xoopsUser'] instanceof XoopsUser) { |
|
| 60 | redirect_header(XOOPS_URL . '/user.php', 2, _MA_ADSLIGHT_MUSTREGFIRST); |
|
| 61 | } |
|
| 62 | ||
| 63 | if (Request::hasVar('submit', 'POST')) { |
|
| 64 | $howlong = $GLOBALS['xoopsModuleConfig']['adslight_howlong']; |
|