회원전용 게시판 만들기 정보
일반 회원전용 게시판 만들기관련링크
http://work.bullskorea.net
154회 연결
본문
초기화면에 회원로그인을 뛰우기
로그인 하지 않으면 들어가지 않겠금 하였는데
// mblogin.php 파일의 4번째 라인을
define("_DOCTYPE_", "DISINE");
//아래와 같이 변경
define("_DOCTYPE_", "STYLE");
// mbform.php 파일의 라인을 아래와 같이 변경
변경전 define("_DOCTYPE_", "DISINE");
변경후 define("_DOCTYPE_", "STYLE");
//index.php 파일을
변경전
case "DESIGN" :
include './head.sub.php';
include './head.php';
echo $ob_content;
include './tail.php';
include './tail.sub.php';
break;
// 나머지 TYPE 은 오류
변경후
case "DESIGN" :
// 로그인중이라면
if ($HTTP_SESSION_VARS[ss_mb_id]) {
include './head.sub.php';
include './head.php';
echo $ob_content;
include './tail.php';
include './tail.sub.php';
}
else {
include './head.sub.php';
include './bbs/mblogin.php';
include './tail.sub.php';
}
break;
// 나머지 TYPE 은 오류
아이디 : test
패스 : test
로그인 하지 않으면 들어가지 않겠금 하였는데
// mblogin.php 파일의 4번째 라인을
define("_DOCTYPE_", "DISINE");
//아래와 같이 변경
define("_DOCTYPE_", "STYLE");
// mbform.php 파일의 라인을 아래와 같이 변경
변경전 define("_DOCTYPE_", "DISINE");
변경후 define("_DOCTYPE_", "STYLE");
//index.php 파일을
변경전
case "DESIGN" :
include './head.sub.php';
include './head.php';
echo $ob_content;
include './tail.php';
include './tail.sub.php';
break;
// 나머지 TYPE 은 오류
변경후
case "DESIGN" :
// 로그인중이라면
if ($HTTP_SESSION_VARS[ss_mb_id]) {
include './head.sub.php';
include './head.php';
echo $ob_content;
include './tail.php';
include './tail.sub.php';
}
else {
include './head.sub.php';
include './bbs/mblogin.php';
include './tail.sub.php';
}
break;
// 나머지 TYPE 은 오류
아이디 : test
패스 : test
추천
0
0
댓글 전체
추가사항
//mblogout.php 파일을
아래와 같이 변경
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "NONE");
// 세션에서 회원아이디 삭제
session_unregister("ss_mb_id");
if ($url) {
$link = $url;
} else if ($bo_table) {
$link = "./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table";
} else {
변경전
$link = "./";
변경후
$link = "./?doc=$cfg[bbs_dir]/mblogin1.php";
}
header("location:$link");
?>
//mblogout.php 파일을
아래와 같이 변경
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "NONE");
// 세션에서 회원아이디 삭제
session_unregister("ss_mb_id");
if ($url) {
$link = $url;
} else if ($bo_table) {
$link = "./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table";
} else {
변경전
$link = "./";
변경후
$link = "./?doc=$cfg[bbs_dir]/mblogin1.php";
}
header("location:$link");
?>