| @@ 47-50 (lines=4) @@ | ||
| 44 | ||
| 45 | // If the user is not logged in and anonymous postings are |
|
| 46 | // not allowed, redirect and exit. |
|
| 47 | if (empty($xoopsUser) and !$xoopsModuleConfig['anonpost']) { |
|
| 48 | redirect_header(XOOPS_URL . '/user.php', 2, _MD_MUSTREGFIRST); |
|
| 49 | exit(); |
|
| 50 | } |
|
| 51 | ||
| 52 | // Check if user has adminrights or not; |
|
| 53 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
| @@ 43-46 (lines=4) @@ | ||
| 40 | $op = $_POST['op']; |
|
| 41 | } |
|
| 42 | ||
| 43 | if (empty($xoopsUser) and !$xoopsModuleConfig['anonpost']) { |
|
| 44 | redirect_header(XOOPS_URL . '/user.php', 2, _MD_MUSTREGFIRST); |
|
| 45 | exit(); |
|
| 46 | } |
|
| 47 | ||
| 48 | if (!empty($_POST['submit'])) { |
|
| 49 | //Get all selectable categories and put the prefix 'selectcat' in front of the catid. |
|