Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /home/jackjohn/public_html/shopsite-images/en-GB/javascript/payment/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jackjohn/public_html/shopsite-images/en-GB/javascript/payment/ppcbo.js
"use_strict";
let ppcp_return = false;
window.failureCallback=function(error){alert(error)};
async function onboardedCallback(authCode, sharedId){
	if(!ppcp_return){
		ppcp_return = true;
		let data={ajax: 'ppcp_login',form_parm1: document.querySelector('[name=form_parm1]').value,authCode: authCode,sharedId: sharedId},
		serialize=(data)=>{let r='';for(i in data)r+='&'+encodeURIComponent(i)+'='+encodeURIComponent(data[i]);return r.substr(1);};
		let res = await fetch('payconfig.cgi',{method:'POST',headers:{'content-type':'application/x-www-form-urlencoded'},body:serialize(data)});
		if (res.ok) {
			let json = await res.json();
			if(json.success){
				$('[name=ClientID]').val(json.client_id);
				$('[name=ClientSecret]').val(json.client_secret);
				$('.ppc-connect').show();
				$('.ppc-noconnect').hide();
			}
		}
	}
}
$('.paypal-connect').click(function(){
	let html = $('#ppcp-connect-template').text(),button=this.id,connectHref=false,ppcp_interval=null;
	if($('#ppcp-overlay').length == 0) {
		$(html).appendTo('body').wrap('<div id="ppcp-overlay"></div>').wrap('<div id="ppcp-connect-form"></div>');
		(function(d,s,i){var j,r=d.getElementsByTagName(s)[0];if(!d.getElementById(i)){j=d.createElement(s);j.id=i;j.async=true;j.src=ppcp_domain + '/webapps/merchantboarding/js/lib/lightbox/partner.js';r.parentNode.insertBefore(j,r);}}(document,'script','paypal-js'));
		$('#ppcp-cancel-button').click(function(){$('body').css('overflow','auto');$('#ppcp-overlay').hide();});
		$('#PayPalConnectButton').click(function(){
			let fp1='&form_parm1='+$('[name=form_parm1]').val(),cb=$('#ppcp-connect-form input:checked');
			if(button == 'ppcp-button-connect'||button == 'ppcp-button-config'){fp1+='&process=paypalcommbtns'}else{fp1+='&process=paypalcommerce'}
			if($('#ppcp-hosted').is(':checked')){fp1+='&type=PPCP&hosted=checked';$('#all_processors, #process').val('paypalcommerce');}else{fp1+='&type=EXPRESS'}
			if($('#ppcp-branded').is(':checked')){fp1+='&branded=checked';}
			ppcp_return = false;
			if(ppcp_sessionTime && !ppcp_interval){
				ppcp_interval=setInterval(async function(){
					let l = await fetch('payconfig.cgi?ajax=ppcp_check'+fp1,{method:'GET'}).then((r)=>r.json());
					if(l.done){clearInterval(ppcp_interval);ppcp_interval = null;}
				},ppcp_sessionTime);
			}
      connectHref=connectHref||this.href;this.href=connectHref+fp1;
		});
	}
	$('#ppcp-connect-form input').prop('readonly',false).prop('checked',true).click(function(e){if($(this).prop('readonly')){e.preventDefault();return false;}});
	if(button == 'ppcp-button-connect' || button == 'ppcp-button-config') {
		$('#ppcp-branded').prop('readonly',true);
	} else {
		$('#ppcp-hosted').prop('readonly',true);
	}
	$('body').css('overflow','hidden');
	$('#ppcp-overlay').show();
});
$('#ppcp-dismiss').click(function(e){
  fetch('payconfig.cgi?ajax=ppcp_dismiss&form_parm1='+document.querySelector('[name=form_parm1]').value).then(res => res.json()).then(data => {if(data.success){$('.ppcp-promo').hide()}});
});

haha - 2025