Server IP : 104.21.38.3 / Your IP : 104.23.176.7 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/post-smtp/freemius/templates/ |
Upload File : |
<?php /** * API connectivity issues (CloudFlare's firewall) handler for handling different * scenarios selected by the user after connectivity issue is detected, by sending * AJAX call to the server in order to make the actual actions. * * @package Freemius * @copyright Copyright (c) 2015, Freemius, Inc. * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 * @since 1.0.9 */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <script type="text/javascript"> jQuery( document ).ready(function( $ ) { $( '#fs_firewall_issue_options a.fs-resolve' ).click(function() { var error_type = $( this ).attr( 'data-type' ), notice = $( this ).parents( '.fs-notice' ), ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' ); var data = { action : 'fs_resolve_firewall_issues_' + ajaxActionSuffix, // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. _wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_resolve_firewall_issues' ) ); ?>, error_type: error_type }; if ( 'squid' === error_type ) { data.hosting_company = prompt( 'What is the name or URL of your hosting company?' ); if ( null == data.hosting_company ) return false; if ( '' === data.hosting_company ) { alert( 'We won\'t be able to help without knowing your hosting company.' ); return false; } } if ( 'retry_ping' === error_type ) { data.action = 'fs_retry_connectivity_test_' + ajaxActionSuffix; // As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline. data._wpnonce = <?php echo wp_json_encode( wp_create_nonce( 'fs_retry_connectivity_test' ) ); ?>; } $( this ).css({'cursor': 'wait'}); $.post( <?php echo Freemius::ajax_url() ?>, data, function( response ) { if ( 1 == response ) { // Refresh page on success. location.reload(); } else if ( 'http' === response.substr( 0, 4 ) ) { // Ping actually worked, redirect. window.location = response; } }); }); }); </script>