mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-27 06:06:21 +00:00
23 lines
413 B
PHP
23 lines
413 B
PHP
|
<?php
|
||
|
require_once __DIR__.'/../vendor/autoload.php';
|
||
|
|
||
|
use Gregwar\Captcha\CaptchaBuilder;
|
||
|
|
||
|
$captcha = new CaptchaBuilder();
|
||
|
$captcha->build();
|
||
|
|
||
|
?>
|
||
|
<!DOCTYPE html>
|
||
|
<body>
|
||
|
<html>
|
||
|
<meta charset="utf-8" />
|
||
|
</html>
|
||
|
<body>
|
||
|
<h1>Inline Captcha</h1>
|
||
|
|
||
|
<img src="<?php echo $captcha->inline(); ?>"/><br/>
|
||
|
Phrase: <?php echo $captcha->getPhrase(); ?>
|
||
|
|
||
|
</body>
|
||
|
</body>
|