Index of /home/htscrtms/newcrm.htshah.com/hslider
<?php
// include file
include_once("db_connect.php");
include_once('easebuzz-lib/easebuzz_payment_gateway.php');
// salt for testing env
$SALT = "JR3WJKOLKZ";
$easebuzzObj = new Easebuzz($MERCHANT_KEY = null, $SALT, $ENV = null);
$result = $easebuzzObj->easebuzzResponse( $_POST );
$query ="insert into `tabl_order`(`prodnm`,`name`,`email`,`phone`,`cname`,`totamt`,`status`) values('".$_POST['udf1']."','".$_POST['firstname']."','".$_POST['email']."','".$_POST['phone']."','".$_POST['udf2']."','".$_POST['amount']."','".$_POST['status']."')";
$query = mysqli_query($con,$query) or die(mysqli_error($con));
if($_POST['status']=="success"){
$ToEmail2 = "htshahcomum@hotmail.com,test@dakshitsolutions.com";
$fname = $_POST['firstname'];
$phone = $_POST['phone'];
$cname = $_POST['udf2'];
$prodnm = $_POST['udf1'];
$price = $_POST['amount'];
$EmailSubject2 = 'Reports Purchase Note';
$mailheader2 = "MIME-Version: 1.0\r\n";
$mailheader2 .= "Content-type: text/html; charset=iso-8859-1\r\n";
$mailheader2 .= "X-Priority: 3\r\n";
$mailheader2 .= "X-Mailer: PHP". phpversion() ."\r\n" ;
$message2 = "<b>Name : </b>".$fname."<br><br>";
$message2 .= "<b>Email : </b>".$_POST['email']."<br><br>";
$message2 .= "<b>Mobile No : </b>".$phone."<br><br>";
$message2 .= "<b>Company Name : </b>".$cname."<br><br>";
$message2 .= "<b>Report Name : </b>".$prodnm."<br><br>";
$message2 .= "<b>Price : </b>".$price."<br><br>";
$ToEmail = $_POST['email'];
$EmailSubject = 'HT Shah Reports Purchase Note';
$mailheader = "MIME-Version: 1.0\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
$mailheader .= "X-Priority: 3\r\n";
$mailheader .= "X-Mailer: PHP". phpversion() ."\r\n" ;
$message = "<b>Thanks for your purchase of HT Report - ".$prodnm."</b><br><br>Once payment is confirmed by our bank.<br><br>";
$message .= "We will mail you the reports shortly.<br><br>";
$message .= "<b>Warm Regards</b><br><br>";
$message .= "<b>HT Shah & Co.</b><br><br>";
$message .= "<b>www.htshah.com</b><br><br>";
if(@mail($ToEmail2, $EmailSubject2, $message2, $mailheader2) && @mail($ToEmail, $EmailSubject, $message, $mailheader))
{
}
else{
echo "Please Try Again !";
}
echo "<script>alert('Payment done sucessfully');window.location.href='thankyou.php?prodnm=".$prodnm."';</script>";
}
echo "<script>window.location.href='index.php';</script>";
?>