| @@ 41-43 (lines=3) @@ | ||
| 38 | ||
| 39 | //echo "<hr>"; |
|
| 40 | ||
| 41 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 42 | redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 43 | } |
|
| 44 | ||
| 45 | if ($xoopsUser && $xoopsModuleConfig['whos_going']) { |
|
| 46 | // If param are right |
|
| @@ 23-25 (lines=3) @@ | ||
| 20 | $event_id = $_POST['event']; |
|
| 21 | $member_uid = $xoopsUser->getVar('uid'); |
|
| 22 | ||
| 23 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 24 | redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 25 | } |
|
| 26 | ||
| 27 | if ($xoopsUser && $xoopsModuleConfig['whosnot_going']) { |
|
| 28 | // If param are right |
|
| @@ 235-242 (lines=8) @@ | ||
| 232 | case 'delete': |
|
| 233 | ||
| 234 | if (isset($_POST['confirm'])) { |
|
| 235 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 236 | redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 237 | exit; |
|
| 238 | } |
|
| 239 | // $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
|
| 240 | // $eventHandler->deleteEvent($_POST['event_id']); |
|
| 241 | deleteEvents($_POST['event_id']); |
|
| 242 | redirect_header('event.php', 3, _AM_EXTCAL_EVENT_DELETED, false); |
|
| 243 | } else { |
|
| 244 | xoops_cp_header(); |
|
| 245 | // @author Gregory Mage (Aka Mage) |
|
| @@ 301-308 (lines=8) @@ | ||
| 298 | ||
| 299 | if (isset($_POST['deleteSelection'][0])) { |
|
| 300 | } else { |
|
| 301 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 302 | redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 303 | exit; |
|
| 304 | } |
|
| 305 | ||
| 306 | deleteEvents($_POST['event_ids']); |
|
| 307 | ||
| 308 | redirect_header('event.php', 3, _AM_EXTCAL_EVENTS_DELETED, false); |
|
| 309 | } |
|
| 310 | ||
| 311 | break; |
|
| @@ 39-41 (lines=3) @@ | ||
| 36 | case 'notification': |
|
| 37 | switch ($fct) { |
|
| 38 | case 'send': |
|
| 39 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 40 | redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 41 | } |
|
| 42 | xoops_cp_header(); |
|
| 43 | adminMenu(1); |
|
| 44 | ||