From b0c2c9cea6e7ac12bd65529e7b35d4fc24c099a3 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 24 Aug 2018 09:16:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=90=EB=8F=99=EB=A1=9C=EA=B7=B8=EC=9D=B8?= =?UTF-8?q?=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/login_check.php | 2 +- common.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bbs/login_check.php b/bbs/login_check.php index 28075ccc1..3fe856313 100644 --- a/bbs/login_check.php +++ b/bbs/login_check.php @@ -72,7 +72,7 @@ if ($auto_login) { // 3.27 // 자동로그인 --------------------------- // 쿠키 한달간 저장 - $key = md5($_SERVER['SERVER_ADDR'] . $_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT'] . $mb['mb_password']); + $key = md5($_SERVER['SERVER_ADDR'] . $_SERVER['SERVER_SOFTWARE'] . $_SERVER['HTTP_USER_AGENT'] . $mb['mb_password']); set_cookie('ck_mb_id', $mb['mb_id'], 86400 * 31); set_cookie('ck_auto', $key, 86400 * 31); // 자동로그인 end --------------------------- diff --git a/common.php b/common.php index 3aa15e069..5ba0419cc 100644 --- a/common.php +++ b/common.php @@ -374,7 +374,7 @@ if ($_SESSION['ss_mb_id']) { // 로그인중이라면 $sql = " select mb_password, mb_intercept_date, mb_leave_date, mb_email_certify from {$g5['member_table']} where mb_id = '{$tmp_mb_id}' "; $row = sql_fetch($sql); if($row['mb_password']){ - $key = md5($_SERVER['SERVER_ADDR'] . $_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT'] . $row['mb_password']); + $key = md5($_SERVER['SERVER_ADDR'] . $_SERVER['SERVER_SOFTWARE'] . $_SERVER['HTTP_USER_AGENT'] . $row['mb_password']); // 쿠키에 저장된 키와 같다면 $tmp_key = get_cookie('ck_auto'); if ($tmp_key === $key && $tmp_key) {