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/aspro.next/captcha/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/aspro.next/captcha/recaptcha.js
(function (win, doc, tag, func, obj){
	win.onLoadRenderRecaptcha = function(){
		var ids = [];
		for(var reCaptchaId in win[func].args){
			if(win[func].args.hasOwnProperty(reCaptchaId)){
				var id = win[func].args[reCaptchaId][0];
				if(ids.indexOf(id) == -1){
					ids.push(id);
					realRenderRecaptchaById(id);
				}
			}
		}

		win[func] = function(id){
			realRenderRecaptchaById(id);
		}
	};

	function realRenderRecaptchaById(id){
		var gCaptcha = doc.getElementById(id);
		if(!gCaptcha)
			return;

		if(gCaptcha.className.indexOf('g-recaptcha') < 0)
			return;

		if(!win.grecaptcha)
			return;

		if(win[obj].ver == '3'){
			gCaptcha.innerHTML = '<textarea class="g-recaptcha-response" style="display:none;resize:0;" name="g-recaptcha-response"></textarea>';
			grecaptcha.ready(function() {
				grecaptcha.execute(win[obj].key, {action: 'maxscore'}).then(function(token) {
					gCaptcha.innerHTML = '<textarea class="g-recaptcha-response" style="display:none;resize:0;" name="g-recaptcha-response">' + token + '</textarea>';
				});
			});
		}
		else{
			if(!!gCaptcha.children.length)
				return;

			var tmp_id = grecaptcha.render(
				id,{
					'sitekey': win[obj].key + '',
					'theme': win[obj].params.recaptchaColor + '',
					'size': win[obj].params.recaptchaSize + '',
					'callback': 'onCaptchaVerify'+win[obj].params.recaptchaSize,
					'badge': win[obj].params.recaptchaBadge
				}
			);
			$(gCaptcha).attr('data-widgetid', tmp_id);
		}
	}

	win[func] = win[func] || function (){
		win[func].args = win[func].args || [];
		win[func].args.push(arguments);
		(function(d, s, id){
			var js;
			if(d.getElementById(id))
				return;
			js = d.createElement(s);
			js.id = id;
			js.dataset.src = '//www.google.com/recaptcha/api.js?hl=' + win[obj].params.recaptchaLang + '&onload=onLoadRenderRecaptcha&render=' + (win[obj].ver == '3' ? win[obj].key : 'explicit');
			js.defer = false;
			js.async = true;
            d.head.appendChild(js);
		}(doc, tag, 'recaptchaApiLoader'));
	};
})(window, document, 'script', 'renderRecaptchaById', 'asproRecaptcha');

Youez - 2016 - github.com/yon3zu
LinuXploit