403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/forum/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/forum/captcha.js
ForumFormCaptcha = function(params)
{
	if (params == null)
		return false;
	this.div = params.div || null;
	this.input = params.input || null;
	this.image = params.image || null;
	this.hidden = params.hidden || null;
	if ( ! (
		this.div &&
		this.input &&
		this.image &&
		this.hidden
	)) return false;

	setTimeout(BX.proxy(this.BindLHE, this), 200);
}

ForumFormCaptcha.prototype.BindLHEEvents = function()
{
	BX.bind(window.oLHE.pEditorDocument, 'keydown', BX.proxy(this.Show, this));
	BX.bind(window.oLHE.pTextarea, 'keydown', BX.proxy(this.Show, this));
	BX.bind(window.oLHE.pButtonsCont, 'click', BX.proxy(this.Show, this));
}

ForumFormCaptcha.prototype.BindLHE = function()
{
	this.BindLHEEvents();
	window.oLHE.forumFormCaptcha = this;
	window.oLHE.ffcSetEditorContent = window.oLHE.SetEditorContent;
	window.oLHE.SetEditorContent = function(sContent)
	{
		var result = this.ffcSetEditorContent(sContent);
		this.forumFormCaptcha.BindLHEEvents();
		return result;
	}
	if (window.oLHE.GetContent().length > 0)
		this.Show();
}

ForumFormCaptcha.prototype.Show = function() {
	function _checkDisplay(ob) {
		var d = ob.style.display || BX.style(ob, 'display');
		return (d != 'none');
	}

	if (! _checkDisplay(this.div)) {
		BX.show(this.div);
		this.Update();
	}
}

ForumFormCaptcha.prototype.UpdateControls = function(data) {
	this.input.value = '';
	this.hidden.value = data.captcha_sid;
	this.image.src = '/bitrix/tools/captcha.php?captcha_code='+data.captcha_sid;
}

ForumFormCaptcha.prototype.Update = function() {
	BX.ajax.getCaptcha(BX.proxy(this.UpdateControls, this));
}

Youez - 2016 - github.com/yon3zu
LinuXploit