KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/vangoghagainweb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/vangoghagainweb/contact_east.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Van Gogh Again Editions | Contact</title>
<style type="text/css">
<!--
-->
</style>
<link href="includes/van_gogh_again.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/chillbox-packed.js"></script>
<!--<a href="images/stretcher_bar_7.jpg" rel="ChillBox" title="">Show Image.</a> -->

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21277126-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>
<body>

<div id="main_wrapper">

    <div id="main_container">
    
        <div id="left_column_wrapper">
        	
<?php
include('includes/global_left_column.html');
?>
            

            
        </div>
        
        <div id="right_column_wrapper" style="float:right; width:750px;">
        	
            <div id="global_navigation" class="contact">


<?php
include('includes/global_navigation.html');
?>

                
            </div>
            
            <div id="contact_wrapper">
            
              <div id="contact_main_content" >
            	
                
             
                
                
             
                
                
                
<?php
if(isset($_POST['email'])) {
	
	// EDIT THE 2 LINES BELOW AS REQUIRED
	// [email protected]
	$email_to = "[email protected]";
	
	$email_bcc = "[email protected]";
	
	$email_subject = "Message from the www.VGAE.com Contact Form to the Pennsylvania Location";
	
	
	function died($error) {
		// your error code can go here
		echo "<div class=\"error\">Sorry, we were unable to send your email.<br />";
		echo "<br />";
		echo $error."<br /><br />";
		echo "<br /><a href=\"contact.shtml\">Please click here to go back and fix these errors.</a>";
		die();
	}
	
	// validation expected data exists
	if(!isset($_POST['name']) ||
		//!isset($_POST['last_name']) ||
		!isset($_POST['email']) ||
		//!isset($_POST['telephone']) ||
		!isset($_POST['comments'])) {
		died('We are sorry, but there appears to be a problem with the form you submitted.');		
	}
	
	$first_name = $_POST['name']; // required
	//$last_name = $_POST['last_name']; // required
	$email_from = $_POST['email']; // required
	//$telephone = $_POST['telephone']; // not required
	$comments = $_POST['comments']; // required
	
	$error_message = "";
	$email_exp = "^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$";
  if(!eregi($email_exp,$email_from)) {
  	$error_message .= "<span class=\"small\">* The Email Address you entered does not appear to be valid.<br /></span>";
  }
	//$string_exp = "^[a-z .'-]+$";
  //if(!eregi($string_exp,$first_name)) {
  //	$error_message .= 'The First Name you entered does not appear to be valid.<br />';
  //}
  //if(!eregi($string_exp,$last_name)) {
  //$error_message .= 'The Last Name you entered does not appear to be valid.<br />';
  //}

  //if(strlen($comments) < 2) {
  //	$error_message .= 'The Comments you entered do not appear to be valid.<br />';
  //}
  //$string_exp = "^[0-9 .-]+$";
  //if(!eregi($string_exp,$telephone)) {
  //$error_message .= 'The Telphone Number you entered does not appear to be valid.<br />';
  //}
  if(strlen($error_message) > 0) {
  	died($error_message);
  }
	$email_message = "Dear John,\nThis message is from the www.VGAE.com contact form and has been directed to the Pennsylvania Location.\n\n";
	
	function clean_string($string) {
	  $bad = array("content-type","bcc:","to:","cc:","href");
	  return str_replace($bad,"",$string);
	}
	
	$email_message .= "\nVISITOR INFORMATION:\n";
	$email_message .= " NAME: ".clean_string($name)."\n\n";
	//$email_message .= " Last Name: ".clean_string($last_name)."\n";
	$email_message .= " EMAIL: ".clean_string($email_from)."\n\n";
	//$email_message .= " Telephone: ".clean_string($telephone)."\n\n";

	
	$email_message .= "COMMENTS:\n ".clean_string($comments)."\n\n";
	
	
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Bcc: '.$email_bcc."\r\n" .
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);  
?>


<div class="thankyou">
Thank you for contacting Van Gogh Again.<br />
We will be in touch with you very soon.<br /><br />
<a href="contact.shtml">Click here to go back to the contact page.</a>




<?
}
?>              
 </div>               
                
            
                
                
                
                
			  </div>
              
            </div>
            
        </div>
    
    </div>


<?php
include('includes/global_footer.html');
?>


</div>

</body>
</html>

Anon7 - 2021