드러와~ 드러와~ 2탄

· 6년 전 · 2958

$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,510
6년 전 조회 3,203
6년 전 조회 4,787
6년 전 조회 5,171
6년 전 조회 5,158
6년 전 조회 4,140
6년 전 조회 3,494
6년 전 조회 4,301
6년 전 조회 1.7만
6년 전 조회 3,845
6년 전 조회 5,223
6년 전 조회 5,216
6년 전 조회 6,277
6년 전 조회 4,115
6년 전 조회 2,959
6년 전 조회 3,570
6년 전 조회 3,520
6년 전 조회 8,984
6년 전 조회 3,796
6년 전 조회 3,600
6년 전 조회 3,456
6년 전 조회 3,880
6년 전 조회 6,583
6년 전 조회 5,697
6년 전 조회 5,231
6년 전 조회 7,210
6년 전 조회 4,142
6년 전 조회 4,440
6년 전 조회 3,304
6년 전 조회 5,387