From a39a1e8612caa731c44a91754e8ef7edbaeda674 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 20 Jan 2018 05:35:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=84=EC=9D=B4=EB=94=94=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=EA=B0=80=EB=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- d_setting/set.php | 2 +- f_func/class._Mail.php | 10 ++++++++-- f_func/func.js | 3 ++- i_login/join/sendCodePost.php | 8 ++++---- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/d_setting/set.php b/d_setting/set.php index 2405cdb0..9447e7a9 100644 --- a/d_setting/set.php +++ b/d_setting/set.php @@ -7,5 +7,5 @@ localhost 25 test letmein -@localhost +test@localhost */ diff --git a/f_func/class._Mail.php b/f_func/class._Mail.php index 51fce56a..33982ff9 100644 --- a/f_func/class._Mail.php +++ b/f_func/class._Mail.php @@ -9,8 +9,8 @@ class _Mail { public function __construct($host, $port, $id, $pw, $addr) { $this->objMail = new PHPMailer(); $this->objMail->IsSMTP(); - $this->objMail->SMTPAuth = true; - $this->objMail->SMTPSecure = 'ssl'; + $this->objMail->SMTPAuth = false; + //$this->objMail->SMTPSecure = 'ssl';//TODO 제대로된 Mailer 옵션 설정 $this->objMail->Host = $host; $this->objMail->Port = $port; $this->objMail->Username = $id; @@ -19,6 +19,12 @@ class _Mail { $this->objMail->CharSet = 'utf-8'; $this->objMail->Encoding = 'base64'; $this->objMail->SetFrom($addr); + $this->objMail->SMTPOptions = array ( + 'ssl' => array( + 'verify_peer' => false, + 'allow_self_signed' => true + ) + ); } public function Send($to, $subject, $content) { diff --git a/f_func/func.js b/f_func/func.js index d5c2b1f1..e3e7c597 100644 --- a/f_func/func.js +++ b/f_func/func.js @@ -12,8 +12,9 @@ function Replace(url) { } function ReplaceFrame(url) { - //window.top.location.replace(url); console.log('top',url); + window.top.location.replace(url); + } function ImportStyle(href) { diff --git a/i_login/join/sendCodePost.php b/i_login/join/sendCodePost.php index 5c74adfe..7ac960a7 100644 --- a/i_login/join/sendCodePost.php +++ b/i_login/join/sendCodePost.php @@ -32,10 +32,10 @@ if($err == 1) { $DB->Delete('EMAIL', "EMAIL='{$email}'"); } $DB->InsertArray('EMAIL', array( - EMAIL => $email, - CODE => $code, - VERIFIED=> 0, - REG_DATE=> _Time::DatetimeNow() + 'EMAIL' => $email, + 'CODE' => $code, + 'VERIFIED'=> 0, + 'REG_DATE'=> _Time::DatetimeNow() )); $response['result'] = 'SUCCESS';