| @@ 26-29 (lines=4) @@ | ||
| 23 | exit(); |
|
| 24 | } |
|
| 25 | $result = $xoopsDB -> query( "SELECT * FROM " . $xoopsDB -> prefix( "lxcategories" ) . "" ); |
|
| 26 | if ( $xoopsDB -> getRowsNum( $result ) == '0' && $xoopsModuleConfig['multicats'] == '1') { |
|
| 27 | redirect_header( "index.php", 3, _AM_LEXIKON_NOCOLEXISTS ); |
|
| 28 | exit(); |
|
| 29 | } |
|
| 30 | //permissions |
|
| 31 | $gperm_handler = xoops_gethandler('groupperm'); |
|
| 32 | $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; |
|
| @@ 20-23 (lines=4) @@ | ||
| 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 | exit(); |
|
| 23 | } |
|
| 24 | ||
| 25 | /*if ( !is_object( $xoopsUser ) && $xoopsModuleConfig['anonpost'] == 0 ) { |
|
| 26 | redirect_header( "index.php", 1, _NOPERM ); |
|