$value)$Mconfig[$key]=stripslashes($value); $groupkey=$ck_ident.$Mconfig[se1_2]; $you_Member=get_LoginSession($groupkey); // M login $LongCookie=get_LongCookie($groupkey);// Longcookie $TempCookie=get_TempCookie($groupkey);// Short cookie 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_mad]] == $Mconfig[tx1_3] and $Mconfig[tx1_3]) $you_Manager=8;// mboard 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($_SESSION['ExjoinMdata']==$CONFIG[mboard].$Mconfig[se1_2] and !$_SESSION[managerEscape]) $you_Manager=4;// mboard cong keeper if($command=='openview'){include $CONFIG[include_path].'/openview/base.php'; exit;}// open view $this_url="$_SERVER[PHP_SELF]?mboard=$CONFIG[mboard]"; if($board)$this_url.='&board='.$board; if($config)$this_url.='&config='.$config; if($command)$this_url.='&command='.$command; if($page)$this_url.='&page='.$page; if($no)$this_url.='&no='.$no; 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($indextype)$this_url.='&indextype='.$indextype; if($indexorder)$this_url.='&indexorder='.$indexorder; if($indexmany)$this_url.='&indexmany='.$indexmany; if($thissearch)$this_url.='&search='.$thissearch; if($shwhere)$this_url.='&shwhere='.$shwhere; if($div_e)$this_url.='&div_e='.$div_e; $join_group='j_key'.$ck_ident.$Mconfig[se1_2]; // 현재접속자 구룹구분 key $join_time='j_time'.$ck_ident.$Mconfig[se1_2]; // 현재 접속자 최종접속 시간 key $join_del=$CONFIG[this_time]-18000; // 5시간 경과된 접속은 삭제시킴 (18000초:) // 접속 리스트에 기록 if(!$_SESSION[$join_group]){ // $_SESSION[$join_group] 는 no 를 가지고 있음 if(from_thishome() and !$is_SearchBot){ // 이전페이지 주소에 현재호스트 주소 포함일때(자동검색기 등은 제외) 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 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{} $this_link_from='member'; if($command=='editsub'){include $CONFIG[include_path].'/board/editsub.php'; exit;}//editor elseif($command=='item'){include $CONFIG[include_path].'/board/item.php';}//item elseif($command=='public'){$exe=get_inc_file($exe); include $CONFIG['include_path']."/public_inc/$exe.php"; exit;}//public else{ $this_skin="$CONFIG[skin_path_m]/$Mconfig[se2_1]"; // m skin URL $exe=get_inc_file($exe); include "$CONFIG[include_path]/member/exe/$exe.php"; } ?>