MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.149.214.223
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/umrahguide.in/../uttamnagarproperties.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/umrahguide.in/../uttamnagarproperties.com/insert_reg_detail.php
<?php 
session_start();
require_once("includes/dbsmain.inc.php");
$usertype = $_REQUEST['usertype'];
$name = $_REQUEST['username'];
$mobile = $_REQUEST['usermobile'];
$email = $_REQUEST['useremail'];
$usrpass = $_REQUEST['userpass'];
 if(!empty($email)){
	 $cntEmail = db_scalar("select count(*) from tbl_registration where 1 and reg_email='$email'");
	 if($cntEmail > 0){
		 echo "2";
	 }else{
	   $quicksql="insert into tbl_registration set
          reg_name='$name',
		  reg_mobile_no='$mobile',
  		  reg_email='$email',
		  reg_pass='$usrpass',
		  reg_user_type='$usertype',
		  reg_add_date=now()";
		  db_query($quicksql);
		  $insertID = mysqli_insert_id();
		  $_SESSION['RID'] = $insertID;
		  $_SESSION['RNAME'] = $name;
		  $_SESSION['RMAIL'] = $email;
	 }
 }
 ///////////////****** Mailer to client start here **********************//////////////
	//$hostName = $_SERVER['HTTP_HOST'];	  		  
//		  $msgmail="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
//<html xmlns='http://www.w3.org/1999/xhtml'>
//<head>
//<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
//<title>TradeKeyIndia.com-Largest B2B Portal In India</title>
// </head>
//<body>		  
//	 <table align='center' cellSpacing='0' cellPadding='0' width='87%' border='1' style='border:1px solid #e61938'>
//  <tbody>
//    <tr>
//      <td vAlign='top' style='background-color:#e61938; padding:10px;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:16px; color:#ffffff; text-align:center; font-weight:bold; text-decoration:none;' colspan='3' >Quick Enquiry From $hostName</td>
//    </tr>
//     <tr>
//      <td width='30%' vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Name</strong> </td>
//      <td vAlign='top' width='70%' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$name</td>
//    </tr>
//     <tr>
//      <td vAlign='top'  style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Mobile </strong> </td>
//      <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$mobile</td>
//    </tr>
//    <tr>
//      <td vAlign='top'  style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Email-Id</strong> </td>
//      <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$email</td>
//    </tr>       
//    <tr>
//      <td vAlign='top'  style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; color:#003366; background-color:#F9E2DD;padding:10px;' ><strong>Detail  </strong> </td>
//      <td vAlign='top' style='font-family:Verdana, Arial, Helvetica, sans-serif;padding:10px;'>$msg</td>
//    </tr>    
//  </tbody>
//</table>
//</body>
//</html>";
//$toEmail = db_scalar("select admin_email from tbl_admin where 1");
//$subject = "Enquiry from $hostName";
//		        $from = "$email";
//				$Headers1 = "From: $name<$from>\n";
//				$Headers1 .= "X-Mailer: PHP/". phpversion();
//				$Headers1 .= "X-Priority: 3 \n";
//				$Headers1 .= "MIME-version: 1.0\n";
//				$Headers1 .= "Content-Type: text/html; charset=iso-8859-1\n"; 
//				@mail("$toEmail", "$subject", "$msgmail","$Headers1","-fenquiry@tradekeyindia.com");
//				//@mail("amitabh.tradekeyindia@gmail.com", "Subject", "Msg1","$Headers1","-fenquiry@tradekeyindia.com");
//				 $toEmail."<br>";
/////////////////****** Mailer to client end here **********************//////////////			  
/////////////////// Mail To Admin //////////////////////////////////
//
//$mail_to_admin="client_enquiry@tradekeyindia.com";
//$sub_admin="Business Enquiry From $hostName";
//$mail_admin_body = "$msgmail";	
//$sender_admin =$email;		
//$headers_admin  = "MIME-Version: 1.0" . "\r\n";
//$headers_admin .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
//$headers_admin .= "from: ".$sender_admin."\n";
//if($email){
//@mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin);
//}
///////////////// Mail To Admin End//////////////////////////////////
  ?> 

MMCT - 2023