mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
14 lines
287 B
PHP
14 lines
287 B
PHP
<?
|
|
use function Safe\session_unset;
|
|
use Gregwar\Captcha\CaptchaBuilder;
|
|
|
|
session_start();
|
|
|
|
header('Content-type: image/jpeg');
|
|
|
|
$builder = new CaptchaBuilder;
|
|
$builder->build(CAPTCHA_IMAGE_WIDTH, CAPTCHA_IMAGE_HEIGHT);
|
|
|
|
$_SESSION['captcha'] = $builder->getPhrase();
|
|
|
|
$builder->output();
|