Merge branch '12.x'
This commit is contained in:
@@ -217,6 +217,22 @@ class misc extends control
|
||||
die($check ? 'success' : 'fail');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show captcha and save to session.
|
||||
*
|
||||
* @param string $sessionVar
|
||||
* @param string $uuid
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function captcha($sessionVar = 'captcha', $uuid = '')
|
||||
{
|
||||
header('Content-Type: image/jpeg');
|
||||
$captcha = $this->app->loadClass('captcha');
|
||||
$this->session->set($sessionVar, $captcha->getPhrase());
|
||||
$captcha->build()->output();
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax set unfoldID.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user