성인회원 정의에 대해서....
본문
plugin/kcpcert/kcpcert_result.php
// 성인인증결과
$adult_day = date("Ymd", strtotime("-17 years", G5_SERVER_TIME));
$adult = ((int)$birth_day <= (int)$adult_day) ? 1 : 0;
현재 성인회원을 만18세 이상으로 했는데...
만18세가 아닌 19세이상으로 변경하고 싶은데 어떡해해야하는지 알려주시면 감사하겠습니다....
위에 소스 어디를 고쳐야하는지 모르겠어요....
답변 2
년도만 체크하면 됩니다.
// $adult_day = date("Ymd", strtotime("-17 years", G5_SERVER_TIME));
// $adult = ((int)$birth_day <= (int)$adult_day) ? 1 : 0;
$adult_day = date("Y", strtotime("-18 years", G5_SERVER_TIME));
$adult = ((int)(substr($birth_day,0,3)) <= (int)$adult_day) ? 1 : 0;
이렇게 하면 년도만 체크하게 됩니다.
$adult_day = date("Ymd", strtotime("-18 years", G5_SERVER_TIME));
이렇게 고치시면되요
답변을 작성하시기 전에 로그인 해주세요.