| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ 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/kainumber.com/member/ |
Upload File : |
<?php include('../include/class.php');?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
$datetime = date("Y-m-d H:i:s");
///print_r($_POST);
//exit();
$arr_bd = explode("/", $_POST['birthday']);
$birthday = $arr_bd[2].'-'.$arr_bd[1].'-'.$arr_bd[0];
$_SESSION['er'] = 'true';
$captchaResult = $_POST["captchaResult"];
$firstNumber = $_POST["firstNumber"];
$secondNumber = $_POST["secondNumber"];
$checkTotal = $firstNumber + $secondNumber;
if ($captchaResult == $checkTotal)
{
if($_POST["password"] == $_POST["password_c"])
{
$pass_md5 = $User_db->cus_pass($_POST["password"]);
$list = array(
'table'=>'member',
'name'=>"'".@$_POST["name"]."'",
'lastname'=>"'".@$_POST["lastname"]."'",
'birthday'=>"'".$birthday."'",
'address'=>"'".@$_POST["address"]."'",
'province'=>"'".@$_POST["province"]."'",
'phone'=>"'".@$_POST["phone"]."'",
'mail'=>"'".@$_POST["mail"]."'",
'zipcode'=>"'".@$_POST["zipcode"]."'",
'password'=>"'".@$pass_md5."'",
'status'=>'1',
'createdate'=>"'".$datetime."'",
'up_date'=>"'".$datetime."'"
);
$add = $actiondata_db->add_db($list);
//print_r($add);
$add['suc'] = 1;
if( $add['suc'] == 1)
{
include("../include/mail.php");
$to = $_POST['mail'];
$from = '[email protected]';
$sub = 'ยินดีต้อนรับ สมาชิกใหม่';
$msg = '
<table width="100%" border="0">
<tr>
<td align="right"><img src="../../image/text_logotop.png" width="200" class="img-responsive"></td>
</tr>
<tr>
</table><br>
<b>ยินดีต้อนรับ สมาชิกใหม่</b><br>'.'สวัสดี คุณ '.$_POST["name"].' '.$_POST["lastname"] . '<br>'.'ที่ได้ลงทะเบียนสมัครสมาชิกกับทาง '.'<a href="#">kainumber.com</a>';
//print_r($_POST);
$body = $msg.$contact;
//exit;
$mail->SetFrom($from, $from);
$mail->AddReplyTo($from, $from);
$mail->MsgHTML($body);
$mail->Subject = 'kainumber - เบอร์มงคล :: '.$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();
}
else
{
unset($_SESSION['er']);
echo "<meta http-equiv=\"refresh\" content=\"0; url=registertrue.php\">";
}
}
}
else
{
$_SESSION['er'] = 'false_pass';
echo "<meta http-equiv=\"refresh\" content=\"0; url=register.php\">";
}
}
else
{
$_SESSION['er'] = 'false_re';
echo "<meta http-equiv=\"refresh\" content=\"0; url=register.php\">";
}
?>