드러와~ 드러와~ 2탄

· 6년 전 · 3012

$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,599
6년 전 조회 3,255
6년 전 조회 4,884
6년 전 조회 5,242
6년 전 조회 5,237
6년 전 조회 4,195
6년 전 조회 3,563
6년 전 조회 4,376
6년 전 조회 1.7만
6년 전 조회 3,936
6년 전 조회 5,289
6년 전 조회 5,286
6년 전 조회 6,340
6년 전 조회 4,171
6년 전 조회 3,013
6년 전 조회 3,636
6년 전 조회 3,582
6년 전 조회 9,039
6년 전 조회 3,866
6년 전 조회 3,663
6년 전 조회 3,511
6년 전 조회 3,945
6년 전 조회 6,665
6년 전 조회 5,779
6년 전 조회 5,326
6년 전 조회 7,386
6년 전 조회 4,213
6년 전 조회 4,502
6년 전 조회 3,367
6년 전 조회 5,476