Server IP : 104.21.38.3 / Your IP : 162.158.88.8 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : 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 MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/sendwp/ |
Upload File : |
function caldera_forms_sendwp_remote_install() { var data = { 'action': 'caldera_forms_sendwp_remote_install', 'sendwp_nonce': sendwp_vars.nonce }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function(response) { var data = JSON.parse(response); if( data.error ){ var element = jQuery("#cf-email-settings-ui"), inner = '<div class="notice error"></div>', message; if( data.debug === '!security'){ message = sendwp_vars.security_failed_message; } else if( data.debug === '!user_capablity'){ message = sendwp_vars.user_capability_message; } else if( data.debug === 'sendwp_connected'){ message = sendwp_vars.sendwp_connected_message; } jQuery(element).prepend( jQuery( inner ).text(message) ); } else { caldera_forms_sendwp_register_client(data.register_url, data.client_name, data.client_secret, data.client_redirect, data.partner_id, data.client_url); } }); } function caldera_forms_sendwp_register_client(register_url, client_name, client_secret, client_redirect, partner_id, client_url) { var form = document.createElement("form"); form.setAttribute("method", 'POST'); form.setAttribute("action", register_url); function caldera_forms_sendwp_append_form_input(name, value) { var input = document.createElement("input"); input.setAttribute("type", "hidden"); input.setAttribute("name", name); input.setAttribute("value", value); form.appendChild(input); } caldera_forms_sendwp_append_form_input('client_name', client_name); caldera_forms_sendwp_append_form_input('client_secret', client_secret); caldera_forms_sendwp_append_form_input('partner_id', partner_id); caldera_forms_sendwp_append_form_input('client_redirect', client_redirect); caldera_forms_sendwp_append_form_input('client_url', client_url); document.body.appendChild(form); form.submit(); }