4 require_once
'Services/Captcha/classes/class.ilSecurImageUtil.php';
59 $this->lng = $DIC->language();
62 if (!function_exists(
"imagettftext")) {
63 $this->securimage->use_gd_font =
true;
66 $this->securimage->num_lines = 3;
83 return $this->securimage->check($a_input);
92 $this->securimage->show();
98 public function outputAudioFile()
107 $lng->lang_key !=
'en' &&
108 in_array(
$lng->lang_key, self::$supported_audio_languages)
110 $this->securimage->audio_path = $this->securimage->securimage_path .
'/audio/' .
$lng->lang_key .
'/';
112 $this->securimage->outputAudioFile();
122 throw new InvalidArgumentException(
'Please provide a valid image height (numeric value > 0 and <= ' . self::MAX_CAPTCHA_IMG_HEIGHT);
142 throw new InvalidArgumentException(
'Please provide a valid image width (numeric value > 0 and <= ' . self::MAX_CAPTCHA_IMG_WIDTH);
Project: Securimage: A PHP class for creating and managing form CAPTCHA images File: securimage...
const MAX_CAPTCHA_IMG_HEIGHT
const MAX_CAPTCHA_IMG_WIDTH
__construct()
Constructor.
setImageWidth($image_width)
Create styles array
The data for the language used.
static $supported_audio_languages
static includeSecurImage()
SecurImage Wrapper (very simply wrapper, does not abstract other captchas)
setImageHeight($image_height)