묻고답하기

http://lowvoice.netcci.net/main.html카테고리추출하려고 하는데 어떻게 해야할지 모르겠네요
게시판에서 카테고리 사용후 그 이름을 추출하려고 하는데
우선 전 제로보드 사용했구요 article.php라는 소스 이용해서 추출하려는데 이렇게 저렇게 해봐도 안되네요
article.php소스의 내용은 다음과 같고

<?
/***************************************************************
*                                여러게시판에서 최근 게시물 뽑기(4.0 pl2)           *
*                                최종 수정일 (2002.10.23)                                                   *
*      문의는 http://altair.na.fm(sum.epulser.net)             *
*        또는 이멜로 해주세요..                                                                           *
*                thanks :단오님,주하니님                                *
*       email: caniun@dreamwiz.com                             *
***************************************************************/
global $_head_php_excuted,$_zb_lib_included,$HTTP_SESSION_VARS;
global $_outlogin_include, $table_name, $num, $choice;

        /*******************************************************
         * 최근목록 보여주기를 위한 함수 지정(outlogin.php파일 수정...)
         * 여러게시판의 게시물을 정리하기 위해 수정을 가했습니다.
         * 모든 변수나 함수,db테이블은 제로보드것을 그대로 사용하게 했습니다.
         ******************************************************/

        // outlogin.php 파일이 include 되었는지를 체크
        if(!$_outlogin_include) {
                $_outlogin_include = TRUE;
        } else {
                return FALSE;
        }

        // 처음에 include 되었을때 필요한 파일을 include 하는 부분
        if(!$_head_php_excuted&&!$_zb_lib_included) {

                // 제로보드 디렉토리 인지 체크
                if(!file_exists($_zb_path."lib.php")) {
                        echo "제로보드 디렉토리가 아닙니다";
                        return;
                }

                // _head.php 읽음
                @include $_zb_path."_head.php";
        }


                        // 여러게시판에서 여러방식으로 글 뽑는 소스
                function print_tmp($skinname, $choice="reg_date", $num=5, $textlen=10, $memolen=100,  $datetype="y/m/d") {
                global $_zb_path, $_zb_url, $connect, $t_board, $admin_table; // dex님 팁 참고해서 memolen 추가.
                table_make("tmp",$choice,$num);
                $str = zReadFile($_zb_path."latest_skin/".$skinname."/main.html");
                if(!$str) {
                        echo "지정하신 $skinname 이라는 최근목록 스킨이 존재하지 않습니다<br>";
                        return;
                }




                $result = mysql_query("select * from zetyx_tmp where is_secret=0 order by $choice desc limit $num", $connect) or die(mysql_error());
                $tmpStr = explode("[loop]",$str);
                $header = $tmpStr[0];
                $tmpStr2 = explode("[/loop]",$tmpStr[1]);
                $loop = $tmpStr2[0];
                $footer = $tmpStr2[1];

                $main_data = "";
                while($data=mysql_fetch_array($result)) {
                        $xa = stripslashes($data[xa]);
                        $x = stripslashes($data[x]);
                        $xb = stripslashes($data[xb]);
                        $xc = stripslashes($data[xc]);
                        $xd = stripslashes($data[xd]);
                        $xe = stripslashes($data[xe]);
                        $xf = stripslashes($data[xf]);
                        $xg = stripslashes($data[xg]);
                        $xh = stripslashes($data[xh]);
                        $xi = stripslashes($data[xi]);
                        $xj = stripslashes($data[xj]);
                        $xk = stripslashes($data[xk]);
                        $xl = stripslashes($data[xl]);

                        $subject = cut_str(stripslashes($data[subject]),$textlen)."</font></b>";
                        $memo = stripslashes($data[memo]); // 헤드라인 탑. memo 추가. 태그 살려줌.
                        if($data[use_html]<2) $memo = nl2br($memo);
                        else $memo = strip_tags($memo);
                        $memolenx = cut_str(stripslashes($memo),$memolen); // $memolenx라는 변수에 $memo값을 $memolen길이만큼만 잘라라는 뜻입니다.(dex님 설명)
                        $memo2 = stripslashes($data[memo]); // 헤드라인 미들. memo2 추가. 태그 죽임.
                        $memoleny = cut_str(stripslashes($memo2),$memolen); // $memoleny라는 변수에 $memo2값을 $memolen길이만큼만 잘라라는 뜻입니다.(dex님 설명)
                        $no_img = "img/noimage.gif"; // 노스크린샷. 바꿔주세요.
                        $filename2 = $data[file_name2]; // 이하 이미지소스 정의.
                        $filename1 = $data[file_name1];
                        $uploadimage2 = "<img src=".$_zb_url.$filename2." border=1 style='border-color:BDB4A4;margin-right:0px;' width=90 height=70><br>";
                        $uploadimage1 = "<img src=".$_zb_url.$filename1." border=1 style='border-color:BDB4A4;margin-right:0px;' width=90 height=70><br>"; // 헤드라인 탑에서 추출되는 큰 이미지의 가로와 세로폭 조절.(보통은 업로드이미지1만 사용해도 무방하나 업로드이미지1이 너무 넓거나 길어서 추출하기 적당하지 않을경우 업로드이미지2에 적당한 크기의 스크린샷을 넣어주면 된다. 대신에 스킨의 view.php에서 업로드이미지2를 지우는게 보기 좋다.)
                        if($filename2) $img = $uploadimage2; // 우선 스크린샷부터 검색.
                        elseif($filename1) $img = $uploadimage1; // 스크린샷이 없으면 이미지에서 직접 추출.
                        else $img ="<img src=".$no_img." border=1 style='border-color:BDB4A4' width=90 height=70><br>"; // 헤드라인 탑에서 스크린샷과 이미지 모두 없을때 보여줄 노스크린샷 이미지의 가로와 세로폭 조절.(스크린샷의 가로와 세로폭과 같게 조절)
                        $uploadimage2_2 = "<img src=".$_zb_url.$filename2." border=1 style='border-color:BDB4A4;margin-right:0px;' width=90 height=70><br>";
                        $uploadimage1_2 = "<img src=".$_zb_url.$filename1." border=1 style='border-color:BDB4A4;margin-right:0px;' width=90 height=70><br>"; // 헤드라인 미들에서 추출되는 작은 이미지의 가로와 세로폭 조절.(보통은 업로드이미지1만 사용해도 무방하나 업로드이미지1이 너무 넓거나 길어서 추출하기 적당하지 않을경우 업로드이미지2에 적당한 크기의 스크린샷을 넣어주면 된다. 대신에 스킨의 view.php에서 업로드이미지2를 지우는게 보기 좋다.)
                        if($filename2) $img2 = $uploadimage2_2; // 우선 스크린샷부터 검색.
                        elseif($filename1) $img2 = $uploadimage1_2; // 스크린샷이 없으면 이미지에서 직접 추출.
                        else $img2 ="<img src=".$no_img." border=1 style='border-color:BDB4A4' width=90 height=70><br>"; // 헤드라인 미들에서 스크린샷과 이미지 모두 없을때 보여줄 노스크린샷 이미지의 가로와 세로폭 조절.(스크린샷의 가로와 세로폭과 같게 조절)
                        $date = date($datetype, $data[reg_date]);
                        $boardtitle = stripslashes($data[boardtitle]);
                        $id = stripslashes($data[board]);
                        $hit = $data[hit];
                        $download1 = $data[download1];
                        $download2 = $data[download2];

                        $setup = mysql_fetch_array(mysql_query("select use_alllist from $admin_table where name='$id'",$connect));
                        if($setup[use_alllist]) $target = "zboard.php?id=".$id;
                        else $target = "view.php?id=".$id;

                        if($data[total_comment]) $comment = "[".$data[total_comment]."]"; else $comment="";
                        $new = "";
                        $check_time=(time()-$data[reg_date])/60/60;
                        if($check_time>96)$new.="";
                        if($check_time<=96)$new.="<img src=img/new.gif align=absmiddle border=0 alt=새로운글>";

                        $main = $loop;
                        $main = str_replace("[xa]",$xa,$main);
                        $main = str_replace("[x]","<a href='".$_zb_url.$target."&no=$data[no]'>".$x."</a>",$main);
                        $main = str_replace("[xb]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xb."</a>",$main);
                        $main = str_replace("[xc]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xc."</a>",$main);
                        $main = str_replace("[xd]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xd."</a>",$main);
                        $main = str_replace("[xe]",$xe,$main);
                        $main = str_replace("[xf]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xf."</a>",$main);
                        $main = str_replace("[xg]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xg."</a>",$main);
                        $main = str_replace("[xh]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xh."</a>",$main);
                        $main = str_replace("[xi]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xi."</a>",$main);
                        $main = str_replace("[xj]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xj."</a>",$main);
                        $main = str_replace("[xk]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xk."</a>",$main);
                        $main = str_replace("[xl]","<a href='".$_zb_url.$target."&no=$data[no]'>".$xl."</a>",$main);
                        $main = str_replace("[date]",$date,$main);
                        $main = str_replace("[subject]","<a href='".$_zb_url.$target."&no=$data[no]'>".$subject."</a>",$main);
                        $main = str_replace("[subject1]","<a href='+ '+ '#' onclick="window.open('".$_zb_url."preview.php?id=".$id."&no=$data[no]','','width=660,height=700,top=10,left=20,toolbars=no,resizable=yes,scrollbars=yes')">".새창."</a>",$main); // 제목을 클릭시 새창으로 열리게 하고 싶을때 사용. 제로보드디렉토리에 preview.php파일 추가 필요.
                        $main = str_replace("[subject2]","<a href='".$_zb_url."preview2.php?id=".$id."&no=$data[no]'>".보기."</a>",$main); // 제목을 클릭시 현재창으로 열리면서 헤더와 푸터를 다르게 사용할때 필요. 제로보드디렉토리에 preview2.php파일 추가 하고 헤더와 푸터 지정 필요.

                        $main = str_replace("[img]","<a href='".$_zb_url.$target."&no=$data[no]'>".$img."</a>",$main);  // 헤드라인 탑. 이미지 뽑는거 추가.
                        $main = str_replace("[img2]","<a href='".$_zb_url.$target."&no=$data[no]'>".$img2."</a>",$main);  // 헤드라인 미들. 이미지 뽑는거 추가.
                        $main = str_replace("[memo]",$memolenx,$main);  // 헤드라인 탑. 내용 뽑고 내용에 링크 안하는거.
                                                                        //    $main = str_replace("[memo]","<a href='".$_zb_url.$target."&no=$data[no]'>".$memolenx."</a>",$main);  // 헤드라인 탑. 내용 뽑고 내용에도 링크할 경우 주석 지우고 사용. 이것 사용할때는 위에 내용 뽑고 내용에 링크 안하는거는 주석달아줌.

                        $main = str_replace("[memo2]",$memoleny,$main);  // 헤드라인 미들. 내용 뽑고 내용에 링크 안하는거.
                                                                          //    $main = str_replace("[memo2]","<a href='".$_zb_url.$target."&no=$data[no]'>".$memoleny."</a>",$main);  // 헤드라인 미들. 내용 뽑고 내용에도 링크할 경우 주석 지우고 사용. 이것 사용할때는 위에 내용 뽑고 내용에 링크 안하는거는 주석달아줌.

            $more = "<img src=http://baseball-korea.com/img/but_more.gif border=0>";  // 헤드라인 탑. more 아이콘 정의. 바꿔주세요.
                        $main = str_replace("[more]","<a href='".$_zb_url.$target."&no=$data[no]'>".$more."</a>",$main);  // memo 뒤에 more추가하고 내용으로 링크.

            $more2 = "<img src=http://baseball-korea.com/img/more1.gif border=0>";  // 헤드라인 미들. more 아이콘 정의. 바꿔주세요.
                        $main = str_replace("[more2]","<a href='".$_zb_url.$target."&no=$data[no]'>".$more2."</a>",$main);  // memo 뒤에 more추가하고 내용으로 링크.
                        $main = str_replace("[comment]",$comment,$main);
                        $main = str_replace("[boardtitle]","<a href='".$_zb_url."zboard.php?id=".$id."'>".$boardtitle."</a>",$main);
                        $main = str_replace("[new]",$new,$main);
                        $main = str_replace("[hit]",$hit,$main);
                        $main = str_replace("[download1]",$download1,$main);
                        $main = str_replace("[download2]",$download2,$main);


                        $main_data .= "n".$main;
                }
                        $list = $header.$main_data.$footer;
                        $list = str_replace("[dir]",$_zb_url."latest_skin/".$skinname."/images/",$list);

                echo $list;

         }

        function table_make($table_name)
                {
                global $connect,$zb_bbs;

                $Query = "show tables like 'zetyx_$table_name'";
                $RS = mysql_query($Query);
                if ($RS != NULL) {
                mysql_query("DROP TABLE zetyx_$table_name");
                }
                //남아 있는 테이블 지우기..

                // TEMPORARY TABLE MAKE
                $tmp_table_schema =
                "create temporary table zetyx_$table_name (
                num int(20) unsigned default '0' not null auto_increment primary key,
                board varchar(40) not null,
                no int(20) NOT NULL,
                ismember int(20) default '0' not null,

                memo text,

                xa varchar(20) not null,
                x varchar(20) not null,
                xb varchar(20) not null,
                xc varchar(20) not null,
                xd varchar(20) not null,
                xe varchar(20) not null,
                xf varchar(20) not null,
                xg varchar(20) not null,
                xh varchar(20) not null,
                xi varchar(20) not null,
                xj varchar(20) not null,
                xk varchar(20) not null,
                xl varchar(20) not null,
                subject varchar(250) not null,
                boardtitle char(255),
                use_html char(1) default '0',
                is_secret char(1) not null default '0',
                file_name1 varchar(255),
                file_name2 varchar(255),
                download1 int(11) default '0' not null,
                download2 int(11) default '0' not null,
                reg_date int(13) not null default '0',
                hit int(11) not null default '0',
                vote int(11) not null default '0',
                total_comment int(11) not null default '0',

                KEY xa (xa),
                KEY x (x),
                KEY board (board),
                KEY reg_date (reg_date),
                KEY hit (hit),
                KEY vote (vote),
                KEY download1 (download1),
                KEY download2 (download2)
        )";

                mysql_query($tmp_table_schema,$connect) or Error("임시 테이블(zetyx_$table_name)생성에 실패했습니다.");

                if ($table_name == "tmp") {
                        $board=array_keys($zb_bbs);
                        $boardtitle=array_values($zb_bbs);
                        }
                else {
                        print "error";
                }
                $board_total = count($board);

                for($i=0;$i<$board_total;$i++) {
                        $list_result=mysql_query("select * from zetyx_board_$board[$i]");
                        $list_result_total=mysql_affected_rows();
                for($j=0;$j<$list_result_total;$j++) {
                 mysql_data_seek($list_result,$j);
                        $row = mysql_fetch_array($list_result);
                        $insert=mysql_query("insert into zetyx_$table_name
               (board,no,ismember,memo,xa,x,xb,xc,xd,xe,xf,xg,xh,xi,xj,xk,xl,subject,boardtitle,use_html,is_secret,file_name1,file_name2,download1,download2,reg_date,hit,vote,total_comment)
                values
         ('$board[$i]','$row[no]','$row[ismember]','$row[memo]','$row[xa]','$row[x]','$row[xb]','$row[xc]','$row[xd]','$row[xe]','$row[xf]','$row[xg]','$row[xh]','$row[xi]','$row[xj]','$row[xk]','$row[xl]','$row[subject]','$boardtitle[$i]','$row[use_html]','$row[is_secret]','$row[file_name1]','$row[file_name2]','$row[download1]'+ ','$row[download2]','$row[reg_date]','$row[hit]','$row[vote]','$row[total_comment]')
                ");
                        }
                }


                }// end func
?>





위 소스중에서 카테고리를 추가해야하는데 여기저기 돌아다녀 보았지만 도무지 알길이 없네요
위 소스를 이용해서 lated_skin폴더의 main.html을 [category]라 하면 카테고리이름이 나오게 하고 싶은데 고수님들 조언 부탁드립니다.
링크주소 보시면 카테고리 이름대신에 [category]이렇게 나옵니다...
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
이성헌 아파치 인증 안될때..아시는분.  
오진호 게시판에서 다른 문서를 불러오려면 어떻게 해야 하나요? [1] 2007.08.10
한승진 자바스크립트에서 변수 길이..  
김대리 asp게시판에서 제로보드로 게시물을 옮길수있는 방법은 없나요? [3] 2007.08.10
이제혁 23일까지 팝업 슬라이딩 메뉴 만드는법점 자세히 올려주실분 ...(그림 ㅜㅜ)같이욤 [15] 2007.08.10
한혜림 zb41.tar.Z을 어디서 받나요? [3] 2007.08.10
김건 제가 질문을 잘 못해서..다시 질문을 드립니다. [2] 2007.08.10
강현수 리눅스에서 호스팅 서버 세팅시.. [2] 2007.08.10
이경희 홈 주소 고정시켰는데요. [2] 2007.08.10
쓸쓸한달빛 포트 포워딩(?)에 관해서입니다.. [2] 2007.08.10
유얼 스타일시트를 수정해도 적용이 안될 때? [3] 2007.08.10
젠더 비밀글 이용시.. [2] 2007.08.10
coffee tree 자바스크립트로 셀렉트 메뉴를 꾸몄는데, 링크 거는 방법을 몰르겠어요. [2] 2007.08.10
BelldandY [MS SQL 2000 SERVER] ACCESS 에서는 되는데여.. --; [1] 2007.08.10
nreal 플래쉬의 버튼에서 마우스 오버후 마우스 아웃때 모션을 설정할수 있나요? [3] 2007.08.10
재로 이런 홈페이지를 만들고 싶습니다.! [5] 2007.08.10
bobo 이서버로 무료호스팅이 가능할지.. (재질문,추가) [6] 2007.08.10
김영준 이럴 땐 어떻게 해야 될까여.. [5] 2007.08.10
박훈 결국 노프레임 [3] 2007.08.10
철퍼덕 미디어서버설치, 운영에 관해 알고싶습니다. 고수님들... 한수 전수하십시오. [3] 2007.08.10
김건 노프레임질문입니다. 이미지가 늘어나는.. [4] 2007.08.10
likemed 폼형식내에서 marquee태그 효과를 나타내고 싶어요  
에리™ 웹페이지에서 설문조사를 인클루드 하려 하는데 에러가..;; [1] 2007.08.10
워너 사랑비닷넷에서쓰는BGM을노프레임에서감추고싶어요 [1] 2007.08.10
탁윤호 괴이한 현상.. [1] 2007.08.10
탁윤호 폰트관련 질문 [2] 2007.08.10
성냥팔이소년 노프레임홈페이지에서, [1] 2007.08.10
류종덕 iframe으로 만든 게시판의 크기 변경에 관한 질문드립니다.  
하인성 노프레임 메뉴에 대해서 질문입니다.  
정수경 코멘트 좀 도와 주세요..