$value)$Bconfig[$key]=stripslashes($value); elseif($board) error_msg(141,'no_popup=1'); else error_msg(10,'no_popup=1'); if(function_exists('Bconfig_replace')) Bconfig_replace(); // ##### update20110321 ##### // 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 "); $groupkey=$ck_ident.$Bconfig['se1_2']; $you_Member=get_LoginSession($groupkey); // M login $LongCookie=get_LongCookie($groupkey);// Longcookie $TempCookie=get_TempCookie($groupkey);// Shortcookie // ##### update20110321 if($CONFIG['m_auto_login'] and $LongCookie['m_pass'] and $LongCookie['m_id'] and !$you_Member){ $CONFIG['auto_login_append']=1; include $CONFIG['include_path'].'/member/exe/login_act_mobile.php'; } // ##### 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; // ij½¬Àû¿ë ¾ÈÇÔ unset($category); unset($sort); unset($search); } if($command=='openview'){include $CONFIG['include_path'].'/openview/base.php'; exit;} // open view if(!$indexorder and $command!='shop'){ // !index option if($Bconfig['ra4_10']==2) $indexorder=2; // reverse if($Bconfig['se4_11'] and !$sort) $sort=$Bconfig['se4_11']; // sort } $this_url=$CONFIG['board_php'].'?board='.$CONFIG['board']; // ##### update20110321 ##### 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($call)$this_url.='&call='.$call; // ##### update20110321 ##### if($indextype)$this_url.='&indextype='.$indextype; if($indexorder)$this_url.='&indexorder='.$indexorder; if($indexmany)$this_url.='&indexmany='.$indexmany; if($search)$this_url.='&search='.str_replace(" ",'+',str_replace('#','',$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() 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{} ºí·ÏÀº »èÁ¦ÇÒ°Í 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=='shop'){ 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'].'/shop/shop_base.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(function_exists('Mconfig_replace')) Mconfig_replace(); // ##### update20110321 ##### 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'; include $CONFIG['include_path']."/member/exe/$exe.php"; exit; } elseif($command=='public'){ if(!$exe) error_msg(142,'no_popup=1'); 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'; } ?>