self.location='my_order.php';";
}
$result = 0;
if(empty($_SESSION['six_letters_code'] ) ||
strcasecmp($_SESSION['six_letters_code'], $_POST['six_letters_code']) != 0)
{
//Note: the captcha code is compared case insensitively.
//if you want case sensitive match, update the check above to
// strcmp()
$errors .= "The captcha code does not match!";
}
if(!empty($errors) && isset($_POST['btnSubmit']))
{
header("Location: manage_orders.php?suc=cap");
exit;
}
$db=new database;
if(isset($_GET['check'])==1 && empty($errors) && isset($_POST['btnSubmit']))
{
if (is_null($_POST['emailTxt']))
{
}
else
{
$vemail=$_POST['emailTxt'];
}
$vname=addslashes($_POST['nameTxt']);
$vpwd=$_POST['pwdTxt1'];
$time=time();
$mdoj=date('Y-m-d');
$country=$_POST['contact_country_code'];
$contact_number=$_POST['contact_country_code'].$_POST['contact_num'];
$mtime=date("Y-m-d(H:i:s)");
if($vpwd == "google123")
{
$status = "blocked";
}
else
{
$status = "inactive";
}
$mysql="select count(*) from customers where groom_email='$vemail' or bride_email='$vemail'";
$rs=$db->get_a_line($mysql);
$cnt=$rs[0];
if($cnt==0 && !empty($vpwd))
{
$today=date("Ymd");
$mysql="insert into customers set
groom_name='$vname',
groom_email='$vemail',
groom_mobile='$contact_number',
password='$vpwd',
reg_date='".date("Y-m-d")."',
status_id='1',
status='Potential Customer'";
$uid=$db->insert_data_id($mysql);
$md5vemail = md5($vemail);
$subject="New SandArtVideo.com Member - ".$vemail;
$vname = stripslashes($vname);
$message="Dear Admin,
A new member signed up! The details of the member are given below..
Member Id : $uid
Groom Name : $vname
Groom Email : $vemail
Password : $vpwd";
//mail("admin@SandArtVideo.com",$subject,$message,$headers);
//mail("vibinkb@gmail.com",$subject,$message,$headers);
include('mailer.php');
$mail->SetFrom('member@sandartvideo.com', 'SandArtVideo');
$mail->Subject = $subject;
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->MsgHTML($message);
$address = "admin@sandartvideo.com";
$mail->AddAddress($address, $name);
//$address = "vibinkloge@gmail.com";
//$mail->AddBCC($address, "Vibin");
if(!$mail->Send()) {
//echo "Mailer Error: " . $mail->ErrorInfo;
$success1 = "0";
$_SESSION["result"]='failed';
} else {
// echo "Message sent!";
$success1 = "1";
$_SESSION["result"]='rits';
}
$subject1="SandArtVideo.com - Member Registration";
$message1="Dear $vname,
Thank you for signing up at SandArtVideo.com!
Here are your login details:
Email :$vemail
Password :$vpwd
Regards,
Account Activation System
SandArtVideo.com
*** PLEASE DO NOT REPLY ***
";
$mail->ClearAllRecipients();
$mail1 = clone $mail;
$mail1->SetFrom('member@sandartvideo.com', 'SandArtVideo');
$mail1->Subject = $subject1;
$mail1->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail1->MsgHTML($message1);
$address = $vemail;
$mail1->AddAddress($address, $name);
$address = "vibinkloge@gmail.com";
$mail1->AddBCC($address, "Vibin");
if(!$mail1->Send()) {
//echo "Mailer Error: " . $mail->ErrorInfo;
$success1 = "0";
$_SESSION["result"]='failed';
} else {
// echo "Message sent!";
$success1 = "1";
$_SESSION["result"]='rits';
header("Location: manage_orders.php?suc=yes");
}
}
else
{
header("Location: manage_orders.php?suc=er");
}
}
?>