mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-23 01:58:41 +00:00
14 lines
244 B
PHP
14 lines
244 B
PHP
|
<?php
|
||
|
|
||
|
use Gregwar\Captcha\PhraseBuilder;
|
||
|
use Gregwar\Captcha\CaptchaBuilder;
|
||
|
|
||
|
$builder = new CaptchaBuilder;
|
||
|
$builder->build();
|
||
|
$_SESSION['phrase'] = $builder->getPhrase();
|
||
|
|
||
|
header('Content-Type: image/jpeg');
|
||
|
$builder->build()->output();
|
||
|
|
||
|
?>
|