/** * preprocess before forwarding. * * @access public */ function preforward() { $img = new Ethna_Securimage($this->backend); if (!empty($_GET['namespace'])) { $img->setNamespace($_GET['namespace']); } $img->show(); // outputs the image and content headers to the browser exit; }
/** * Index action implementation. * * @access public * @return string Forward Name. */ function perform() { $securimage = new Ethna_Securimage($this->backend); if (false == $securimage->check($this->af->get('code'))) { $this->backend->log(LOG_INFO, '=== limit captcha ==='); $this->af->setApp('info', '=== NG ==='); return 'Index'; } $this->af->setApp('info', '=== OK ==='); return 'Index'; }