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/GXModules/Gambio/Hub/Shop/Javascript/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/GXModules/Gambio/Hub/Shop/Javascript/PayPalProductECS.js
(function() {
	let initPayPalButton = function() {
		let buttonConfiguration = {};
		let phrases = {};

		let productInfoDetails = document.querySelector('div.product-info-details');
		let newbutton = document.createElement('div');
		newbutton.id = 'paypal-newbutton';
		let separator = document.createElement('div');
		separator.id = 'paypal-separator';
		let introLabel = document.createElement('span');
		introLabel.id = 'paypal-introlabel';
		introLabel.innerText = phrases.separatorLabel;
		separator.appendChild(introLabel);
		newbutton.appendChild(separator);
		let ppecs = document.createElement('span'),
			logoImg = document.createElement('img'),
			ppImg = document.createElement('img'),
			pplink = document.createElement('a');
		logoImg.src = buttonConfiguration.logoUrl;
		logoImg.id = 'paypal-logoimg';
		ppImg.src = buttonConfiguration.ppUrl;
		ppImg.id = 'paypal-nameimg';
		ppecs.id = 'paypal-ecsbutton';
		ppecs.style.background = buttonConfiguration.backgroundColor;
		ppecs.style.border = '1px solid ' + buttonConfiguration.borderColor;
		ppecs.appendChild(ppImg);
		ppecs.appendChild(document.createTextNode(' '));
		ppecs.appendChild(logoImg);
		pplink.classList.add('paypal-ecs-button');
		pplink.href = 'shopping_cart.php?display_mode=ecs';
		pplink.addEventListener('click', function(e) {
			let productsId = document.querySelector('#products-id').value,
				productsQty = document.querySelector('#attributes-calc-quantity').value;
			e.preventDefault();
			document.location = 'shop.php?do=PayPalHub/AddToCart&products_id=' + productsId + '&qty=' + productsQty;
		});
		pplink.append(ppecs);
		newbutton.appendChild(pplink);
		
		let bc = document.querySelector('div.button-container');
		bc.parentNode.insertBefore(newbutton, bc.nextSibling);
	};
	
	document.addEventListener('DOMContentLoaded', function() {
		let hasProperties = document.querySelectorAll('div.properties-selection-form').length > 0,
			hasAttributes = document.querySelectorAll('fieldset.attributes').length > 0,
			hasCustomizer = document.querySelectorAll('#customizer-form').length > 0;
		
		if(!hasProperties && !hasAttributes && !hasCustomizer)
		{
			initPayPalButton();
		}
	});
})();

Youez - 2016 - github.com/yon3zu
LinuXploit