16 lines
428 B
PHP
16 lines
428 B
PHP
<?php
|
|
require_once dirname(__FILE__).'/../../config/config.inc.php';
|
|
require_once dirname(__FILE__).'/../../init.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.
|
|
} |