Revonzy Mini Shell
<?php
include('config.php');
require_once(PATH_LIBRARIES.'/classes/DBConn.php');
require_once(PATH_LIBRARIES.'/functions/fun1.php');
$db = new DBConn();
$con= mysql_connect(SERVER,DBUSER,DBPASSWORD);
mysql_query('SET AUTOCOMMIT=0',$con);
mysql_query('START TRANSACTION',$con);
try
{
//Insert contact info dats into DB
$tblfield=array('Name','Email','Message','Date','Read_Status','Reply');
$tblvalues=array($_POST['name'],$_POST['email'],$_POST['message'],NOW(),0,0);
$res=$db->valInsert("contact_request",$tblfield,$tblvalues);
if(!$res)
{
throw new Exception('0');
}
///******************************************************************************************
///////////////////////After Contact Form is Submition Email Send /////////////////////////
//******************************************************************************************
//$to ='mail@shrishtiarchitects.com';
$to ='sudhir5106@gmail.com';
// subject ///////////////////////////////////////
$subject = 'New Enquery';
// message ////////////////////////////////////////////////
$message = "
Dear Shrishti Architecture,
<br>
<br>
You Getting A Mail
<br>
Name = ".$_POST['name']."
<br>
<br>
Email = ".$_POST['email']."
<br>
<br>
Message = ".$_POST['message']."
<br>";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Shrishti Architecture <'.trim($_POST['email']).'>' . "\r\n";
mail($to, $subject, $message, $headers);
mysql_query("COMMIT",$con);
echo 1;
}
catch(Exception $e)
{
echo $e->getMessage();
mysql_query('ROLLBACK',$con);
mysql_query('SET AUTOCOMMIT=1',$con);
}
?>
EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com