드러와~ 드러와~ 2탄

· 6년 전 · 2975

$is_guest 보다 더 간단한 방법

$is_member 앞에 !(느낌표) 하나만 딱! 끝!

 

/bbs/register.php

[code]

<?php
include_once('./_common.php');

 

// 로그인중인 경우 회원가입 할 수 없습니다.
if (!$is_member) { // 여기 느낌표 추가
    goto_url(G5_URL);
}

// 세션을 지웁니다.
set_session("ss_mb_reg", "");

$g5['title'] = '회원가입약관';
include_once('./_head.php');

$register_action_url = G5_BBS_URL.'/register_form.php';
include_once($member_skin_path.'/register.skin.php');

include_once('./_tail.php');
?>

[/code]

|
댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 팁자료실

+
제목 글쓴이 날짜 조회
6년 전 조회 6,543
6년 전 조회 3,218
6년 전 조회 4,805
6년 전 조회 5,193
6년 전 조회 5,177
6년 전 조회 4,155
6년 전 조회 3,509
6년 전 조회 4,325
6년 전 조회 1.7만
6년 전 조회 3,878
6년 전 조회 5,236
6년 전 조회 5,228
6년 전 조회 6,294
6년 전 조회 4,126
6년 전 조회 2,976
6년 전 조회 3,592
6년 전 조회 3,535
6년 전 조회 8,998
6년 전 조회 3,817
6년 전 조회 3,615
6년 전 조회 3,471
6년 전 조회 3,892
6년 전 조회 6,606
6년 전 조회 5,715
6년 전 조회 5,255
6년 전 조회 7,250
6년 전 조회 4,161
6년 전 조회 4,458
6년 전 조회 3,327
6년 전 조회 5,407