| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/plugins/pods/ui/js/ |
Upload File : |
/*@global PodsI18n */
(function ( $ ) {
var methods = {
prepare : function () {
var pods_ajaxurl = $( '#pods-wizard-box' ).data( 'url' );
if ( 'undefined' != typeof pods_ajaxurl )
pods_ajaxurl = pods_ajaxurl.replace( /\?nojs\=1/, '?pods_ajax=1' );
if ( 'undefined' != typeof ajaxurl && ('undefined' == typeof pods_ajaxurl || '' == pods_ajaxurl || '?pods_ajax=1' == pods_ajaxurl || document.location.href == pods_ajaxurl || document.location.href.replace( /\?nojs\=1/, '?pods_ajax=1' ) == pods_ajaxurl) )
pods_ajaxurl = ajaxurl + '?pods_ajax=1';
if ( $( '#pods-wizard-panel-2 table tbody tr.pods-wizard-table-pending' )[ 0 ] ) {
var $row = $( '#pods-wizard-panel-2 table tbody tr.pods-wizard-table-pending' ).first();
$row.removeClass( 'pods-wizard-table-pending' ).addClass( 'pods-wizard-table-active' );
var postdata = {
'action' : $( '#pods-wizard-box' ).data( 'action' ),
'method' : $( '#pods-wizard-box' ).data( 'method' ),
'_wpnonce' : $( '#pods-wizard-box' ).data( '_wpnonce' ),
'step' : 'prepare',
'type' : $row.data( 'upgrade' ),
'pod' : '',
'version' : $( '#pods-wizard-box' ).data( 'version' )
};
if ( 'undefined' != typeof $row.data( 'pod' ) )
postdata[ 'pod' ] = $row.data( 'pod' );
$.ajax( {
type : 'POST',
url : pods_ajaxurl,
cache : false,
data : postdata,
success : function ( d ) {
if ( -1 == d.indexOf( '<e>' ) && -1 != d ) {
$row.find( 'td.pods-wizard-count' ).text( d );
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-complete' );
if ( 'undefined' == typeof $row.data( 'pod' ) )
$( '#pods-wizard-panel-3 table tbody tr[data-upgrade="' + $row.data( 'upgrade' ) + '"] td.pods-wizard-count' ).text( d );
else
$( '#pods-wizard-panel-3 table tbody tr[data-pod="' + $row.data( 'pod' ) + '"] td.pods-wizard-count' ).text( d );
// Run next
return methods[ 'prepare' ]();
}
else {
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-warning' );
$row.find( 'td span.pods-wizard-info' ).html( d.replace( '<e>', '' ).replace( '</e>', '' ) );
if ( window.console ) console.log( d.replace( '<e>', '' ).replace( '</e>', '' ) );
// Run next
return methods[ 'prepare' ]();
}
},
error : function () {
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-error' );
$row.find( 'td span.pods-wizard-info' ).text( PodsI18n.__( 'Unable to process request, please try again.' ) );
},
dataType : 'html'
} );
}
else {
$( '#pods-wizard-next' ).show();
}
},
migrate : function ( postdata, $row ) {
var pods_ajaxurl = $( '#pods-wizard-box' ).data( 'url' );
if ( 'undefined' != typeof pods_ajaxurl )
pods_ajaxurl = pods_ajaxurl.replace( /\?nojs\=1/, '?pods_ajax=1' );
if ( 'undefined' != typeof ajaxurl && ('undefined' == typeof pods_ajaxurl || '' == pods_ajaxurl || '?pods_ajax=1' == pods_ajaxurl || document.location.href == pods_ajaxurl || document.location.href.replace( /\?nojs\=1/, '?pods_ajax=1' ) == pods_ajaxurl) )
pods_ajaxurl = ajaxurl + '?pods_ajax=1';
if ( 'undefined' != typeof postdata || $( '#pods-wizard-panel-3 table tbody tr.pods-wizard-table-pending' )[ 0 ] ) {
if ( 'undefined' == typeof $row )
var $row = $( '#pods-wizard-panel-3 table tbody tr.pods-wizard-table-pending' ).first();
if ( 'undefined' == typeof postdata ) {
$row.removeClass( 'pods-wizard-table-pending' ).addClass( 'pods-wizard-table-active' );
var postdata = {
'action' : $( '#pods-wizard-box' ).data( 'action' ),
'method' : $( '#pods-wizard-box' ).data( 'method' ),
'_wpnonce' : $( '#pods-wizard-box' ).data( '_wpnonce' ),
'step' : 'migrate',
'type' : $row.data( 'upgrade' ),
'pod' : '',
'version' : $( '#pods-wizard-box' ).data( 'version' )
};
if ( 'undefined' != typeof $row.data( 'pod' ) )
postdata[ 'pod' ] = $row.data( 'pod' );
}
$.ajax( {
type : 'POST',
url : pods_ajaxurl,
cache : false,
data : postdata,
success : function ( d ) {
if ( -1 == d.indexOf( '<e>' ) && '-1' != d ) {
if ( '-2' == d ) {
// Run next
return methods[ 'migrate' ]( postdata, $row );
}
else if ( '1' == d ) {
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-complete' );
// Run next
return methods[ 'migrate' ]();
}
else if ( ( d.length - 2 ) == d.indexOf( '-2' ) ) {
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-warning' );
$row.find( 'td span.pods-wizard-info' ).html( d.replace( '<e>', '' ).replace( '</e>', '' ) );
if ( window.console ) console.log( d.replace( '<e>', '' ).replace( '</e>', '' ) );
// Run next
return methods[ 'migrate' ]( postdata, $row );
}
else if ( ( d.length - 1 ) == d.indexOf( '1' ) ) {
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-warning' );
$row.find( 'td span.pods-wizard-info' ).html( d.replace( '<e>', '' ).replace( '</e>', '' ) );
if ( window.console ) console.log( d.replace( '<e>', '' ).replace( '</e>', '' ) );
// Run next
return methods[ 'migrate' ]();
}
else {
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-error' );
$row.find( 'td span.pods-wizard-info' ).html( d.replace( '<e>', '' ).replace( '</e>', '' ) );
if ( window.console ) console.log( d.replace( '<e>', '' ).replace( '</e>', '' ) );
}
}
else if ( -1 < d.indexOf( 'Database Error;' ) ) {
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-error' );
$row.find( 'td span.pods-wizard-info' ).html( d.replace( '<e>', '' ).replace( '</e>', '' ) );
if ( window.console ) console.log( d.replace( '<e>', '' ).replace( '</e>', '' ) );
}
else {
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-warning' );
$row.find( 'td span.pods-wizard-info' ).html( d.replace( '<e>', '' ).replace( '</e>', '' ) );
if ( window.console ) console.log( d.replace( '<e>', '' ).replace( '</e>', '' ) );
// Run next
return methods[ 'migrate' ]();
}
},
error : function () {
$row.removeClass( 'pods-wizard-table-active' ).addClass( 'pods-wizard-table-error' );
$row.find( 'td span.pods-wizard-info' ).text( PodsI18n.__( 'Unable to process request, please try again.' ) );
},
dataType : 'html'
} );
}
else {
$( '#pods-wizard-next' ).trigger( 'click' ).text( 'Start using Pods' ).addClass( 'finished' );
$( '#pods-wizard-next' ).off( 'click' );
$( '#pods-wizard-next' ).prop( 'href', 'admin.php?page=pods' );
$( '#pods-wizard-next' ).show();
$( '#pods-wizard-finished' ).show();
}
}
};
$.fn.PodsUpgrade = function ( method ) {
return methods[ method ]();
// go through tr by tr, run if/else checks
};
})( jQuery );