$value)$Bconfig[$key]=stripslashes($value); elseif($board) error_msg(141,'no_popup=1'); else error_msg(10,'no_popup=1'); // member $CONFIG['mboard']=$Bconfig['se1_3']; $CONFIG['table_mad']=$db_ident.'3_'.$CONFIG['mboard'].'_ad'; $CONFIG['table_mlist']=$db_ident.'3_'.$CONFIG['mboard'].'_list'; $CONFIG['table_msg']=$db_ident.'3_'.$CONFIG['mboard'].'_msg'; $CONFIG['table_msg_keep']=$db_ident.'3_'.$CONFIG['mboard'].'_msg_keep'; $CONFIG['table_msg_mylist']=$db_ident.'3_'.$CONFIG['mboard'].'_msg_mylist'; $CONFIG['table_login_list']=$db_ident.'3_'.$CONFIG['mboard'].'_loginer'; $CONFIG['table_point']=$db_ident.'3_'.$CONFIG['mboard'].'_point'; $CONFIG['table_sms']=$db_ident.'3_'.$CONFIG['mboard'].'_sms'; $CONFIG['table_note']=$db_ident.'3_'.$CONFIG['mboard'].'_note'; $CONFIG['table_scrap']=$db_ident.'3_'.$CONFIG['mboard'].'_scrap'; $Bconf_h=SQL_select_Fetch(" no=1 ",$CONFIG[table_ad]," tx6_8 as total,tx6_9 as reply,tx6_10 as category,tx6_11 as today,tx6_12 as todaydate,tx6_13 as vtotal,tx6_14 as vtoday,tx6_17 as adm_id,tx5_2 as div_best "); // board admin table: no=1 , Fetch // ta7_30 : 설정추가 정보 // tx6_8 : 전체글등록수# // tx6_9 : 답변글수# // tx6_10 : 카테고리별 등록글수 | 로 구분 // tx6_11 : 오늘글등록수# // tx6_12 : 오늘날짜 // tx6_13 : 전체방문# // tx6_14 : 오늘방문# // tx6_17 : 관리자 권한 아이디 // tx5_2 : division 최고 숫자 $groupkey=$ck_ident.$Bconfig['se1_2']; $you_Member=get_LoginSession($groupkey); // M login $LongCookie=get_LongCookie($groupkey);// Longcookie $TempCookie=get_TempCookie($groupkey);// Shortcookie if($_SESSION['sess2_r_pass'] == $Rconfig['ad_pass'] and $Rconfig['ad_pass']){// root admin $you_Manager=10; if($its_skin_apply) @include $CONFIG['include_path'].'/admin/root/top_skin/view_before.php'; //root admin - skin viewer } elseif($_SESSION['admlog'.$CONFIG['table_ad']]==$Bconfig['tx1_4'] and $Bconfig['tx1_4']) $you_Manager=8;// board admin elseif($you_Member[m_level]>=$Rconfig[admin_bronze] and !$_SESSION[managerEscape]){ if($you_Member[m_level]>=$Rconfig[admin_gold]) $you_Manager=6;// gold elseif($you_Member[m_level]>=$Rconfig[admin_silver]) $you_Manager=5;// silver else $you_Manager=2;// bronze } elseif($you_Member['m_id'] and $Bconf_h['adm_id'] and !$_SESSION[managerEscape]){// board cong keeper foreach(explode(',',$Bconf_h['adm_id']) as $rest=>$admids){ if($admids==$you_Member['m_id']){$you_Manager=4; break;} } } if($is_SearchBot){ // 검색머신 일때 $Bconfig['ra5_8']=3; // 글조회,접속통계 안함 $Bconfig['ck5_20_30']=2; // 본문아래에 목록출력 안함 $Bconfig['se4_2']=0; // 캐쉬적용 안함 unset($category); unset($sort); unset($search); } if($command=='openview'){include $CONFIG['include_path'].'/openview/base.php'; exit;} // open view if(!$indexorder){ // !index option if($Bconfig['ra4_10']==2) $indexorder=2; // reverse if($Bconfig['se4_11'] and !$sort) $sort=$Bconfig['se4_11']; // sort } $this_url="$_SERVER[PHP_SELF]?board=$CONFIG[board]"; if($config)$this_url.='&config='.$config; if($page)$this_url.='&page='.$page; if($category)$this_url.='&category='.$category; if($modify)$this_url.='&modify='.$modify; if($reply)$this_url.='&reply='.$reply; if($sort)$this_url.='&sort='.$sort; if($sortorder)$this_url.='&sortorder='.$sortorder; if($indextype)$this_url.='&indextype='.$indextype; if($indexorder)$this_url.='&indexorder='.$indexorder; if($indexmany)$this_url.='&indexmany='.$indexmany; if($search) $this_url.='&search='.urlencode($search); if($shwhere)$this_url.='&shwhere='.$shwhere; if($next_div_cnt)$this_url.='&next_div_cnt='.$next_div_cnt; //분할검색 step if($div_e)$this_url.='&div_e='.$div_e;// 검색 디비전 종료값 if($everySearch)$this_url.='&everySearch='.$everySearch;// 관리자의 전체검색 if($body_only)$this_url.='&body_only='.$body_only; if($button_view)$this_url.='&button_view='.$button_view; $body_url=$this_url; // 글제목 링크 url if($command)$this_url.='&command='.$command; if($no)$this_url.='&no='.$no; // 현재접속자 체크 $join_group='j_key'.$ck_ident.$Bconfig['se1_2']; // 현재접속자 구룹구분 key $join_time='j_time'.$ck_ident.$Bconfig['se1_2']; // 현재 접속자 최종접속 시간 key $join_del=$CONFIG['this_time']-18000; // 5시간 경과된 접속은 삭제시킴 (18000초:) // 접속자 리스트에 기록 if(!$_SESSION[$join_group]){ //$_SESSION[$join_group] 는 no 를 가지고 있음 if(from_thishome()){ // 이전페이지 주소에 현재호스트 주소 포함일때(자동검색기 등은 제외) if($LongCookie['m_id'] and record_count($CONFIG['table_login_list'],"m_id='$LongCookie[m_id]'")>0){ // 기록이 있으면 접속시간,로그인여부만 갱신 $JoinNum=SQL_select_Fetch(" m_id='$LongCookie[m_id]' ",$CONFIG['table_login_list'],'no'); SQL_query("update $CONFIG[table_login_list] set m_login='2',m_date='$CONFIG[this_time]' where no='$JoinNum[no]' "); SessionReg($join_group,$JoinNum[no]); SessionReg($join_time,$CONFIG['this_time']); } // 회원 로그인한 경우만 기록하게 하려면 본 else{} 블록은 삭제할것 else{ join_list_insert($LongCookie[m_id],"'2','$CONFIG[this_time]','$LongCookie[m_id]','$LongCookie[m_name]','$LongCookie[m_nick]','$LongCookie[myicon]','$LongCookie[myphoto]','$LongCookie[mcharacter]','$_SERVER[REMOTE_ADDR]','$LongCookie[m_mail]'"); } // $join_del 초 이상 경과된 것은 삭제시킴 if(substr($join_del,-2)>94) SQL_query("delete from $CONFIG[table_login_list] where m_date<$join_del"); } } // 재접속 체크시간(1200 초) 이후의 재접속은 접속시간만 갱신 elseif($CONFIG['this_time'] - $_SESSION[$join_time]>1200 and $_SESSION[$join_time]){ $logck=($you_Member['m_id'])?1:2; SQL_query("update $CONFIG[table_login_list] set m_login=$logck,m_date='$CONFIG[this_time]' where no='$_SESSION[$join_group]'"); SessionReg($join_time,$CONFIG['this_time']); } else{} if(!$command or $command=='list'){ LevelCheck('3_1',$this_url,$Bconfig['se3_17'],$Bconfig['se1_3']);//(conf_num,turn_url,conf_action,mboard_name) if(!$_SESSION['v_'.$CONFIG['table_list']] and $Bconfig['ra5_8']!=3) include $CONFIG['include_path'].'/board/function/counter_write.php'; // stat++ include $CONFIG['include_path'].'/board/main.php'; } elseif($command=='body'){ LevelCheck('3_2',$this_url,$Bconfig['se3_17'],$Bconfig['se1_3']); if(you_unable('3_9')) unset($you_Member['myicon']); if(!$_SESSION['v_'.$CONFIG['table_list']] and $Bconfig['ra5_8']!=3) include $CONFIG['include_path'].'/board/function/counter_write.php';// stat++ include $CONFIG['include_path'].'/board/main.php'; } elseif($command=='write'){ $tmpvar=($reply)?'3_4':'3_3'; LevelCheck($tmpvar,$this_url,$Bconfig['se3_17'],$Bconfig['se1_3']); if(you_unable('3_9')) unset($you_Member['myicon']); $Take_value['tbody']=''; if(!$_SESSION['v_'.$CONFIG['table_list']] and $Bconfig['ra5_8']!=3) include $CONFIG['include_path'].'/board/function/counter_write.php';// stat++ include $CONFIG['include_path'].'/board/write/write_form.php'; } elseif($command=='save'){ $tmpvar=($reply)?'3_4':'3_3'; if(!$modify) LevelCheck($tmpvar,"$this_url&command=it_rest",$Bconfig['se3_17'],$Bconfig['se1_3']); include $CONFIG['include_path'].'/board/write/save_base.php'; } elseif($command=='minireply'){ LevelCheck('3_5',"$this_url&command=body",$Bconfig['se3_17'],$Bconfig['se1_3']); include $CONFIG['include_path'].'/board/write/minireply.php'; } elseif($command=='item') include $CONFIG['include_path'].'/board/item.php'; elseif($command=='editsub') include $CONFIG['include_path'].'/board/editsub.php'; elseif($command=='iwindow') include $CONFIG['include_path'].'/board/iwindow.php'; elseif($command=='innerhtml') include $CONFIG['include_path'].'/board/innerhtml.php'; elseif($command=='exp_dialog') include $CONFIG['include_path'].'/board/exp_dialog.php'; elseif($command=='exp_window') include $CONFIG['include_path'].'/board/exp_window.php'; elseif($command=='exp_default') include $CONFIG['include_path'].'/board/exp_default.php'; elseif($command=='other_insert'){ if(!$_SESSION['v_'.$CONFIG['table_list']] and $Bconfig['ra5_8']!=3) include $CONFIG['include_path'].'/board/function/counter_write.php';// stat++ include $CONFIG['include_path'].'/board/other_insert.php'; } elseif($command=='skin_insert'){ if(!$_SESSION['v_'.$CONFIG['table_list']] and $Bconfig['ra5_8']!=3) include $CONFIG['include_path'].'/board/function/counter_write.php';// stat++ include $CONFIG['include_path'].'/board/skin_insert.php'; } elseif($command=='member'){ if(!$Bconfig['se1_3']) error_msg(102,'no_popup=1'); $Mconfig=SQL_select_Fetch(" no=1 ",$CONFIG[table_mad]); foreach($Mconfig as $key=>$value)$Mconfig[$key]=stripslashes($value); if($its_skin_apply and $you_Manager=10 and $mconf2_1) $Mconfig['se2_1']=$mconf2_1;//skin viewer $this_link_from='board'; $this_skin=get_icon_url($Bconfig['se2_1']); if(!$exe)$exe='mypage'; $exe=get_inc_file($exe); include $CONFIG['include_path']."/member/exe/$exe.php"; exit; } elseif($command=='public'){ if(!$exe) error_msg(142,'no_popup=1'); $exe=get_inc_file($exe); include $CONFIG['include_path']."/public_inc/$exe.php"; exit; } else{// index LevelCheck('3_1',$this_url,$Bconfig['se3_17'],$Bconfig['se1_3']); if(!$_SESSION['v_'.$CONFIG['table_list']] and $Bconfig['ra5_8']!=3) include $CONFIG['include_path'].'/board/function/counter_write.php';// stat++ include $CONFIG['include_path'].'/board/main.php'; } ?>