OverLord Shell

Path : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/
File Upload :
Current File : G:/PleskVhosts/jaincensus.com/macciaweb.ultraliant.com/businessforum/registerstud_save.php

<?php 
session_start();
require_once("db/conn.php");
if(empty($_SESSION['captcha_code'] ) || strcasecmp($_SESSION['captcha_code'], $_POST['captcha_code']) != 0){  
		echo "The captcha code does not match!";// Captcha verification is incorrect.	
		
}else
{ 
	$company_name=$_POST['first_Name'];
	
	$sasa=explode("~",$_POST['country_id']);
	$cname=$sasa[1];
	$sasa1=explode("~",$_POST['state_id']);
	$sname=$sasa1[1];
	$sasa2=explode("~",$_POST['dist_id']);
	$dname=$sasa2[1];
	if($sasa[0]!='101'){
		$sname_main=$_POST['company_other_state'];
		$dist_main=$_POST['company_other_state'];
	}else
	{
		$sname_main=$sname;
		$dist_main=$dname;
	}
	$company_pinno=$_POST['company_pinno'];
	$company_email=$_POST['company_email'];
	$username=$_POST['company_email'];
	$company_city=htmlentities($_POST['company_city'],ENT_QUOTES);
	$company_mobile=htmlentities($_POST['company_mobile'],ENT_QUOTES);
	$passwordsend=substr(md5(time()),3,8);
	$password=md5($passwordsend);
	
//	echo "SELECT company_id FROM busdir_mst_job WHERE company_email='".$company_email."' or company_mobile='".$company_mobile."'";
	$selr=$connection->query("SELECT company_id FROM busdir_mst_job WHERE company_email='".$company_email."' or company_mobile='".$company_mobile."'");
	if($selr->num_rows!=0)echo "Duplicate mobile or email address.";
	else{
  $addq="INSERT INTO busdir_mst_job(company_name,company_country,company_state,company_district,company_city,company_pinno,company_email,username,company_mobile,password,role,createdon)VALUES
		                                      ('".$company_name."','".$cname."','".$sname_main."','".$dist_main."','".$company_city."','".$company_pinno."','".$company_email."','".$username."','".$company_mobile."','".$password."','jb','".date('Y-m-d H:i:s')."')";
		$addr=$connection->query($addq);
		if($addr){
			//sending welcome email
			/*$to = $company_email;
			$subject="MACCIA Business Network Registration";
			$headers  = 'From: support@ultraliant.com' . "\r\n" .
											'Reply-To: support@ultraliant.com' . "\r\n" .
											'MIME-Version: 1.0' . "\r\n" .
											'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
											'X-Mailer: PHP/' . phpversion();
			$message="Congratulations, ".$First_name."!!! You have registered at MACCIA Business Network !!!<br><br>Please keep this e-mail for your records and keep it confidential. Your account information is as follows:<br><br>------------------------------<br>Username: ".$company_email."<br>Password: ".$passwordsend."<br>------------------------------<br><br>Please visit the following link in order to login into your account:<br><br><a href=\"http://business.maccia.org.in/login.php\" target=\"_blank\">http://business.maccia.org.in/login.php</a><br><br>Thank you for registering.<br><br>-------------------------------------------------------<br><strong>This is an automated message, please do not reply.</strong>";
		$mresponse = mail($to,$subject,$message,$headers);*/
			echo "success";
		}
		else echo "An unknown error occured. Please try again.";
	}
	$selr->free();
	$connection->close();
}
?>

xRyukZ - Copyright 2k19