| @@ 104-106 (lines=3) @@ | ||
| 101 | } |
|
| 102 | ||
| 103 | if (!empty($_POST['submit'])) { |
|
| 104 | if (!$xoopsGTicket->check( true, 'myblocksadmin')) { |
|
| 105 | redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors()); |
|
| 106 | } |
|
| 107 | ||
| 108 | include 'mygroupperm.php'; |
|
| 109 | redirect_header(XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/admin/myblocksadmin.php{$query4redirect}", 1, _MD_MYLINKS_DBUPDATED); |
|
| @@ 60-62 (lines=3) @@ | ||
| 57 | exit('Invalid Referer'); |
|
| 58 | } |
|
| 59 | */ |
|
| 60 | if (!$xoopsGTicket->check(true, 'myblocksadmin')) { |
|
| 61 | redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors()); |
|
| 62 | } |
|
| 63 | ||
| 64 | if(empty($bid)) { |
|
| 65 | die('Invalid bid.'); |
|
| @@ 173-175 (lines=3) @@ | ||
| 170 | //if ( !admin_refcheck("/modules/$admin_mydirname/admin/") ) { |
|
| 171 | // exit('Invalid Referer'); |
|
| 172 | //} |
|
| 173 | if (!$xoopsGTicket->check(true, 'myblocksadmin')) { |
|
| 174 | redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors()); |
|
| 175 | } |
|
| 176 | if (!empty($_POST['side'])) { |
|
| 177 | $side = $_POST['side']; |
|
| 178 | } |
|
| @@ 217-219 (lines=3) @@ | ||
| 214 | } |
|
| 215 | ||
| 216 | if ( $op == 'order2' ) { |
|
| 217 | if (!$xoopsGTicket->check( true , 'myblocksadmin')) { |
|
| 218 | redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors()); |
|
| 219 | } |
|
| 220 | ||
| 221 | if (isset($_POST['addblock']) && is_array($_POST['addblock'])) { |
|
| 222 | // addblock |
|
| @@ 281-283 (lines=3) @@ | ||
| 278 | exit('Invalid Referer'); |
|
| 279 | } |
|
| 280 | */ |
|
| 281 | if (!$xoopsGTicket->check(true, 'myblocksadmin')) { |
|
| 282 | redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors()); |
|
| 283 | } |
|
| 284 | /* |
|
| 285 | if ( !empty($_POST['bside']) ) { $bside = intval($_POST['bside']); } else { $bside = 0; } |
|
| 286 | if ( !empty($_POST['bweight']) ) { $bweight = intval($_POST['bweight']); } else { $bweight = 0; } |
|
| @@ 312-314 (lines=3) @@ | ||
| 309 | exit('Invalid Referer'); |
|
| 310 | } |
|
| 311 | */ |
|
| 312 | if (!$xoopsGTicket->check(true, 'myblocksadmin')) { |
|
| 313 | redirect_header(XOOPS_URL.'/', 3, $xoopsGTicket->getErrors()); |
|
| 314 | } |
|
| 315 | // delete_block_ok($bid); GIJ imported from blocksadmin.php |
|
| 316 | $myblock = new XoopsBlock($bid); |
|
| 317 | if ('D' != $myblock->getVar('block_type') && 'C' != $myblock->getVar('block_type')) { |
|
| @@ 402-404 (lines=3) @@ | ||
| 399 | ||
| 400 | if ('clone_ok' == $op) { |
|
| 401 | // Ticket Check |
|
| 402 | if (!$xoopsGTicket->check(true, 'myblocksadmin')) { |
|
| 403 | redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors()); |
|
| 404 | } |
|
| 405 | ||
| 406 | $block = new XoopsBlock($bid); |
|
| 407 | ||