Merge branch '12.x'

This commit is contained in:
wangyidong
2021-02-19 13:17:23 +08:00
109 changed files with 5297 additions and 1570 deletions
+16
View File
@@ -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.
*