bebeboutik/tools/math-captcha/math_captcha.php

15 lines
351 B
PHP
Raw Normal View History

2018-03-05 17:05:47 +01:00
<?php
require_once 'vendor/autoload.php';
session_start();
$mathCaptcha = new MathCaptcha\MathCaptcha();
try {
$mathCaptcha->generate();
$mathCaptcha->output();
}
catch ( MathCaptcha\MathCaptchaException $e ) {
// Here you normally log the error, and you can output an error image
// to notify the user that something went wrong, if you want.
}