HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/apklausos/application/core/LSCaptcha.php
<?php

/**
 * CCaptcha class file.
 *
 * @author LimeSurvey GmbH <info@limesurvey.org>
 * @link http://www.limesurvey.org/
 * @copyright 2008-2018 LimeSurvey GmbH
 * @license GPLv3
 */

class LSCaptcha extends CCaptcha
{

    public function renderOut()
    {
        $html = $this->renderImage();
        return $html;
    }

    /**
     * Renders the CAPTCHA image.
     */
    protected function renderImage()
    {
        if (!isset($this->imageOptions['id'])) {
                    $this->imageOptions['id'] = $this->getId();
        }
        $this->imageOptions['class'] = "img-fluid";

        $url = $this->getController()->createUrl($this->captchaAction, array('v' => uniqid()));
        $alt = $this->imageOptions['alt'] ?? '';
        return CHtml::image($url, $alt, $this->imageOptions);
    }
}