%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/logodowntown.com/
Upload File :
Create Path :
Current File : /home/eirtvhdf/logodowntown.com/sender.php

<?php
session_start();
require("database.php");
//require("inc/vars.php");

if(isset($_POST['started'])){
    $name = htmlspecialchars($_POST['fn']);
    $email = htmlspecialchars($_POST['em']);
    $phone = htmlspecialchars($_POST['ph']);
    $message = htmlspecialchars($_POST['msg']);
    
    

    $body = "

<table class='table table-bordered'>
<tr>
<th>Name:</th>
<td>".$name."</td>
</tr>

<tr>
<th>Email:</th>
<td>".$email."</td>
</tr>

<tr>
<th>Phone:</th>
<td>". $phone."</td>
</tr>

<tr>
<th>Description:</th>
<td>".$message."</td>
</tr>

</table>
";

        $to = "fahad.ansari@alogodaddy.com";
        $subject = "Get Started Quote From Logo Downtown";
        
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
//$headers .= "From: ". strip_tags($_POST['email']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n";
         
       
$url = "https://www.google.com/recaptcha/api/siteverify";
		$data = [
			'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y",
			'response' => $_POST['token1'],
			// 'remoteip' => $_SERVER['REMOTE_ADDR']
		];

		$options = array(
		    'http' => array(
		      'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
		      'method'  => 'POST',
		      'content' => http_build_query($data)
		    )
		  );

		$context  = stream_context_create($options);
  		$response = file_get_contents($url, false, $context);

		$res = json_decode($response, true);

if($res['success'] == true) {
$mysqli = mysqli_query($dbh,"insert into quote values('','$name','$email','$phone','$message')");
$retval = mail ($to,$subject,$body,$headers);
if( $retval == true ) {
    echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/thankyou.php"
      </script>';
         }
         else{
             echo 'Mail not sent';
         }    
}

echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/error.php"
      </script>';

}



if(isset($_POST['started2'])){
    $name = htmlspecialchars($_POST['fn']);
    $email = htmlspecialchars($_POST['em']);
    $phone = htmlspecialchars($_POST['ph']);
    $message = htmlspecialchars($_POST['msg']);
    
    

    $body = "

<table class='table table-bordered'>
<tr>
<th>Name:</th>
<td>".$name."</td>
</tr>

<tr>
<th>Email:</th>
<td>".$email."</td>
</tr>

<tr>
<th>Phone:</th>
<td>". $phone."</td>
</tr>

<tr>
<th>Description:</th>
<td>".$message."</td>
</tr>

</table>
";

        $to = "fahad.ansari@alogodaddy.com";
        $subject = "Quote From Logo Downtown";
        
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
//$headers .= "From: ". strip_tags($_POST['email']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n";
         
       
$url = "https://www.google.com/recaptcha/api/siteverify";
		$data = [
			'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y",
			'response' => $_POST['token2'],
			// 'remoteip' => $_SERVER['REMOTE_ADDR']
		];

		$options = array(
		    'http' => array(
		      'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
		      'method'  => 'POST',
		      'content' => http_build_query($data)
		    )
		  );

		$context  = stream_context_create($options);
  		$response = file_get_contents($url, false, $context);

		$res = json_decode($response, true);

if($res['success'] == true) {
$mysqli = mysqli_query($dbh,"insert into quote values('','$name','$email','$phone','$message')");
$retval = mail ($to,$subject,$body,$headers);
if( $retval == true ) {
    echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/thankyou.php"
      </script>';
         }
         else{
             echo 'Mail not sent';
         }    
}

echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/error.php"
      </script>';

}

if(isset($_POST['started3'])){
    $name = htmlspecialchars($_POST['fn']);
    $email = htmlspecialchars($_POST['em']);
    $phone = htmlspecialchars($_POST['ph']);
    $message = htmlspecialchars($_POST['msg']);
    
    

    $body = "

<table class='table table-bordered'>
<tr>
<th>Name:</th>
<td>".$name."</td>
</tr>

<tr>
<th>Email:</th>
<td>".$email."</td>
</tr>

<tr>
<th>Phone:</th>
<td>". $phone."</td>
</tr>

<tr>
<th>Description:</th>
<td>".$message."</td>
</tr>

</table>
";

        $to = "fahad.ansari@alogodaddy.com";
        $subject = "Quote From Logo Downtown";
        
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
//$headers .= "From: ". strip_tags($_POST['email']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n";
         
       
$url = "https://www.google.com/recaptcha/api/siteverify";
		$data = [
			'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y",
			'response' => $_POST['token3'],
			// 'remoteip' => $_SERVER['REMOTE_ADDR']
		];

		$options = array(
		    'http' => array(
		      'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
		      'method'  => 'POST',
		      'content' => http_build_query($data)
		    )
		  );

		$context  = stream_context_create($options);
  		$response = file_get_contents($url, false, $context);

		$res = json_decode($response, true);

if($res['success'] == true) {
$mysqli = mysqli_query($dbh,"insert into quote values('','$name','$email','$phone','$message')");
$retval = mail ($to,$subject,$body,$headers);
if( $retval == true ) {
    echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/thankyou.php"
      </script>';
         }
         else{
             echo 'Mail not sent';
         }    
}

echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/error.php"
      </script>';

}

if(isset($_POST['combo_order'])){
    $name = htmlspecialchars($_POST['fn']);
    $email = htmlspecialchars($_POST['em']);
    $phone = htmlspecialchars($_POST['ph']);
    $message = htmlspecialchars($_POST['msg']);
    $price = htmlspecialchars($_POST['lead_area']);
    $pkg_name = htmlspecialchars($_POST['pkg_name']);
    
    $body = "

<table class='table table-bordered'>
<tr>
<th>Name:</th>
<td>".$name."</td>
</tr>

<tr>
<th>Email:</th>
<td>".$email."</td>
</tr>

<tr>
<th>Phone:</th>
<td>". $phone."</td>
</tr>

<tr>
<th>Description:</th>
<td>".$message."</td>
</tr>

</table>
";

        $to = "fahad.ansari@alogodaddy.com";
        $subject = "Order From Logo Downtown";
        
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
//$headers .= "From: ". strip_tags($_POST['email']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n";
         
       
$url = "https://www.google.com/recaptcha/api/siteverify";
		$data = [
			'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y",
			'response' => $_POST['token5'],
			// 'remoteip' => $_SERVER['REMOTE_ADDR']
		];

		$options = array(
		    'http' => array(
		      'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
		      'method'  => 'POST',
		      'content' => http_build_query($data)
		    )
		  );

		$context  = stream_context_create($options);
  		$response = file_get_contents($url, false, $context);

		$res = json_decode($response, true);

if($res['success'] == true) {
$mysqli = mysqli_query($dbh,"insert into quote values('','$name','$email','$phone','$message')");
$retval = mail ($to,$subject,$body,$headers);
if( $retval == true ) {
            $_SESSION['last_id'] = $dbh->insert_id;
             $_SESSION['a_name'] = $name;
             $_SESSION['a_email'] = $email;
             $_SESSION['a_phone'] = $phone;
             $_SESSION['a_message'] = $message;
             $_SESSION['a_package'] = $pkg_name;
             $_SESSION['a_amount'] = $price;
           header('Location: https://logodowntown.com/order_step2.php?retval='.$retval);
         }
         else{
             echo 'Mail not sent';
         }    
}

echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/error.php"
      </script>';

}

if(isset($_POST['logo_design'])){
    $name = htmlspecialchars($_POST['fn']);
    $email = htmlspecialchars($_POST['em']);
    $phone = htmlspecialchars($_POST['ph']);
    $message = htmlspecialchars($_POST['msg']);
    $price = htmlspecialchars($_POST['lead_area']);
    $pkg_name = htmlspecialchars($_POST['pkg_name']);
    
    $body = "

<table class='table table-bordered'>
<tr>
<th>Name:</th>
<td>".$name."</td>
</tr>

<tr>
<th>Email:</th>
<td>".$email."</td>
</tr>

<tr>
<th>Phone:</th>
<td>". $phone."</td>
</tr>

<tr>
<th>Description:</th>
<td>".$message."</td>
</tr>

</table>
";

        $to = "fahad.ansari@alogodaddy.com";
        $subject = "Logo Order From Logo Downtown";
        
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
//$headers .= "From: ". strip_tags($_POST['email']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n";
         
       
$url = "https://www.google.com/recaptcha/api/siteverify";
		$data = [
			'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y",
			'response' => $_POST['token10'],
			// 'remoteip' => $_SERVER['REMOTE_ADDR']
		];

		$options = array(
		    'http' => array(
		      'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
		      'method'  => 'POST',
		      'content' => http_build_query($data)
		    )
		  );

		$context  = stream_context_create($options);
  		$response = file_get_contents($url, false, $context);

		$res = json_decode($response, true);

if($res['success'] == true) {
$mysqli = mysqli_query($dbh,"insert into logo_quote values('','$name','$email','$phone','$message')");
$retval = mail ($to,$subject,$body,$headers);
if( $retval == true ) {
            $_SESSION['last_id'] = $dbh->insert_id;
             $_SESSION['a_name'] = $name;
             $_SESSION['a_email'] = $email;
             $_SESSION['a_phone'] = $phone;
             $_SESSION['a_message'] = $message;
             $_SESSION['a_package'] = $pkg_name;
             $_SESSION['a_amount'] = $price;
           header('Location: https://logodowntown.com/order_step2.php?retval='.$retval);
         }
         else{
             echo 'Mail not sent';
         }    
}

echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/error.php"
      </script>';

}


if(isset($_POST['website'])){
    $name = htmlspecialchars($_POST['fn']);
    $email = htmlspecialchars($_POST['em']);
    $phone = htmlspecialchars($_POST['ph']);
    $message = htmlspecialchars($_POST['msg']);
    $price = htmlspecialchars($_POST['lead_area']);
    $pkg_name = htmlspecialchars($_POST['pkg_name']);
    
    $body = "

<table class='table table-bordered'>
<tr>
<th>Name:</th>
<td>".$name."</td>
</tr>

<tr>
<th>Email:</th>
<td>".$email."</td>
</tr>

<tr>
<th>Phone:</th>
<td>". $phone."</td>
</tr>

<tr>
<th>Package:</th>
<td>". $pkg_name."</td>
</tr>

<tr>
<th>Amount:</th>
<td>". $price."</td>
</tr>

<tr>
<th>Description:</th>
<td>".$message."</td>
</tr>

</table>
";

        $to = "fahad.ansari@alogodaddy.com";
        $subject = "Website Order From Logo Downtown";
        
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
//$headers .= "From: ". strip_tags($_POST['email']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n";
         
       
$url = "https://www.google.com/recaptcha/api/siteverify";
		$data = [
			'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y",
			'response' => $_POST['token20'],
			// 'remoteip' => $_SERVER['REMOTE_ADDR']
		];

		$options = array(
		    'http' => array(
		      'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
		      'method'  => 'POST',
		      'content' => http_build_query($data)
		    )
		  );

		$context  = stream_context_create($options);
  		$response = file_get_contents($url, false, $context);

		$res = json_decode($response, true);

if($res['success'] == true) {
$mysqli = mysqli_query($dbh,"insert into website_quote values('','$name','$email','$phone','$pkg_name','$price','$message')");
$retval = mail ($to,$subject,$body,$headers);
if( $retval == true ) {
            // $_SESSION['last_id'] = $dbh->insert_id;
            //  $_SESSION['a_name'] = $name;
            //  $_SESSION['a_email'] = $email;
            //  $_SESSION['a_phone'] = $phone;
            //  $_SESSION['a_message'] = $message;
            //  $_SESSION['a_package'] = $pkg_name;
            //  $_SESSION['a_amount'] = $price;
           header('Location: https://logodowntown.com/thank_you.php');
         }
         else{
             echo 'Mail not sent';
         }    
}

echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/error.php"
      </script>';

}

if(isset($_POST['video'])){
    $name = htmlspecialchars($_POST['fn']);
    $email = htmlspecialchars($_POST['em']);
    $phone = htmlspecialchars($_POST['ph']);
    $message = htmlspecialchars($_POST['msg']);
    $price = htmlspecialchars($_POST['lead_area']);
    $pkg_name = htmlspecialchars($_POST['pkg_name']);
    
    $body = "

<table class='table table-bordered'>
<tr>
<th>Name:</th>
<td>".$name."</td>
</tr>

<tr>
<th>Email:</th>
<td>".$email."</td>
</tr>

<tr>
<th>Phone:</th>
<td>". $phone."</td>
</tr>

<tr>
<th>Package:</th>
<td>". $pkg_name."</td>
</tr>

<tr>
<th>Amount:</th>
<td>". $price."</td>
</tr>

<tr>
<th>Description:</th>
<td>".$message."</td>
</tr>

</table>
";

        $to = "fahad.ansari@alogodaddy.com";
        $subject = "Website Order From Logo Downtown";
        
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
//$headers .= "From: ". strip_tags($_POST['email']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n";
         
       
$url = "https://www.google.com/recaptcha/api/siteverify";
		$data = [
			'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y",
			'response' => $_POST['token30'],
			// 'remoteip' => $_SERVER['REMOTE_ADDR']
		];

		$options = array(
		    'http' => array(
		      'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
		      'method'  => 'POST',
		      'content' => http_build_query($data)
		    )
		  );

		$context  = stream_context_create($options);
  		$response = file_get_contents($url, false, $context);

		$res = json_decode($response, true);

if($res['success'] == true) {
$mysqli = mysqli_query($dbh,"insert into video_animation_quote values('','$name','$email','$phone','$pkg_name','$price','$message')");
$retval = mail ($to,$subject,$body,$headers);
if( $retval == true ) {
            // $_SESSION['last_id'] = $dbh->insert_id;
            //  $_SESSION['a_name'] = $name;
            //  $_SESSION['a_email'] = $email;
            //  $_SESSION['a_phone'] = $phone;
            //  $_SESSION['a_message'] = $message;
            //  $_SESSION['a_package'] = $pkg_name;
            //  $_SESSION['a_amount'] = $price;
           header('Location: https://logodowntown.com/thank_you.php');
         }
         else{
             echo 'Mail not sent';
         }    
}

echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/error.php"
      </script>';

}


if(isset($_POST['contact'])){
    $name = htmlspecialchars($_POST['fn']);
    $email = htmlspecialchars($_POST['em']);
    $phone = htmlspecialchars($_POST['ph']);
    $message = htmlspecialchars($_POST['msg']);
    
    

    $body = "

<table class='table table-bordered'>
<tr>
<th>Name:</th>
<td>".$name."</td>
</tr>

<tr>
<th>Email:</th>
<td>".$email."</td>
</tr>

<tr>
<th>Phone:</th>
<td>". $phone."</td>
</tr>

<tr>
<th>Description:</th>
<td>".$message."</td>
</tr>

</table>
";

        $to = "fahad.ansari@alogodaddy.com";
        $subject = "Contact Message From Logo Downtown";
        
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
//$headers .= "From: ". strip_tags($_POST['email']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n";
         
       
$url = "https://www.google.com/recaptcha/api/siteverify";
		$data = [
			'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y",
			'response' => $_POST['token4'],
			// 'remoteip' => $_SERVER['REMOTE_ADDR']
		];

		$options = array(
		    'http' => array(
		      'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
		      'method'  => 'POST',
		      'content' => http_build_query($data)
		    )
		  );

		$context  = stream_context_create($options);
  		$response = file_get_contents($url, false, $context);

		$res = json_decode($response, true);

if($res['success'] == true) {
$mysqli = mysqli_query($dbh,"insert into contact_us values('','$name','$email','$phone','$message')");
$retval = mail ($to,$subject,$body,$headers);
if( $retval == true ) {
    echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/thankyou.php"
      </script>';
         }
         else{
             echo 'Mail not sent';
         }    
}

echo '<script type="text/javascript">
           window.location = "https://logodowntown.com/error.php"
      </script>';

}

         
?>

Zerion Mini Shell 1.0