@@ 153-159 (lines=7) @@ | ||
150 | $xoops->redirect('alumni.php', 3, implode(',', $xoops->security()->getErrors())); |
|
151 | } |
|
152 | ||
153 | if ('1' == $xoops->getModuleConfig('alumni_use_captcha') && !$xoops->user->isAdmin()) { |
|
154 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
155 | if (!$xoopsCaptcha->verify()) { |
|
156 | $xoops->redirect(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/addlisting.php', 6, $xoopsCaptcha->getMessage()); |
|
157 | exit(0); |
|
158 | } |
|
159 | } |
|
160 | ||
161 | $date = time(); |
|
162 | $lid = Request::getInt('lid', 0); |
@@ 31-37 (lines=7) @@ | ||
28 | ||
29 | //if (!empty($_POST['submit'])) { |
|
30 | if (Request::getString('submit', '', 'POST')) { |
|
31 | if ('1' == $xoops->getModuleConfig('alumni_use_captcha') && !$xoops->user->isAdmin()) { |
|
32 | $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
33 | if (!$xoopsCaptcha->verify()) { |
|
34 | $xoops->redirect(XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/index.php', 4, $xoopsCaptcha->getMessage()); |
|
35 | exit(0); |
|
36 | } |
|
37 | } |
|
38 | // if (!$xoops->security()->check()) { |
|
39 | // $xoops->redirect('javascript:history.go(-1)', 3, implode(',', $xoops->security()->getErrors())); |
|
40 | // } |