
<!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: Blacklist.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing

namespace MailPoet\Subscription;

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


class Blacklist {
  const SALT = &#039;mailpoet&#039;;

  private $blacklistedEmails = [
    &#039;e60c6e0e73997c92d4ceac78a6b6cbbe6249244c4106a3c31de421fc50370ecd&#039; =&gt; 1,
    &#039;4a7fb8fba0a800ad5cf324704d3510d019586765aef6d5081fa5aed3f93d9dce&#039; =&gt; 1,
    &#039;7151c278028263ace958b66616e69a438f23e5058a5df42ed734e9e6704f8332&#039; =&gt; 1,
  ];

  private $blacklistedDomains = [
    &#039;2ea570cf0c440b2ec7d6e1335108625a5f62162b2116a25c9c909dc5b54c213f&#039; =&gt; 1,
    &#039;1e10eb32b615217baa4d8f54191891e107851a2057d1128f067f1df096896e45&#039; =&gt; 1,
    &#039;dc2bfb04e38d3c25c8a465a5fed841a1cb1685044d12241efe01f0fc044f2182&#039; =&gt; 1,
    &#039;f17c13fe5a1d8cd2e78a04528377cc607881ad12b6295b6fa8b6a789d1d04c10&#039; =&gt; 1,
    &#039;813cbef72da3542e783470ecd62589bceb3883d15ab2435ec2486f9762602b8c&#039; =&gt; 1,
  ];

  public function __construct(
    array $blacklistedEmails = null,
    array $blacklistedDomains = null
  ) {
    if ($blacklistedEmails) {
      $this-&gt;blacklistedEmails = array_fill_keys(array_map([$this, &#039;hash&#039;], $blacklistedEmails), 1);
    }
    if ($blacklistedDomains) {
      $this-&gt;blacklistedDomains = array_fill_keys(array_map([$this, &#039;hash&#039;], $blacklistedDomains), 1);
    }
  }

  public function isBlacklisted($email) {
    $hashedEmail = $this-&gt;hash($email);
    if (isset($this-&gt;blacklistedEmails[$hashedEmail])) {
      return true;
    }
    $emailParts = explode(&#039;@&#039;, $email);
    $domain = end($emailParts);
    $hashedDomain = $this-&gt;hash($domain);
    return isset($this-&gt;blacklistedDomains[$hashedDomain]);
  }

  private function hash($key) {
    return hash(&#039;sha256&#039;, $key . self::SALT);
  }
}
</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>
