조건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 에서
원본: <input type="hidden" name="url" value="<?=$url?>">
수정: <input type="hidden" name="url" value="http://happyjung.com<?=$_SERVER['REQUEST_URI']?>">
원본: 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://happyjung.com<?=$_SERVER['REQUEST_URI']?>'>
102라인
원본: echo "f.action = '$g4[https_url]/$g4[bbs]/login_check.php';";
수정: echo "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?>" />
수정: <input type="hidden" name="url" value="http://happyjung.com<?=$_SERVER['REQUEST_URI']?>" />
원본: echo "f.action = '$g4[https_url]/$g4[bbs]/register_form_update.php';";
수정: echo "f.action = "https://happyjung.com:1000/gnuboard/bbs/register_form_update.php";";
5. 회원가입 (2)
그누보드 / bbs / register_form_update.php
원본: goto_url("{$https_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
원본 - http://happyjung.com/gnuboard/bbs/board.php?bo_table=lecture&wr_id=390
'보안관련 > 그누보드' 카테고리의 다른 글
정보보호진흥원에서 보안서버 구축의 공문을 받으신 고객님께서는 로그인 부분을 링크에 걸린 스킨으로 적용하시기 바랍니다. (0) | 2012.03.12 |
---|---|
GNUBoard Include Vulnerability - 08.12.29 (0) | 2009.03.15 |
GNUBoard Multiple Local/Remote Vulnerability - 09.01.30 (0) | 2009.03.15 |