mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
24 lines
No EOL
397 B
PHP
24 lines
No EOL
397 B
PHP
<?php
|
|
|
|
namespace Code\Module;
|
|
|
|
use Code\Web\Controller;
|
|
use Gregwar\Captcha\CaptchaBuilder;
|
|
|
|
class Captcha extends Controller
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
$captcha = new CaptchaBuilder;
|
|
$_SESSION['phrase'] = $captcha->getPhrase();
|
|
|
|
header('Content-Type: image/jpeg');
|
|
|
|
$captcha
|
|
->build()
|
|
->output()
|
|
;
|
|
killme();
|
|
}
|
|
} |