HEX
Server: Apache
System: Linux top 5.8.11-1.el7.elrepo.x86_64 #1 SMP Tue Sep 22 18:18:35 EDT 2020 x86_64
User: www (1000)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.018111.cn/wp-content/plugins/wp-user-manager/assets/js/src/admin/settings.js
jQuery(document).ready(function ($) {

	$( '#optionskit-topbar .notice' ).each( function() {
		$( this ).insertAfter( $( this ).parent().find( '.save-area' ) );
		$( this ).css( 'margin', '15px 0 0' );
	} );

	function refreshStripeConnect() {
        var gateway_mode = $('#stripe_gateway_mode').val();
		$( '.wpum-stripe-connect-account-info' ).each( function( i, obj ) {

			if ( $( obj ).data( 'gateway-mode' ) !== gateway_mode ) {
				return;
			}

			$.post( wpum_settings.ajaxurl, {
					action      : 'wpum_stripe_connect_account_info',
					nonce       : $( obj ).data( 'nonce' ),
					account_id  : $( obj ).data( 'account-id' ),
					gateway_mode: $( obj ).data( 'gateway-mode' ),
				},
				function( response ) {
					$( obj ).removeClass( 'notice-info' );
					if ( response.success ) {
						$( obj ).html( response.data.message + '<p>' + response.data.actions + '</p>' )
						if ( response.data.status === 'success' ) {
							$( obj ).addClass( 'notice-success' );
						} else if ( response.data.status === 'warning' ) {
							$( obj ).addClass( 'notice-warning' );
						}
					} else {
						$( obj ).find( 'p' ).html( response.data.message );
						$( obj ).addClass( 'notice-error' );
					}
				} )
				.fail( function() {
					alert( "Error" );
				} );
		} );
	}

	if ($('.wpum-stripe-connect-account-info').length) {
		refreshStripeConnect();
	}

	$('#stripe_gateway_mode').on('change', function() {
		refreshStripeConnect();
	});

	$(document).on('click', '#optionskit-navigation ul li a', function () {
		if ( $(this).attr('href') === '#/stripe') {
			refreshStripeConnect();
		}
	});

});