//error_reporting(E_ALL ^ E_NOTICE); error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT ); ini_set("display_errors", 1); // 보안설정이나 프레임이 달라도 쿠키가 통하도록 설정 header('P3P: CP="ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC"'); // 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면 // 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음 header("Content-Type: text/html; charset=utf-8"); $gmnow = gmdate("D, d M Y H:i:s") . " GMT"; header("Expires: 0"); // rfc2616 - Section 14.21 header("Last-Modified: " . $gmnow); header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1 header("Pragma: no-cache"); // HTTP/1.0 if (!isset($set_time_limit)) $set_time_limit = 0; @set_time_limit($set_time_limit); // 전역변수 호환성 체크 START $php_ver = explode(".", phpversion()); if ($php_ver[0]<4 || $php_ver[0]==4 && $php_ver[1]<1) { $_GET =& $HTTP_GET_VARS; $_POST =& $HTTP_POST_VARS; $_COOKIE =& $HTTP_COOKIE_VARS; $_SESSION =& $HTTP_SESSION_VARS; $_FILES =& $HTTP_POST_FILES; $_ENV =& $HTTP_ENV_VARS; $_SERVER =& $HTTP_SERVER_VARS; } // 전역변수 호환성 체크 END @extract($_GET); @extract($_POST); @extract($_SERVER); $site_config = array(); $member = array(); $board = array(); $group = array(); $raon = array(); if(empty($raon_path)) { $raon_path = ".."; } if(empty($root_path)) { $root_path = ".."; } $raon['path'] = $root_path; unset($raon_path); // 환경설정 파일 include $raon['path']."/_dev/include/config.php"; include $raon['path']."/_dev/include/load.php"; // Class 선언 START $db = new MYSQL(); $FUNC = new BASIC_FUNCTION(); $SECURITY = new SECURITY(); $THUMNAIL = new CLASS_THUMNAIL(); $PAGING = new CLASS_PAGING(); $SOCIAL = new CLASS_SNS(); $MEMCLASS = new CLASS_MEMBER(); $SHOP = new CLASS_SHOP(); if( $config['shop']['shop_use_yn'] == "Y" ) { $SHOP = new CLASS_SHOP(); } if( $bbsCode ) { $ATTACH = new CLASS_ATTACH($bbsCode); } if( $config[shop][shop_use_yn] == "Y" ) { $OPTION = new CLASS_OPTION(); } // Class 선언 END // 보안관련 CHECK START ============================================= $SECURITY->deny_sql_injection($_GET); $SECURITY->deny_sql_injection($_POST); $SECURITY->deny_sql_injection($_COOKIE); $_GET = $SECURITY->xss_clean($_GET); $SECURITY->security_extract($_GET); // 보안관련 CHECK END ================================================ include "$raon[path]/_dev/include/session.php"; //============================================================================== // 공용 변수 //============================================================================== $site_config = $db->selectRow(" select * from {$config[table][config_table]} "); $config['site']['title'] = $site_config['cf_title']; $config['member']['use'] = $site_config['cf_member']; // 문자발송 정보 DB 처리로 수정 $config['sms_id'] = $site_config['sms_id']; $config['sms_pw'] = $site_config['sms_pw']; $config['sms_sender'] = $site_config['sms_sender']; if (!$config['site']['title']) { $config['site']['title'] = $site_config['cf_title']; } // QUERY_STRING $qstr = ""; $qstr = $FUNC->query_string($qstr, "bbsCate", $bbsCate, true); // sca $qstr = $FUNC->query_string($qstr, "searchField", $searchField, true); $qstr = $FUNC->query_string($qstr, "searchText", $searchText, false); $qstr = $FUNC->query_string($qstr, "searchOrder", $searchOrder, false); $qstr = $FUNC->query_string($qstr, "searchOperator", $searchOperator, false); $qstr = $FUNC->query_string($qstr, "searchOperator", $searchOperator, false); $qstr = $FUNC->query_string($qstr, "searchPart", $searchPart, false); $qstr = $FUNC->query_string($qstr, "searchSort", $searchSort, false); $qstr = $FUNC->query_string($qstr, "page", $page, false); if ( !empty($bbsCode) ) { $bbsCode = preg_match("/^[a-zA-Z0-9_]+$/", $bbsCode) ? $bbsCode : ""; } // 첫 로그인 포인트 and 자동 로그인 처리 $member = $FUNC->first_login_point($_SESSION['member_id']); $is_admin = $FUNC->is_admin($member['id']); // 아이피 차단 $FUNC->deny_ip($is_admin, $_SERVER['REMOTE_ADDR']); // 첫방문 쿠키 1년간 저장 if (!$FUNC->get_cookie("ck_first_call")) $FUNC->set_cookie("ck_first_call", $config[server_time], 86400 * 365); if (!$FUNC->get_cookie("ck_first_referer")) $FUNC->set_cookie("ck_first_referer", $_SERVER[HTTP_REFERER], 86400 * 365); // 회원이 아니라면 권한을 방문객 권한으로 함 if (!($member['id'])) { $member['level'] = 1; } else { $member['mb_dir'] = $member['id']; } $write_table = ""; if (!empty($bbsCode)) { $board = $db->selectRow(" select * from {$config[table][board_table]} where bbsCode = '$bbsCode' "); if ($board['bbsCode']) { $gr_id = $board['gr_id']; $write_table = $config['write_prefix'] . $bbsCode; // 게시판 테이블 전체이름 if ($idx) { $write = $db->selectRow(" select * from $write_table where idx = '$idx' "); } else { if( $board['board_use_trackback'] ) { if( preg_match("/tb/", $_SERVER['PATH_INFO'] ) ) { $tracks = preg_split('/\//', $_SERVER['PATH_INFO'], -1, PREG_SPLIT_NO_EMPTY); if( count($tracks) > 0 AND $tracks[0] == "tb" ) { $bbsCode = $tracks[1]; $idx = $tracks[2]; $write = $db->selectRow(" select * from $write_table where idx = '$idx' "); preg_match("/([a-zA-Z0-9\_\/]+\.php)/",$_SERVER['PHP_SELF'],$tma); $tr_url = $config['url'].$tma[1]."?vType=view&idx=$idx"; $FUNC->goto_url($tr_url); } } } } } } if (isset($gr_id)) { $group = $db->query(" select * from {$config[table][group_table]} where gr_id = '$gr_id' "); } // 회원, 비회원 구분 $is_member = $FUNC->is_member($member['id']); $is_guest = $FUNC->is_guest($member['id']); // 스킨경로 $board_skin_path = ''; $adm_board_skin_path = ''; $board_skin_path = $FUNC->get_board_skin_path($board['board_skin']); $adm_board_skin_path = $FUNC->get_admin_board_skin_path($board['board_skin']); // 현재 접속자 $lo_location = addslashes($config['site']['title']); if (!$lo_location) $lo_location = $_SERVER['REQUEST_URI']; $lo_url = $_SERVER['REQUEST_URI']; if (strstr($lo_url, "/_Admin_/") || $is_admin == "super") $lo_url = ""; // 쪽지를 사용하고 회원이면 .... 쪽지 받은게 있는지 체크 if( $config['memo']['use_memo'] == "Y" AND $is_member ) { $FUNC->receive_memo($member['memo_call']); } $begin_time = $FUNC->get_microtime(); if( $device ) { $FUNC->set_session('dtype', $device ); } $user_device = "pc"; $mobileKeyWords = array ('iPhone', 'iPod', 'BlackBerry', 'Android', 'Windows CE', 'Windows CE;', 'LG', 'MOT', 'SAMSUNG', 'SonyEricsson', 'Mobile', 'Symbian', 'Opera Mobi', 'Opera Mini', 'IEmobile'); for($i = 0 ; $i < count($mobileKeyWords) ; $i++) { if(strpos($_SERVER['HTTP_USER_AGENT'],$mobileKeyWords[$i]) == true) { $user_device = "mobile"; continue; } } // 접속 log include_once "{$config[directory][statistics]}/visit_insert.php"; ?> Fatal error: Class 'TEMPLATE' not found in /host/home/jsa0703/html/html/include/head.php on line 2