OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/contactforminq.php

<?php 
include("db/conn.php");
session_start();
include("sql_ing.php");
if (trim($_SESSION['captchaa'])!=trim($_POST['captcha'])){  
		echo "The captcha code does not match!";// Captcha verification is incorrect.	
		
}else
{ 
$blogid=filter_var(addslashes($_POST['blogid']), FILTER_SANITIZE_NUMBER_INT);
$contact_name=filter_var(addslashes($_POST['contact_name']), FILTER_SANITIZE_STRING);
$phone=filter_var(addslashes($_POST['phone']), FILTER_SANITIZE_STRING);
$email_id=filter_var(addslashes($_POST['email_id']), FILTER_SANITIZE_STRING);;
$con_msg=$_POST['con_msg'];
//var_dump($_POST);exit;
  
  $addq="INSERT INTO mc_mst_blogcomments (b_id,con_name,con_number,con_email,con_message,created_by,created_on) VALUES ('".$blogid."','".$contact_name."','".$phone."','".$email_id."','".$con_msg."','1','".date('Y-m-d')."')";
  $addr=$connection->query($addq);
  if($addr){
  	 

$message="<table align=\"center\" style=\"border:1px solid #456;border-radius:3px; width:70%; cellpadding:0; cellspacing:1;\">
					<tr style=\"\"><td style=\"text-align:center; padding:15px; font-weight:bold; font-size:20px;\"> New inquiry details </td></tr>
					<tr>
					<td>
						<table cellpadding=\"6\" style=\"width:100%; cellpadding:0; cellspacing:1; border:1px solid #BEC0CC; border-radius:3px 3px 0px 0px;  padding-bottom:15px;\">
						<tbody>
						<tr style=\"padding-bottom:10px;\">
								<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Name:
								</td>
								<td>
									".$contact_name."
								</td>
							    
							</tr>
							<tr style=\"padding-bottom:10px;\">
								<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Mobile:
								</td>
								<td>
									".$phone."
								</td>
							    
							</tr>
							
							<tr>
							<tr>
                               <td style=\"width:10%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Email:
								</td>
								<td style=\" width:100%;\">
								<p>".$email_id."</p>
								</td>							
							</tr>
							
							
							<tr>
                               <td style=\"width:10%; font-weight:bold;\">
									&nbsp;&nbsp;&nbsp;&nbsp;Message:
								</td>
								<td style=\" width:100%;\">
								<p>".$con_msg."</p>
								</td>							
							</tr>
							
                        </tbody>
						</table>
						</td>
						</tr>
						<tr>
							  <td colspan=\"2\" style=\" width:20%; font-weight:bold;\">
							  Please review and approve this commnet using following link <br/>
							  <a href='http://maccia.org.in/maccia-admin/login.php'>http://maccia.org.in/maccia-admin/login.php</a>
								</td>
								
							</tr>
						
							<tr>
							  <td colspan=\"2\" style=\" width:20%; font-weight:bold;\">
							  This is auto generated email, Please do not reply!
								</td>
								
							</tr>
					</table>";

						 $to = 'support@ultraliant.com';
						$subject="New Blog Message found";
						$headers = 'From: '.$contact_name." <".$email_id.">\r\n". 'no-reply@http://maccia.org.in' . "\r\n" . 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
						mail($to, $subject, $message, $headers);
						
						//$subject="New Message received";
						//$headers="MIME-Version: 1.0\r\n"."Content-type: text/html; charset=iso-8859-1\r\n"."From: ".$myName." <".$email_id.">\r\n";
//	@mail($to,$subject,$message,$headers);
						echo "success";
	  				}else{
   			 echo "ERROR: Could not send to email";
				}
				
}
   ?>  

xRyukZ - Copyright 2k19