SSL 보안인증 로그인,회원가입 적용하기 (2007/11/16 수정) > 그누4 팁자료실

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

SSL 보안인증 로그인,회원가입 적용하기 (2007/11/16 수정) 정보

SSL 보안인증 로그인,회원가입 적용하기 (2007/11/16 수정)

본문

조건1 : 로그인, 회원가입때만 SSL사용
조건2 : 인증주소 ==>  https://happyjung.com:1000
          (주의: https://www.happyjung.com:1000 일때와  https://happyjung.com:1000 은 다른 인증서임)
조건3: 그누보드 설치    http://happyjung.com/gnuboard


1. 환경설정

그누보드/  config.php

$g4['url'] = "";           --->(수정)  
$g4['url'] = "http://happyjung.com/gnuboard";
$g4['https_url'] = "";   --->(수정)   $g4['https_url'] = "http://happyjung.com/gnuboard";


2. 외부로그인

그누보드 / skin / outlogin / 스킨 / outlogin.skin.1.php  에서

원본:    f.action = "<?=$g4[bbs_path]?>/login_check.php";
수정:    f.action = "https://happyjung.com:1000/gnuboard/bbs/login_check.php";
로 변경합니다.



3. 로그인

그누보드 / skin / member / 스킨 / login.skin.php  에서

17라인
원본: <input type="hidden" name="url" value='<?=$url?>'>
수정: <input type="hidden" name="url" value='http://www.happyjung.com<?=$_SERVER['REQUEST_URI']?>'>


102라인
원본:    f.action = "./login_check.php";
수정:    f.action = "https://happyjung.com:1000/gnuboard/bbs/login_check.php";



4. 회원가입 (1)

그누보드 / skin / member / 스킨 / register_form.skin.php

원본:  <input type="hidden" name="url" value="<?=$urlencode?>" />h
수정:  <input type="hidden" name="url" value="http://happyjung.com<?=$_SERVER['REQUEST_URI']?>" />


원본:    f.action = "./register_form_update.php";
수정:    f.action = "https://happyjung.com:1000/gnuboard/bbs/register_form_update.php";



5. 회원가입 (2)

그누보드 / bbs / register_form_update.php

원본:    goto_url("./register_result.php");
수정:    goto_url("http://happyjung.com/gnuboard/bbs/register_result.php");



참조사이트
http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=64682
http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=37061
추천
4

댓글 14개

$g4['url'] = "";          --->(수정)  $g4['url'] = "http://happyjung.com/gnuboard";
$g4['https_url'] = "";  --->(수정)  $g4['https_url'] = "http://happyjung.com/gnuboard";

요기에서 아래꺼에 https 해야 하는거 아닌가요?
http://happyjung.com/gnuboard -> https://happyjung.com/gnuboard
SSL적용후 게시물 클릭해서 로그인할 때 경로 에러뜨면 본 게시물이 해결방안이네요. 추천합니다.
수정: <input type="hidden" name="url" value='http://www.happyjung.com<?=$_SERVER['REQUEST_URI']?>'>
$g4['url'] = "";          --->(수정)  $g4['url'] = "http://happyjung.com/gnuboard";
$g4['https_url'] = "";  --->(수정)  $g4['https_url'] = "http://happyjung.com/gnuboard";

아래도 http://주소들어가나요?
포트번호는 안넣어도 되나요?
전체 3,313 |RSS
그누4 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT