
<!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: core.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
if ( ! defined( &#039;ABSPATH&#039; ) ) {
	exit;
}

/**
 * Trait: Core
 * 
 * Build and sanitize settings from raw request data.
 *
 * Expects raw $_POST data.
 * Each field is unslashed and sanitized according to its type.
 *
 * @param array $fields Field definitions.
 * @param array $post   Raw $_POST data.
 * @return array
 */
trait Jobwp_Core
{
	protected function jobwp_build_set_settings_options( $fields, $post ) {

    	$set_data = [];
		
		$sanitizers = [

			&#039;text&#039;      =&gt; &#039;sanitize_text_field&#039;,
			&#039;textarea&#039;  =&gt; &#039;sanitize_textarea_field&#039;,
			&#039;editor&#039;    =&gt; &#039;wp_kses_post&#039;,
			&#039;url&#039;       =&gt; &#039;esc_url_raw&#039;,
			&#039;email&#039;     =&gt; &#039;sanitize_email&#039;,
			&#039;number&#039;	=&gt; &#039;intval&#039;,
			&#039;string&#039;    =&gt; &#039;sanitize_text_field&#039;,
		];

		foreach ( $fields as $value ) {
			
			if ( &#039;boolean&#039; === $value[&#039;type&#039;] ) {

				$set_data[$value[&#039;name&#039;]] = ! empty( $post[$value[&#039;name&#039;]] ) ? $post[$value[&#039;name&#039;]] : $value[&#039;default&#039;];
			}

			if ( &#039;multipe_checkbox&#039; === $value[&#039;type&#039;] ) {
	
				$set_data[$value[&#039;name&#039;]] = isset( $post[$value[&#039;name&#039;]] ) &amp;&amp; is_array( $post[$value[&#039;name&#039;]] ) ? $this-&gt;array_sanitize( $post[$value[&#039;name&#039;]] ) : $value[&#039;default&#039;];
			}

			if ( isset( $sanitizers[ $value[&#039;type&#039;] ] ) ) {

				$callback = $sanitizers[ $value[&#039;type&#039;] ];

				$set_data[ $value[&#039;name&#039;] ] = isset( $post[ $value[&#039;name&#039;] ] ) ? call_user_func( $callback, wp_unslash( $post[ $value[&#039;name&#039;] ] ) ) : $value[&#039;default&#039;];
			}
    	}
		
		return $set_data;
	}

  	public function array_sanitize( $input ) {

		$new_input = array();
	
		foreach ( $input as $key =&gt; $val ) {
			
			$new_input[ $key ] = ( isset( $input[ $key ] ) ) ? sanitize_text_field( wp_unslash( $val ) ) : &#039;&#039;;
		}
	
		return $new_input;
	}

	protected function jobwp_build_get_settings_options( $fields, $settings ) {
		
		$get_data = [];

		foreach ( $fields as $value ) {
	
			$get_data[$value[&#039;name&#039;]] = isset( $settings[$value[&#039;name&#039;]] ) ? $settings[$value[&#039;name&#039;]] : $value[&#039;default&#039;];
		}

		return $get_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>
