@@ 185-189 (lines=5) @@ | ||
182 | break; |
|
183 | ||
184 | case 'reorderPartners': |
|
185 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
186 | $xpHelper->redirect('admin/main.php', |
|
187 | XoopsPartnersConstants::REDIRECT_DELAY_MEDIUM, |
|
188 | implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
189 | } |
|
190 | $xpPartnersHandler = $xpHelper->getHandler('partners'); |
|
191 | $partnerCount = $xpPartnersHandler->getCount(); |
|
192 | if ($partnerCount) { |
@@ 43-48 (lines=6) @@ | ||
40 | ||
41 | switch ($op) { |
|
42 | case 'sendMail': |
|
43 | if (!$GLOBALS['xoopsSecurity']->check()) { |
|
44 | $xpHelper->redirect('index.php', |
|
45 | XoopspartnersConstants::REDIRECT_DELAY_MEDIUM, |
|
46 | _MD_XOOPSPARTNERS_ERROR1 . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()) |
|
47 | ); |
|
48 | } |
|
49 | extract($_POST, EXTR_PREFIX_ALL, 'unsafe'); |
|
50 | if (empty($unsafe_title) || empty($unsafe_description) || empty($unsafe_url) || $unsafe_url === 'http://') { |
|
51 | $GLOBALS['xoopsTpl']->assign(array( |