-
-
Notifications
You must be signed in to change notification settings - Fork 51
Captcha
Keramat Jokar edited this page May 13, 2024
·
2 revisions
<?php
require_once('application/libraries/Captcha.php');
$captcha = new Captcha();
$captcha->generate();
$captcha->output(70, 25);
if($captcha_value == $captcha->getValue())
{
// Correct captcha
}
Initialize the current session if available
(Optional) $enable
Generate a new value and tie it to a session
Create an image
Int $width
Int $height
Get the captcha value as plaintext and destroy the session