| @@ 103-105 (lines=3) @@ | ||
| 100 | case 'savecat': |
|
| 101 | ||
| 102 | // Проверка |
|
| 103 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 104 | redirect_header('cat.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 105 | } |
|
| 106 | // Если мы редактируем |
|
| 107 | if ($cid) { |
|
| 108 | $objInstructioncat = $categoryHandler->get($cid); |
|
| @@ 261-263 (lines=3) @@ | ||
| 258 | if ($ok) { |
|
| 259 | ||
| 260 | // Проверка |
|
| 261 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 262 | redirect_header('cat.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 263 | } |
|
| 264 | // Пытаемся удалить категорию |
|
| 265 | if ($categoryHandler->delete($objInscat)) { |
|
| 266 | ||
| @@ 170-172 (lines=3) @@ | ||
| 167 | case 'saveinstr': |
|
| 168 | ||
| 169 | // Проверка |
|
| 170 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 171 | redirect_header('instr.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 172 | } |
|
| 173 | // Если мы редактируем |
|
| 174 | if ($instrid) { |
|
| 175 | $objInsinstr = $instructionHandler->get($instrid); |
|
| @@ 317-319 (lines=3) @@ | ||
| 314 | if ($ok) { |
|
| 315 | ||
| 316 | // Проверка |
|
| 317 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 318 | redirect_header('instr.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 319 | } |
|
| 320 | // Находим все страницы, пренадлежащие этой инструкции |
|
| 321 | $criteria = new \CriteriaCompo(); |
|
| 322 | $criteria->add(new \Criteria('instrid', $instrid)); |
|
| @@ 551-553 (lines=3) @@ | ||
| 548 | if ($ok) { |
|
| 549 | ||
| 550 | // Проверка |
|
| 551 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 552 | redirect_header('instr.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 553 | } |
|
| 554 | // ID инструкции |
|
| 555 | $page_instrid = $objInspage->getVar('instrid'); |
|
| 556 | // Декримент комментов |
|
| @@ 106-108 (lines=3) @@ | ||
| 103 | case 'savepage': |
|
| 104 | ||
| 105 | // Проверка |
|
| 106 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
| 107 | redirect_header('index.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 108 | } |
|
| 109 | ||
| 110 | $err = false; |
|
| 111 | $message_err = ''; |
|