HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, 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
Upload Files
File: /home/u547966/brikov.ru/www/wp-content/plugins/foogallery/freemius/templates/firewall-issues-js.php
<?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,
				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;
			}

			$( this ).css({'cursor': 'wait'});

			// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
			$.post( ajaxurl, 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>