getCaptchaFile example



    /** * Generates the captcha challenge image from a given string * * @param string $string * * @return resource */
    protected function getImageResource($string)
    {
        $captcha = $this->getCaptchaFile(self::PATH_CAPTCHA_IMAGE);
        $font = $this->getCaptchaFile(self::PATH_CAPTCHA_FONT);

        if (empty($captcha)) {
            $captcha = $this->getCaptchaFile(self::PATH_CAPTCHA_IMAGE_FALLBACK);
        }

        if (empty($font)) {
            $font = $this->getCaptchaFile(self::PATH_CAPTCHA_FONT_FALLBACK);
        }

        if (!empty($captcha)) {
            
Home | Imprint | This part of the site doesn't use cookies.