示例#1
0
 public function captcha()
 {
     require_once JPATH_SITE . '/components/com_rsform/helpers/captcha.php';
     $componentId = JFactory::getApplication()->input->getInt('componentId');
     $captcha = new RSFormProCaptcha($componentId);
     JFactory::getSession()->set('com_rsform.captcha.' . $componentId, $captcha->getCaptcha());
     JFactory::getApplication()->close();
 }
示例#2
0
 function captcha()
 {
     require_once JPATH_SITE . DS . 'components' . DS . 'com_rsform' . DS . 'helpers' . DS . 'captcha.php';
     $componentId = JRequest::getInt('componentId');
     $captcha = new RSFormProCaptcha($componentId);
     $session = JFactory::getSession();
     $session->set('com_rsform.captcha.' . $componentId, $captcha->getCaptcha());
     exit;
 }