{"id":1195,"date":"2004-04-22T01:11:10","date_gmt":"2004-04-22T01:11:10","guid":{"rendered":"http:\/\/dev.jblove.net\/?p=1195"},"modified":"2004-04-22T01:11:10","modified_gmt":"2004-04-22T01:11:10","slug":"%eb%84%a4%ec%9d%b4%ed%8a%b8-%ec%9b%b9%eb%94%94%eb%a0%89%ed%86%a0%eb%a6%ac-%ec%88%98%ec%a7%91%ec%97%90%ec%9d%b4%ec%a0%84%ed%8a%b8","status":"publish","type":"post","link":"https:\/\/jblove.net\/?p=1195","title":{"rendered":"\ub124\uc774\ud2b8 \uc6f9\ub514\ub809\ud1a0\ub9ac \uc218\uc9d1\uc5d0\uc774\uc804\ud2b8"},"content":{"rendered":"<p>\nkmsweb<\/p>\n<p>\uc608\uc804\uc5d0 \ud504\ub85c\ubaa8\uc158\uc5c5\uccb4\uc5d0\uc11c \uac01 \uac80\uc0c9\uc0ac\uc774\ud2b8\uc758 \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc788\ub294 \uc0ac\uc774\ud2b8\ub97c \uc870\uc0ac\ud558\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \ub9cc\ub4e4\ub2e4\uac00 \uc624\ub298 \uba87\uc2dc\uac04 \uc9ec\uc744\ub0b4\uc11c \ud55c\ubc88\ub9cc\ub4e4\uc5b4 \ubd24\uc2b5\ub2c8\ub2e4..^^;<br \/>\n\uc74c&#8230;\uae30\ub2a5\uc740..<br \/>\n\ub124\uc774\ud2b8\uc758 \ub514\ub809\ud1a0\ub9ac\uc640 \ud574\ub2f9 \ub514\ub809\ud1a0\ub9ac\uc548\uc758 \uc0ac\uc774\ud2b8\ub97c \uc790\ub3d9\uc73c\ub85c \ubabd\ub545 \ub514\ube44\uc5d0 \uc800\uc7a5\ud558\ub294\uac81\ub2c8\ub2e4.<\/p>\n<p>\ub85c\uc9c1\uc740 \uc0dd\uac01\ub098\ub294\ub300\ub85c \uc9dc\uc9d1\uae30 \ud558\ub2e4\ubcf4\ub2c8 \uc800\uc800\ubd84\ud55c \uacf3\ub3c4 \uc788\uace0 \ubd88\ud544\uc694\ud55c \uc18c\uc2a4\ub3c4 \uc788\uc744\uac70\uc5d0\uc694&#8230;\uc81c\uc791\uc2dc\uac04 2\uc2dc\uac04\uc774\ub2e4\ubcf4\ub2c8;;<br \/>\n\uc774\ubd80\ubd84\uc740 \ubcf4\uc2dc\uace0 \uc218\uc815\ud558\uc138\uc694..^^;<\/p>\n<p>\ub9c1\ud06c\uc640 \uc778\uae30\uc0ac\uc774\ud2b8\ub294 \ub4f1\ub85d\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<br \/>\n\ub124\uc774\ud2b8\uc758 \uc790\ub8cc\ub97c \ubaa8\ub450 \uac00\uc838\uc624\ub294 \uc2dc\uac04\uc740 \uccb4\ud06c\ud558\uc9c0 \ubabb\ud568..\u3161\u3161;;<\/p>\n<p>\ub300\ucda9 \ub85c\uc9c1\uc740&#8230;<br \/>\n\ub300\ubd84\ub958\ub97c \uc124\uc815\ud6c4 \ud504\ub85c\uadf8\ub7a8\uc744 \ub3cc\ub9ac\uba74 \uc81c\uc77c \ub9c8\uc9c1\ub9c9 \ub514\ub809\ud1a0\ub9ac\ubd80\ud130 \uac80\uc0c9\uc744 \ud569\ub2c8\ub2e4.<br \/>\n\uac80\uc0c9\ub41c \ud574\ub2f9 \ub514\ub809\ud1a0\ub9ac\uc640 \uc0ac\uc774\ud2b8\ub97c \ub514\ube44\uc5d0 \uc911\ubcf5\uc5c6\uc774 \uc800\uc7a5\uc744\ud558\uace0<br \/>\n\ud558\uc704 \ub514\ub809\ud1a0\ub9ac\uac00 \uc788\uc73c\uba74 \uc81c\uc77c\ub9c8\uc9c0\ub9c9 \ud558\uc704 \ub514\ub809\ud1a0\ub9ac\ub97c \uac80\uc0c9\ud569\ub2c8\ub2e4.<br \/>\n\uc774\ub7f0\uc2dd\uc73c\ub85c \uacc4\uc18d \uac80\uc0c9\uc744 \ud558\uba74\uc11c \ud558\uc704 \ub514\ub809\ud1a0\ub9ac\uac00 \uc5c6\uc73c\uba74 \ubc29\ubb38\ud14c\uc774\ube14\uc5d0 \uc800\uc7a5\uc744 \ud558\uace0 \uc0c1\uc704 \ub514\ub809\ud1a0\ub9ac\ub85c \uc774\ub3d9\ud558\uace0<br \/>\n\uadf8\uc804\uc5d0 \ubc29\ubb38\ud588\ub358 \ud558\uc704 \ub514\ub809\ud1a0\ub9ac\ub294 \ubaa9\ub85d\uc5d0\uc11c \uc81c\uc678(\uc0ac\ub77c\uc9d0)\ub418\uace0 \ub2e4\uc2dc \ub9c8\uc9c0\ub9c9 \ud558\uc704\ub514\ub809\ud1a0\ub9ac\ub97c \uac80\uc0c9 \ud558\ub294 \ubc29\ubc95\uc73c\ub85c \ubaa8\ub4e0 \ub514\ub809\ud1a0\ub9ac\ub97c \ubc29\ubb38\ud558\ub294 \ub85c\uc9c1\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc124\uba85\uc774 \uc774\ud574 \ub418\ub098 \ubaa8\ub974\uaca0\ub124\uc694..^^;<br \/>\n\uc544\ubb34\ud2bc \uc720\uc6a9\ud560\uc9c0\ub294 \ubaa8\ub974\uaca0\uc9c0\ub9cc&#8230;\uc77c\ub2e8 \uc62c\ub9bd\ub2c8\ub2e4..<\/p>\n<p>\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=euc-kr\"><\/p>\n<style>\na:link, a:visited {font-family:\uad74\ub9bc;font-size:9pt;color:#494949;text-decoration:none;}<br \/>\na:active {font-family:\uad74\ub9bc;font-size:9pt;color:#494949;text-decoration:none;}<br \/>\na:hover {font-family:\uad74\ub9bc;font-size:9pt;color:#FF5A00;text-decoration:underline; }<br \/>\ntd {font-family:\uad74\ub9bc;font-size:9pt;color:#494949;}<br \/>\nbody {font-family:\uad74\ub9bc;font-size:9pt;color:#494949;}<br \/>\n<\/style>\n<p>\n<?<br \/>\n\/\/\ub514\ube44\uc815\ubcf4<br \/>\n$host=&#8221;localhost&#8221;;<br \/>\n$user=&#8221;&#8221;;<br \/>\n$pwd=&#8221;&#8221;;<br \/>\n$dbname=&#8221;nate&#8221;;<br \/>\n$cat_table=&#8221;category&#8221;; \/\/\ub514\ub809\ud1a0\ub9ac \ub4f1\ub85d\ud14c\uc774\ube14<br \/>\n$site_table=&#8221;site&#8221;; \/\/\uc0ac\uc774\ud2b8 \ub4f1\ub85d\ud14c\uc774\ube14<br \/>\n$visit_table=&#8221;cat_vis&#8221;; \/\/\ub124\uc774\ud2b8 \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc911\ubcf5\ubc29\ubb38\uc744 \ud53c\ud558\uae30 \uc704\ud55c \ud14c\uc774\ube14<br \/>\n$site_name=&#8221;&#8221;;<\/p>\n<p>\/\/\ub300\ubd84\ub958 \uc124\uc815<br \/>\n\/\/\ud574\ub2f9 \ub300\ubd84\ub958\ub294 \ubc18\ub4dc\uc2dc $cat_table \ud14c\uc774\ube14\uc5d0 \ub4f1\ub85d\uc774 \ub418\uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4.<br \/>\n$cat[]=&#8221;\ub274\uc2a4 &#038; \ubbf8\ub514\uc5b4&#8221;;<br \/>\n$cat_dir[]=&#8221;News_Media\/&#8221;;<br \/>\n$cat[]=&#8221;\uc608\uc220 &#038; \uc5d4\ud130\ud14c\uc778\uba3c\ud2b8&#8221;;<br \/>\n$cat_dir[]=&#8221;Arts_entertainment\/&#8221;;<br \/>\n$cat[]=&#8221;\ubb38\ud654 &#038; \uc0ac\ud68c&#8221;;<br \/>\n$cat_dir[]=&#8221;Culture_society\/&#8221;;<br \/>\n$cat[]=&#8221;\ucef4\ud4e8\ud130 &#038; \uc778\ud130\ub137&#8221;;<br \/>\n$cat_dir[]=&#8221;Computer\/&#8221;;<br \/>\n$cat[]=&#8221;\ub808\ud06c\ub808\uc774\uc158 &#038; \uc2a4\ud3ec\uce20&#8221;;<br \/>\n$cat_dir[]=&#8221;Recreation\/&#8221;;<br \/>\n$cat[]=&#8221;\uac74\uac15 &#038; \uc758\ud559&#8221;;<br \/>\n$cat_dir[]=&#8221;Health_medicine\/&#8221;;<br \/>\n$cat[]=&#8221;\uad50\uc721 &#038; \ucc38\uace0\uc790\ub8cc&#8221;;<br \/>\n$cat_dir[]=&#8221;Education_Reference\/&#8221;;<br \/>\n$cat[]=&#8221;\uacfc\ud559 &#038; \ud559\ubb38&#8221;;<br \/>\n$cat_dir[]=&#8221;Technology_science\/&#8221;;<br \/>\n$cat[]=&#8221;\ube44\uc988\ub2c8\uc2a4 &#038; \uacbd\uc81c&#8221;;<br \/>\n$cat_dir[]=&#8221;Business_Economics\/&#8221;;<br \/>\n$cat[]=&#8221;\ucde8\uc5c5\uc815\ubcf4&#8221;;<br \/>\n$cat_dir[]=&#8221;Job_info\/&#8221;;<br \/>\n$cat[]=&#8221;\uc1fc\ud551&#8221;;<br \/>\n$cat_dir[]=&#8221;Shopping\/&#8221;;<br \/>\n$cat[]=&#8221;\uc0dd\ud65c &#038; \uac00\uc815&#8221;;<br \/>\n$cat_dir[]=&#8221;Life_Woman\/&#8221;;<\/p>\n<p>\n\/\/\uc218\uc815 \ubd88\uac00<br \/>\n$dbcon=mysql_connect($host,$user,$pwd);<br \/>\nmysql_select_db($dbname,$dbcon);<br \/>\n$query=&#8221;&#8221;.$dir;<br \/>\n$up_dir=eregi_replace(&#8216;directory\/&#8217;,&#8221;,$query);<br \/>\n$sql=&#8221;select * from category where dir=&#8217;$up_dir&#8217; &#038;&#038; link=0&#8243;;<br \/>\necho&#8221;$sql <br \/>&#8220;;<br \/>\n$result=mysql_query($sql);<br \/>\n$view=mysql_fetch_array($result);<br \/>\necho&#8221;\uc0c1\uc704 \ub514\ub809\ud1a0\ub9ac : $up_dir \ucf54\ub4dc\uac12 : $view[no] <Br>&#8220;;<br \/>\n$fp = fsockopen (&#8220;search.nate.com&#8221;, 80, $errno, $errstr, 30); <br \/>\nfputs ($fp, &#8220;GET \/$query HTTP\/1.0<br \/>\nHost: search.nate.com<\/p>\n<p>&#8220;); <br \/>\nwhile (!feof($fp)) { <br \/>\n        $list .= fgets($fp,128); <br \/>\n} <br \/>\nfclose ($fp);<\/p>\n<p>\nif(!$dir){<br \/>\n        $pfile = &#8220;nate_r.php?dir=directory\/&#8221;;<br \/>\n        for($i=0;$i<count($cat);$i++){<br \/>\n                $sql=&#8221;select * from cat_vis where dir=&#8217;$cat_dir[$i]'&#8221;;<br \/>\n                $rs=mysql_query($sql);<br \/>\n                $rw=mysql_num_rows($rs);<br \/>\n                if(!$rw){<br \/>\n                        echo&#8221;<a href=\".$pfile.$cat_dir[$i].\">&#8220;.$cat[$i].&#8221;<\/a><br \/>&#8220;;<br \/>\n                        $dir_up=$pfile.$cat_dir[$i];<br \/>\n                        $in_dir=$cat_dir[$i];<br \/>\n                }<br \/>\n        }<br \/>\n        echo&#8221;$dir_up&#8221;;<br \/>\n        $sql=&#8221;insert into $visit_table values(&#8221;,&#8217;$in_dir&#8217;)&#8221;;<br \/>\n        mysql_query($sql);<br \/>\n        echo&#8221;<script>location.href='$dir_up';<\/script>&#8220;;<br \/>\n}<br \/>\nif($dir){<br \/>\n        echo&#8221;<br \/>&#8212;\ub514\ub809\ud1a0\ub9ac \ucd94\ucd9c&#8212;-<br \/>&#8220;;<br \/>\n        if(eregi(&#8220;<!--\ud574\ub2f9 \ub514\ub809\ud1a0\ub9ac \ucd9c\ub825 \uc2dc\uc791-->&#8220;,$list)){<br \/>\n                $list2 = eregi_replace(&#8216;^.+<!--\ud574\ub2f9 \ub514\ub809\ud1a0\ub9ac \ucd9c\ub825 \uc2dc\uc791-->&#8216;,&#8221;,$list);<br \/>\n                $list2 = eregi_replace(&#8216;<!--\ud574\ub2f9 \ub514\ub809\ud1a0\ub9ac \ucd9c\ub825 \ub05d-->.+$&#8217;,&#8221;,$list2);<br \/>\n                $list2 = eregi_replace(&#8216;<a href=','<a href=http:\/\/'.$site_name.'\/nate_robot.php?dir='.$dir,$list2);<br \/>\n                preg_match_all(&#8220;\/<a href=(.+?)<\/a>\/is&#8221;,$list2,$str2);<br \/>\n                for ($i=0;$i<count($str2[1]);$i++) {<br \/>\n                        $d_name=&#8221;&#8221;;<br \/>\n                        $link_t=&#8221;&#8221;;<br \/>\n                        $list2 = $str2[1][$i];<br \/>\n                        $list2 = eregi_replace(&#8216;class=LU-10LU>&#8217;,&#8221;,$list2);<br \/>\n                        $list2 = trim($list2);<br \/>\n                        $link_t=explode(&#8221; &#8220;,$list2);<br \/>\n                        $directory=eregi_replace(&#8216;http:\/\/&#8217;.$site_name.&#8217;\/nate_robot.php?dir=directory\/&#8217;,&#8221;,$link_t[0]);<br \/>\n                        for($j=0;$j<count($link_t);$j++){<br \/>\n                                $pi=$j+1;<br \/>\n                                $d_name.=&#8221; &#8220;.$link_t[$pi];<br \/>\n                        }<br \/>\n                        $d_name=trim($d_name);<br \/>\n                        $link_dir=&#8221;<a href=http:\/\/\".$site_name.\"\/nate_robot.php?dir=directory\/\".$directory.\">&#8220;.$d_name.&#8221;<\/a>&#8220;;<br \/>\n                        \/\/\ub514\ub809\ud1a0\ub9ac \uc911\ubcf5 \uac80\uc0ac \uc2dc\uc791<br \/>\n                        $sql=&#8221;select * from $cat_table where dir=&#8217;$directory'&#8221;;<br \/>\n                        $result=mysql_query($sql);<br \/>\n                        $row=mysql_num_rows($result);<br \/>\n                        if($row){<br \/>\n                                $status=&#8221;<font color='red'>\uc911\ubcf5<\/font>&#8220;;<br \/>\n                                $st=&#8221;1&#8243;;<br \/>\n                        }else{<br \/>\n                                $status=&#8221;<font color='blue'>\uc2e0\uaddc<\/font>&#8220;;<br \/>\n                                $st=&#8221;2&#8243;;<br \/>\n                        }<br \/>\n                        \/\/\ub514\ub809\ud1a0\ub9ac \uc911\ubcf5\uac80\uc0ac \ub05d<br \/>\n                        \/\/\ub9c1\ud06c \ub514\ub809\ud1a0\ub9ac \ucc98\ub9ac \uc2dc\uc791<br \/>\n                        $link_tmp=explode(&#8220;..&#8221;,$directory);<br \/>\n                        $link_cnt=count($link_tmp);<br \/>\n                        if($link_cnt>1){<br \/>\n                                $link_st=&#8221;\ub9c1\ud06c&#8221;;<br \/>\n                                $dir_cnt=$link_cnt-1;<br \/>\n                                $directory=$link_tmp[$dir_cnt];<br \/>\n                                $directory=eregi_replace(&#8216;^\/&#8217;,&#8221;,$directory);<br \/>\n                                if(!$mv_dir) $mv_dir=$up_dir;<br \/>\n                        }else{<br \/>\n                                $link_st=&#8221;\uc815\uc0c1&#8221;;<br \/>\n                                $now=time();<br \/>\n                                $level_cnt=explode(&#8220;\/&#8221;,$directory);<br \/>\n                                $level_cnt=count($level_cnt)-2;<br \/>\n                                if($st==&#8221;2&#8243;){<br \/>\n                                        $lst=&#8221;y&#8221;;<br \/>\n                                        $sql=&#8221;insert into $cat_table(parent,level,pname,dir,rno,regdate,link) values(&#8216;$view[no]&#8217;,&#8217;$level_cnt&#8217;,&#8217;$d_name&#8217;,&#8217;$directory&#8217;,0,&#8217;$now&#8217;,0)&#8221;;<br \/>\n                                        mysql_query($sql);<br \/>\n                                        echo&#8221;$sql<br \/>&#8220;;<br \/>\n                                }<br \/>\n                                \/\/\ub9c1\ud06c \ub514\ub809\ud1a0\ub9ac \ucc98\ub9ac \ub05d<br \/>\n                                $sql=&#8221;select * from $visit_table where dir=&#8217;$directory'&#8221;;<br \/>\n                                $rs=mysql_query($sql);<br \/>\n                                $rw=mysql_num_rows($rs);<br \/>\n                                if(!$rw){<br \/>\n                                        $dir_chk=&#8221;yes&#8221;;<br \/>\n                                        $mv_dir=$directory;<br \/>\n                                        echo&#8221;[<b>$link_dir<\/b> &#8211; $link_st($status)] &#8212;&#8212; $d_name &#8211; $directory <br \/>&#8220;;<br \/>\n                                }<br \/>\n                        }<br \/>\n                }<br \/>\n        }<br \/>\n        if(eregi(&#8220;<!--\ud574\ub2f9 \uc6f9\ud398\uc774\uc9c0\ub97c \ucd9c\ub825 \uc2dc\uc791-->&#8220;,$list)){<br \/>\n                echo&#8221;<br \/>&#8212;\uc6f9\ud398\uc774\uc9c0 \ucd94\ucd9c&#8212;-<br \/>&#8220;;<br \/>\n                $list3 = eregi_replace(&#8216;^.+<!--\ud574\ub2f9 \uc6f9\ud398\uc774\uc9c0\ub97c \ucd9c\ub825 \uc2dc\uc791-->&#8216;,&#8221;,$list);<br \/>\n                $list3 = eregi_replace(&#8216;<!--\ud574\ub2f9 \uc6f9\ud398\uc774\uc9c0\ub97c \ucd9c\ub825 \ub05d-->.+$&#8217;,&#8221;,$list3);<br \/>\n                preg_match_all(&#8220;\/<\/p>\n<li>(.+?)<\/li>\n<p>\/is&#8221;,$list3,$str3);<br \/>\n                for ($i=0;$i<count($str3[1]);$i++) {<br \/>\n                        $page_name=&#8221;&#8221;;<br \/>\n                        $page_tmp=&#8221;&#8221;;<br \/>\n                        $d_name=&#8221;&#8221;;<br \/>\n                        $list3 = $str3[1][$i];<br \/>\n                        $list3=eregi_replace(&#8216;<\/p>\n<p>&#8216;,&#8221;,$list3);<br \/>\n                        $list_tmp=explode(&#8220;<br \/>&#8220;,$list3); \/\/ \uc2e4\uc81c \ud544\uc694\ud55c \uc790\ub8cc \ubd84\ub9ac<br \/>\n                        if(eregi(&#8220;http:\/\/&#8221;,$list_tmp[0])){<br \/>\n                                $tnc=explode(&#8220;<\/a>&#8220;,$list_tmp[0]); \/\/\uc81c\ubaa9\uacfc \ub0b4\uc6a9 \ubd84\ub9ac<br \/>\n                                $tnu_tmp=eregi_replace(&#8216;<a href=','',$tnc[0]);<br \/>\n                                $tnu_tmp=eregi_replace(&#8216;target=.+class=LU-10LU>&#8217;,&#8221;,$tnu_tmp);<br \/>\n                                $tnu_tmp = eregi_replace(&#8216;&#8221;&#8216;,&#8221;,$tnu_tmp);<br \/>\n                                $tnu_tmp = trim($tnu_tmp);<br \/>\n                                $page_tmp=explode(&#8221; &#8220;,$tnu_tmp);<br \/>\n                                $page_cnt=count($page_tmp);<br \/>\n                                for($j=0;$j<count($page_tmp);$j++){<br \/>\n                                        $pi=$j+1;<br \/>\n                                        $page_name.=&#8221; &#8220;.$page_tmp[$pi];<br \/>\n                                }<br \/>\n                                $page_name=trim($page_name);<br \/>\n                                $page_name=ereg_replace(&#8220;<([^<]+)>&#8220;,&#8221;&#8221;,$page_name);<br \/>\n                                $page_name=ereg_replace(&#8221;&nbsp;&#8220;,&#8221;&#8221;,$page_name);<br \/>\n                                $page_url=$page_tmp[0];<br \/>\n                                $content=$tnc[1];<br \/>\n                                $content=ereg_replace(&#8220;<([^<]+)>&#8220;,&#8221;&#8221;,$content);<br \/>\n                                $content=ereg_replace(&#8221;&nbsp;&#8211;&nbsp;&#8220;,&#8221;&#8221;,$content);<br \/>\n                                $content=ereg_replace(&#8221;&nbsp;&#8220;,&#8221;&#8221;,$content);<br \/>\n                                $sql=&#8221;select * from $site_table where siteUrl=&#8217;$page_url'&#8221;;<br \/>\n                                $rs=mysql_query($sql);<br \/>\n                                $rw=mysql_num_rows($rs);<br \/>\n                                if(!$rw){<br \/>\n                                        $sql=&#8221;insert into $site_table(sitename,siteUrl,memo,regdate,pno,open) values(&#8216;$page_name&#8217;,&#8217;$page_url&#8217;,&#8217;$content&#8217;,&#8217;$now&#8217;,&#8217;$view[no]&#8217;,&#8217;Y&#8217;)&#8221;;<br \/>\n                                        mysql_query($sql);<br \/>\n                                        echo&#8221;$sql<Br>&#8220;;<br \/>\n                                }<br \/>\n                                echo&#8221;$page_name $content &#8211; $page_url<br \/>&#8220;;<br \/>\n                        }else{<br \/>\n                                $list3 = eregi_replace(&#8216;<a href=','',$list_tmp[0]);<br \/>\n                                $list3 = eregi_replace(&#8216;class=LU-10LU>&#8217;,&#8221;,$list3);<br \/>\n                                $list3 = eregi_replace(&#8216;<\/a>.+$&#8217;,&#8221;,$list3);<br \/>\n                                $list3 = trim($list3);<\/p>\n<p>                                $dir_tmp=explode(&#8221; &#8220;,$list3);<br \/>\n                                $ch_dir=eregi_replace(&#8216;directory\/&#8217;,&#8221;,$dir);<br \/>\n                                $directory=$ch_dir.$dir_tmp[0];<br \/>\n                                for($j=0;$j<count($dir_tmp);$j++){<br \/>\n                                        $pi=$j+1;<br \/>\n                                        $d_name.=&#8221; &#8220;.$dir_tmp[$pi];<br \/>\n                                }<br \/>\n                                $d_name=trim($d_name);<br \/>\n                                $link_dir=&#8221;<a href=http:\/\/\".$site_name.\"\/nate_robot.php?dir=directory\/\".$directory.\">&#8220;.$d_name.&#8221;<\/a>&#8220;;<br \/>\n                                \/\/\ub514\ub809\ud1a0\ub9ac \uc911\ubcf5 \uac80\uc0ac \uc2dc\uc791<br \/>\n                                $sql=&#8221;select * from $cat_table where dir=&#8217;$directory'&#8221;;<br \/>\n                                $result=mysql_query($sql);<br \/>\n                                $row=mysql_num_rows($result);<br \/>\n                                if($row){<br \/>\n                                        $status=&#8221;<font color='red'>\uc911\ubcf5<\/font>&#8220;;<br \/>\n                                        $st=&#8221;1&#8243;;<br \/>\n                                }else{<br \/>\n                                        $status=&#8221;<font color='blue'>\uc2e0\uaddc<\/font>&#8220;;<br \/>\n                                        $st=&#8221;2&#8243;;<br \/>\n                                }<br \/>\n                                \/\/\ub514\ub809\ud1a0\ub9ac \uc911\ubcf5\uac80\uc0ac \ub05d<br \/>\n                                \/\/\ub9c1\ud06c \ub514\ub809\ud1a0\ub9ac \ucc98\ub9ac \uc2dc\uc791<br \/>\n                                $link_tmp=explode(&#8220;..&#8221;,$directory);<br \/>\n                                $link_cnt=count($link_tmp);<br \/>\n                                if($link_cnt>1){<br \/>\n                                        $link_st=&#8221;\ub9c1\ud06c&#8221;;<br \/>\n                                        $dir_cnt=$link_cnt-2;<br \/>\n                                        $directory=$link_tmp[$dir_cnt];<br \/>\n                                        $directory=eregi_replace(&#8216;^\/&#8217;,&#8221;,$directory);<br \/>\n                                        if(!$mv_dir) $mv_dir=$up_dir;<br \/>\n                                }else{<br \/>\n                                        $link_st=&#8221;\uc815\uc0c1&#8221;;<br \/>\n                                        $now=time();<br \/>\n                                        $level_cnt=explode(&#8220;\/&#8221;,$directory);<br \/>\n                                        $level_cnt=count($level_cnt)-1;<br \/>\n                                        if($st==&#8221;2&#8243;){<br \/>\n                                                $lst=&#8221;y&#8221;;<br \/>\n                                                $sql=&#8221;insert into $cat_table(parent,level,pname,dir,rno,regdate,link) values(&#8216;$view[no]&#8217;,&#8217;$level_cnt&#8217;,&#8217;$d_name&#8217;,&#8217;$directory&#8217;,0,&#8217;$now&#8217;,0)&#8221;;<br \/>\n                                                mysql_query($sql);<br \/>\n                                                echo&#8221;$sql<br \/>&#8220;;<br \/>\n                                        }<br \/>\n                                        \/\/\ub9c1\ud06c \ub514\ub809\ud1a0\ub9ac \ucc98\ub9ac \ub05d<br \/>\n                                        $sql=&#8221;select * from $visit_table where dir=&#8217;$directory'&#8221;;<br \/>\n                                        $rs=mysql_query($sql);<br \/>\n                                        $rw=mysql_num_rows($rs);<br \/>\n                                        if(!$rw){<br \/>\n                                                $dir_chk=&#8221;yes&#8221;;<br \/>\n                                                $mv_dir=$directory;<br \/>\n                                                echo&#8221;[<b>$link_dir<\/b> &#8211; $link_st($status)] &#8212;&#8212; $d_name &#8211; $directory <br \/>&#8220;;<br \/>\n                                        }<br \/>\n                                }<br \/>\n                        }<br \/>\n                }<br \/>\n        }<br \/>\n        if(!$dir_chk){<br \/>\n                $dir_tt=explode(&#8220;\/&#8221;,$up_dir);<br \/>\n                $dir_tt_cnt=count($dir_tt)-2;<br \/>\n                for($i=0;$i<count($dir_tt)-2;$i++){<br \/>\n                        $dir_up=$dir_up.&#8221;\/&#8221;.$dir_tt[$i];<br \/>\n                }<br \/>\n                if($dir_tt_cnt)        $dir_up=&#8221;nate_robot.php?dir=directory&#8221;.$dir_up.&#8221;\/&#8221;;<br \/>\n                else $dir_up=&#8221;nate_robot.php&#8221;;<br \/>\n                $sql=&#8221;insert into $visit_table values(&#8221;,&#8217;$up_dir&#8217;)&#8221;;<br \/>\n                mysql_query($sql);<br \/>\n                echo&#8221;<\/p>\n<p><Br>\ub9c8\uc9c0\ub9c9 \uce74\ud14c\uace0\ub9ac \ubc29\ubb38 : $dir_up&#8221;;<br \/>\n                echo&#8221;<meta http-equiv=\"Refresh\" content=\"1;url=$dir_up\">&#8220;;<br \/>\n        }else{<br \/>\n                $dir_up=&#8221;nate_robot.php?dir=directory\/&#8221;.$mv_dir;<br \/>\n                echo&#8221;$dir_up&#8221;;<br \/>\n                echo&#8221;<meta http-equiv=\"Refresh\" content=\"1;url=$dir_up\">&#8220;;<br \/>\n        }<br \/>\n}<br \/>\n?> <\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>kmsweb \uc608\uc804\uc5d0 \ud504\ub85c\ubaa8\uc158\uc5c5\uccb4\uc5d0\uc11c \uac01 \uac80\uc0c9\uc0ac\uc774\ud2b8\uc758 \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc788\ub294 \uc0ac\uc774\ud2b8\ub97c \uc870\uc0ac\ud558\ub294 \ud504\ub85c\uadf8\ub7a8\uc744 \ub9cc\ub4e4\ub2e4\uac00 \uc624\ub298 \uba87\uc2dc\uac04 \uc9ec\uc744\ub0b4\uc11c \ud55c\ubc88\ub9cc\ub4e4\uc5b4 \ubd24\uc2b5\ub2c8\ub2e4..^^; \uc74c&#8230;\uae30\ub2a5\uc740.. \ub124\uc774\ud2b8\uc758 \ub514\ub809\ud1a0\ub9ac\uc640 \ud574\ub2f9 \ub514\ub809\ud1a0\ub9ac\uc548\uc758 \uc0ac\uc774\ud2b8\ub97c \uc790\ub3d9\uc73c\ub85c \ubabd\ub545 \ub514\ube44\uc5d0 \uc800\uc7a5\ud558\ub294\uac81\ub2c8\ub2e4. \ub85c\uc9c1\uc740 \uc0dd\uac01\ub098\ub294\ub300\ub85c \uc9dc\uc9d1\uae30 \ud558\ub2e4\ubcf4\ub2c8 \uc800\uc800\ubd84\ud55c \uacf3\ub3c4 \uc788\uace0 \ubd88\ud544\uc694\ud55c \uc18c\uc2a4\ub3c4 \uc788\uc744\uac70\uc5d0\uc694&#8230;\uc81c\uc791\uc2dc\uac04 2\uc2dc\uac04\uc774\ub2e4\ubcf4\ub2c8;; \uc774\ubd80\ubd84\uc740 \ubcf4\uc2dc\uace0 \uc218\uc815\ud558\uc138\uc694..^^; \ub9c1\ud06c\uc640 \uc778\uae30\uc0ac\uc774\ud2b8\ub294 \ub4f1\ub85d\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \ub124\uc774\ud2b8\uc758 \uc790\ub8cc\ub97c \ubaa8\ub450 \uac00\uc838\uc624\ub294 \uc2dc\uac04\uc740 \uccb4\ud06c\ud558\uc9c0 \ubabb\ud568..\u3161\u3161;; \ub300\ucda9 \ub85c\uc9c1\uc740&#8230; \ub300\ubd84\ub958\ub97c \uc124\uc815\ud6c4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[51],"tags":[],"class_list":["post-1195","post","type-post","status-publish","format-standard","hentry","category-papa-php"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/1195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1195"}],"version-history":[{"count":0,"href":"https:\/\/jblove.net\/index.php?rest_route=\/wp\/v2\/posts\/1195\/revisions"}],"wp:attachment":[{"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jblove.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}