mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-29 08:50:03 +02:00
13 lines
No EOL
245 B
PHP
13 lines
No EOL
245 B
PHP
<?php
|
|
session_start();
|
|
use Gregwar\Captcha\CaptchaBuilder;
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
$captcha = new CaptchaBuilder;
|
|
$captcha->build();
|
|
|
|
$_SESSION['captcha'] = $captcha->getPhrase();
|
|
|
|
header('Content-type: image/jpeg');
|
|
$captcha->output(); |