OverLord Shell
<?php
session_start();
if (trim($_SESSION['captchaa'])!=trim($_POST['captcha_code'])){
echo "<p style='color:red !important;'>The captcha code does not match!</p>";// Captcha verification is incorrect.
}else
{
require_once("db/conn.php");
$enq_name=$_POST['enq_name'];
$city=$_POST['city'];
$yourrole=$_POST['yourrole'];
$email_id=$_POST['email_id'];
$phone=$_POST['phone'];
$description=$_POST['description'];
$exhibitionpatner=$_POST['exhibitionpatner'];
if($enq_name!='' && $city!='' && $yourrole!='' && $phone!='' && $email_id!='' && $exhibitionpatner!='')
{
$addq="INSERT INTO mc_register_mail (exhibitionpatner,name,yourrole,email_id,phone,city,description,created_on) VALUES ('".$exhibitionpatner."','".$enq_name."','".$yourrole."','".$email_id."','".$phone."','".$city."','".$description."','".date('Y-m-d')."')";
$addr=$connection->query($addq);
if($addr==true)
{
$to ='sagar@maccia.org.in';
$subject = 'New IICP Registration for MACCIA';
$message1 ="<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 Enquiry 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;\">
Name:
</td>
<td>
".$enq_name."
</td>
</tr>
<tr style=\"padding-bottom:10px;\">
<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
Role:
</td>
<td>
".$yourrole."
</td>
</tr>
<tr style=\"padding-bottom:10px;\">
<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
Exhibition Patner:
</td>
<td style=\" width:100%;\">
<p>".$exhibitionpatner."</p>
</td>
</tr>
<tr style=\"padding-bottom:10px;\">
<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
City:
</td>
<td>
".$city."
</td>
</tr>
<tr style=\"padding-bottom:10px;\">
<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
Email:
</td>
<td style=\" width:100%;\">
<p>".$email_id."</p>
</td>
</tr>
<tr style=\"padding-bottom:10px;\">
<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
Mobile:
</td>
<td style=\" width:100%;\">
<p>".$phone."</p>
</td>
</tr>
<tr style=\"padding-bottom:10px;\">
<td style=\" border-color:#BEC0CC; width:20%; font-weight:bold;\">
Description:
</td>
<td style=\" width:100%;\">
<p>".$description."</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan=\"2\" style=\" width:20%; font-weight:bold;\">
This is auto generated email, Please do not reply!
</td>
</tr>
</table>";
//$message1 .='Message: '.$message;
$emailxy="no-reply@maccia.org.in";
$headers = 'From: '.$emailxy. "\r\n". 'Reply-To:no-reply@maccia.com' . "\r\n" . 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
//if (filter_var($emailid, FILTER_VALIDATE_EMAIL))
//{ // this line checks that we have a valid email address
if(mail($to, $subject, $message1, $headers)){ //This method sends the mail.
echo "success~<p style='color:green !important;'>Your Registration Enquiry Successfully Sent, We Will Get Back You Shortly!</p>"; // success message
}
else
{
echo "<p style='color:red !important;'>ERROR: Could not send to email.</p>";
}
}
else
{
echo "Error";
}
}
else
{
echo "Error ";
}
}
?>
xRyukZ - Copyright 2k19