dbConnect(); } // 게시판설정파일 include "$_SERVER[DOCUMENT_ROOT]/new_2015/cgi/lib/board_conf.inc"; //기사제보 if($class == "qna") { if(empty($_SESSION[session_userid])) { $REQUEST_URI_new = str_replace("&","**",$REQUEST_URI); echo ""; exit; } if(empty($_SESSION[session_userlevel]) || $_SESSION[session_userlevel] == 0 || $_SESSION[session_userlevel] == 1) { if($type != "write") { echo ""; exit; } } } //시청자게시판 로그인하도록 변경 2016-06-27 // if($class == "fboard") { //if(empty($_SESSION[session_userid])) { // $REQUEST_URI_new = str_replace("&","**",$REQUEST_URI); // echo ""; // exit; //} //} //여기까지만 삭제하면 로그인 필요없음 if($class == "intranet") { if(!$_COOKIE[userid]) { echo ""; } } if($bdf_nm_write == "F") { if(!$_COOKIE[userid]) { if($type == "write" && ($action == "insert" || $action == "reply")) { $userapi->errorMsg("비회원/준회원은 글을 등록시킬 수 없습니다."); } } } if($bdf_nm_view == "F") { if(!$_COOKIE[userid]) { if($type == "view") { $userapi->errorMsg("비회원/준회원은 글을 보실 수 없습니다."); } } } // default 이미지 경로 $img_path = "/cgi/board/images"; if($class == "notice2") $img_path2 = "/notice/img"; else $img_path2 = "/bbs/img"; // 기본경로 $b_path = "/new_2015/cgi/board"; $b_path2 = "/cgi/board"; // 파일다운/업 경로 $upfile_path = $_SERVER[DOCUMENT_ROOT].$b_path."/upload/{$class}"; $upfile_path2 = $b_path2."/upload/{$class}"; // 테이블명 $table = "board_rw"; // 게시판 기본색상 $board_bgcolor = "#{$bdf_bgcolor}"; // 상단 html if($bdf_up_include) include "../include/header2.php"; //include $_SERVER[DOCUMENT_ROOT].$bdf_up_include; else { echo $bdf_up_html; } //echo $bdf_up_include; if($type=="password"){ //echo $type; //include "board/password.html"; } // file include if(!$type) { if($bdf_type == "3") $type = "write_q"; // 온라인문의사항이면 else { $type = "list"; if($bdf_type == "4") $n = "2"; elseif($bdf_type == "5") $n = "3"; elseif($bdf_type == "6") $n = "4"; } } else { if($type != "password_write" && $type != "password_write2") { if($bdf_type == "4") $n = "2"; elseif($bdf_type == "5") $n = "3"; elseif($bdf_type == "6") $n = "4"; } } // 게시판이 영어게시판이면 $e_class = substr($class, -2); if($e_class == "_e" || $e_class == "_c") $e_img_gb = "e_"; // 한컷뉴스인 경우 조회수 감추기 if($type == "list") { switch($class) { case "news": $n = "_news"; break; } } //echo $_SERVER[DOCUMENT_ROOT].$b_path."/{$e_img_gb}{$type}{$n}.html"; include $_SERVER[DOCUMENT_ROOT].$b_path."/{$e_img_gb}{$type}{$n}.html"; // 하단 html if($bdf_down_include) include "../include/footer.php"; //include $_SERVER[DOCUMENT_ROOT].$bdf_down_include; else { echo $bdf_down_html; } if($REMOTE_ADDR == "59.5.15.2") { echo $_SERVER[DOCUMENT_ROOT].$b_path."/{$e_img_gb}{$type}{$n}.html"; //echo "$bdf_up_include , $bdf_up_html | $b_path $e_img_gb $type $n | $_SESSION[session_userlevel] | $session_userlevel | $login_user_level "; //echo $bdf_up_include."
"; //echo $bdf_down_include; } // db disconnect $dbapi->dbDisconnect($connectionID); ?>