| @@ 25-27 (lines=3) @@ | ||
| 22 | redirect_header(XOOPS_URL . '/user.php', 3, _MD_LEXIKON_MUSTREGFIRST); |
|
| 23 | } |
|
| 24 | $result = $xoopsDB->query('SELECT * FROM ' . $xoopsDB->prefix('lxcategories') . ' '); |
|
| 25 | if ($xoopsDB->getRowsNum($result) == '0' && $xoopsModuleConfig['multicats'] == '1') { |
|
| 26 | redirect_header('index.php', 3, _AM_LEXIKON_NOCOLEXISTS); |
|
| 27 | } |
|
| 28 | //permissions |
|
| 29 | $gpermHandler = xoops_getHandler('groupperm'); |
|
| 30 | $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; |
|
| @@ 20-22 (lines=3) @@ | ||
| 17 | global $xoTheme, $xoopsUser, $xoopsConfig, $xoopsModuleConfig, $xoopsModule; |
|
| 18 | ||
| 19 | $result = $xoopsDB->query('SELECT * FROM ' . $xoopsDB->prefix('lxcategories') . ''); |
|
| 20 | if ($xoopsDB->getRowsNum($result) == '0' && $xoopsModuleConfig['multicats'] == '1') { |
|
| 21 | redirect_header('index.php', 1, _AM_LEXIKON_NOCOLEXISTS); |
|
| 22 | } |
|
| 23 | ||
| 24 | /*if ( !is_object( $xoopsUser ) && $xoopsModuleConfig['anonpost'] == 0 ) { |
|
| 25 | redirect_header( "index.php", 1, _NOPERM ); |
|