@@ 31-37 (lines=7) @@ | ||
28 | ||
29 | global $xoopsConfig, $xoopsDB, $myts, $meta; |
|
30 | ||
31 | if ('1' == $xoops->getModuleConfig('alumni_use_captcha') && !$xoops->user->isAdmin()) { |
|
32 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
33 | if (!$xoopsCaptcha->verify()) { |
|
34 | $xoops->redirect('javascript:history.go(-1)', 3, $xoopsCaptcha->getMessage()); |
|
35 | exit(0); |
|
36 | } |
|
37 | } |
|
38 | ||
39 | // if (!$xoops->security()->check()) { |
|
40 | // $xoops->redirect('javascript:history.go(-1)', 3, implode(',', $xoops->security()->getErrors())); |
@@ 237-243 (lines=7) @@ | ||
234 | if (!$xoops->security()->check()) { |
|
235 | $xoops->redirect('index.php', 3, implode(',', $xoops->security()->getErrors())); |
|
236 | } |
|
237 | if ('1' == $xoops->getModuleConfig('alumni_use_captcha') & !$xoops->user->isAdmin()) { |
|
238 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
239 | if (!$xoopsCaptcha->verify()) { |
|
240 | $xoops->redirect('javascript:history.go(-1)', 4, $xoopsCaptcha->getMessage()); |
|
241 | exit(0); |
|
242 | } |
|
243 | } |
|
244 | $lid = Request::getInt('lid', 0); |
|
245 | if (isset($lid)) { |
|
246 | $obj = $listingHandler->get($lid); |