403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/rsdgroup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rsdgroup/writeDistributor.php
<?php
include_once("conf/settings.php");
include_once("conf/func.php");

foreach($_REQUEST as $key=>$value){
	$$key	=	$value; 
}

if($distProductId)
{
  $distProductIdVal = $distProductId;
}
else{
  $distProductIdVal = "";
}
$query	= "INSERT INTO `tblDistributors` SET `name`='".mysql_real_escape_string(sanitize_data(@$distName))."', 
											`address`='".mysql_real_escape_string(sanitize_data(@$distAddress))."', 
											`city`='".mysql_real_escape_string(sanitize_data(@$distCity))."', 
											`mobile`='".mysql_real_escape_string(sanitize_data(@$distPhone))."', 
											`location`='".mysql_real_escape_string(sanitize_data(@$distLocation))."', 
											`distPincode`='".mysql_real_escape_string(sanitize_data(@$distPincode))."',
											`distInterested`='".mysql_real_escape_string(sanitize_data(@$distInterested))."',
											`distProductId`='".mysql_real_escape_string(sanitize_data(@$distProductIdVal))."',
											`distQualification`='".mysql_real_escape_string(sanitize_data(@$distQualification))."',
											`distCurrentOccupation`='".mysql_real_escape_string(sanitize_data(@$distCurrentOccupation))."',
											`distExServiceman`='".mysql_real_escape_string(sanitize_data(@$distExServiceman))."',
											`distExposerDdairyBusiness`='".mysql_real_escape_string(sanitize_data(@$distExposerDdairyBusiness))."', 
											`createdOn`=unix_timestamp()";				
$result	=	mysql_query("$query") or die(mysql_error());
if($result){ 
    //change this to your email.
	//$to			=	"manish.ambast@rsdgroup.net";
	$to_arr			=	array("sales@gopaljeedairy.com","info@gopaljeedairy.com");
	
	foreach($to_arr as $to_arr_email)
	{
	    $to         =   $to_arr_email;
		$from		=	"no-reply@rsdgroup.in";
		$subject	=	"Business Enquiry Email";
		//begin of HTML message
		$message = "
					<html>
						<body style='font-family:verdana;font-size:11px;color:#3f3f3f;'>
							<b>Dear Administrator</b>,
							<br>
							You have received an email from Business enquiry:
							<br><br>
							Name : ".ucfirst(strtolower($distName))."<br>
							Phone : ".$distPhone."<br>
							City : ".$distCity." <br>
							<br>
							To view the more details please login to you Admin Account (<a href='http://www.rsdgroup.in/adminPanel/'>www.rsdgroup.in/admin</a>).
							<br><br>
							<b>Best Regards<br>
							RSD Group</b>
						</body>
					</html>";
		//end of message
			$headers	=	"From: $from\r\n";
			$headers	.=	"Content-type: text/html\r\n";
		//options to send to cc+bcc
		//$headers .= "Cc: [email]maa@p-i-s.cXom[/email]";
		//$headers .= "Bcc: [email]email@maaking.cXom[/email]";
		// now lets send the email.
		@mail($to, $subject, $message, $headers);
	}	

?>
<script>
	document.location="distributor_form.html?msg=suc";
</script>
<?php } else { ?>
<script>
	document.location="distributor_form.html?msg=err";
</script>
<?php } ?>

Youez - 2016 - github.com/yon3zu
LinuXploit