php 일반 게시판 타이틀 문의 좀 드립니다. 채택완료
그누보드가 아닌 일반 php게시판입니다.
게시판 타이틀을 바꾸고 싶은데 어디서 바꿔야 하는지 몰라 이렇게 문의글 올립니다.
아래소스 149번째줄 =$board_name?> 관리 부분이 게시판 타이틀에 맞게 변경되는 부분인데 저 부분을 어디서 수정을 해야 될런지...
admin에 관련되 모든 html,php페이지를 봐도 어디서 수정하는지 감이 안잡힙니다.
혹시 일반 페이지가 아닌 sql(?)에서 수정하는건가요? 정말 모르겠습니다...힌트라도 부탁드립니다.
게시판 소스 입니다.
</span></p><p><span style="color: rgb(0, 0, 0);"><?</span>
<span style="color: rgb(0, 0, 0);"> include "../lib/root.inc.php";</span>
<span style="color: rgb(0, 0, 0);"> // id 값이 없으면 되돌려.</span>
<span style="color: rgb(0, 0, 0);"> if (!$id) error("잘못된 접근입니다.");</span>
<span style="color: rgb(0, 0, 0);"> </span>
<span style="color: rgb(0, 0, 0);"> // 현제보드의 설정값 쿼리</span>
<span style="color: rgb(0, 0, 0);"> $setup = board_info($id);</span>
<span style="color: rgb(0, 0, 0);"> $board_name = $setup[name];</span>
<span style="color: rgb(0, 0, 0);"> // 리스트 변수 선언</span>
<span style="color: rgb(0, 0, 0);"> $MAX_ITEMS_PER_PAGE = 10; //한페이지에 출력될 제품수 설정</span>
<span style="color: rgb(0, 0, 0);"> $MAX_PAGES_PER_BAR = 10; //표시될 페이지 수</span>
<span style="color: rgb(0, 0, 0);"> if(!$PageNo) $PageNo=0;</span>
<span style="color: rgb(0, 0, 0);"> </span>
<span style="color: rgb(0, 0, 0);"> $searchStr = "&id=$id&s_name=$s_name&s_key=$s_key";</span>
<span style="color: rgb(0, 0, 0);"> </span>
<span style="color: rgb(0, 0, 0);"> // 검색 조건이 있는경우 처리</span>
<span style="color: rgb(0, 0, 0);"> if ($s_name) $option .= " AND " . $s_name . " LIKE '%" . $s_key . "%' ";</span>
<span style="color: rgb(0, 0, 0);"> </span>
<span style="color: rgb(0, 0, 0);"> // 전체 글수 쿼리</span>
<span style="color: rgb(0, 0, 0);"> $strSQL = "select count(*) FROM ".$board_table."_$id where idx=254 " . $option;</span>
<span style="color: rgb(0, 0, 0);"> $result_total = mysql_fetch_array(mysql_query($strSQL)) or Error("전체 글수 쿼리 에러");</span>
<span style="color: rgb(0, 0, 0);"> $total_rows = $result_total[0];</span>
<span style="color: rgb(0, 0, 0);"> /*</span>
<span style="color: rgb(0, 0, 0);"> }</span>
<span style="color: rgb(0, 0, 0);"> else</span>
<span style="color: rgb(0, 0, 0);"> $total_rows = $setup[total_msg];</span>
<span style="color: rgb(0, 0, 0);"> */</span>
<span style="color: rgb(0, 0, 0);"> $start_num = $PageNo*$MAX_ITEMS_PER_PAGE;</span>
<span style="color: rgb(0, 0, 0);"> $end_num = (($total_rows-$PageNo*$MAX_ITEMS_PER_PAGE) > $MAX_ITEMS_PER_PAGE) ? $MAX_ITEMS_PER_PAGE : $total_rows - $PageNo*$MAX_ITEMS_PER_PAGE;</span>
<span style="color: rgb(0, 0, 0);"> $strSQL = "select * from ".$board_table."_$id where idx=254 " . $option;</span>
<span style="color: rgb(0, 0, 0);"> $strSQL .= " LIMIT $start_num, $end_num ";</span>
<span style="color: rgb(0, 0, 0);"> //echo $strSQL;//exit;</span>
<span style="color: rgb(0, 0, 0);"> $result = mysql_query($strSQL) or Error("리스트 쿼리에러");</span>
<span style="color: rgb(0, 0, 0);">?></span>
<span style="color: rgb(0, 0, 0);"><div id=1></span>
<span style="color: rgb(0, 0, 0);"><html></span>
<span style="color: rgb(0, 0, 0);"><head></span>
<span style="color: rgb(0, 0, 0);"><title>관리자 페이지</title></span>
<span style="color: rgb(0, 0, 0);"><meta http-equiv="Content-Type" content="text/html; charset=euc-kr"></span>
<span style="color: rgb(0, 0, 0);"><link rel='stylesheet' href='./admin.css'></span>
<span style="color: rgb(0, 0, 0);"><script src='./admin.js'></script></span>
<span style="color: rgb(0, 0, 0);"></head></span>
<span style="color: rgb(0, 0, 0);"><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('image/topbu1-1.gif','image/topbu2-2.gif','image/topbu3-3.gif')"></span>
<span style="color: rgb(0, 0, 0);"><!-----------top 시작--------------></span>
<span style="color: rgb(0, 0, 0);"><table width="100%" border="0" cellspacing="0" cellpadding="0"></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td></span>
<span style="color: rgb(0, 0, 0);"> <table width="100%" border="0" cellspacing="0" cellpadding="0"></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td background="image/topbg.gif"></span>
<span style="color: rgb(0, 0, 0);"> <table border="0" cellspacing="0" cellpadding="0"></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td width="489"><img src="/img/logo1.gif"></td></span>
<span style="color: rgb(0, 0, 0);"> <td><a href="/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','image/topbu1-1.gif',1)" target=_blank><img name="Image2" border="0" src="image/topbu1.gif" width="107" height="73"></a></td></span>
<span style="color: rgb(0, 0, 0);"> <!--td><a href="./" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','image/topbu2-2.gif',1)"><img name="Image3" border="0" src="image/topbu2.gif" width="107" height="73"></a></td--></span>
<span style="color: rgb(0, 0, 0);"> <td><a href="./logout.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','image/topbu3-3.gif',1)"><img name="Image4" border="0" src="image/topbu3.gif" width="105" height="73"></a></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> </table></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td background="image/topbg1.gif" height="39" align="center"></span>
<span style="color: rgb(0, 0, 0);"> <table border="0" cellspacing="0" cellpadding="0"></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td align="center"></span>
<span style="color: rgb(0, 0, 0);"> <table width="800" border="0" cellspacing="0" cellpadding="0"></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td align="center"></span>
<span style="color: rgb(0, 0, 0);"> <!--a href="./?page=member"><font color="#FFFFFF"><b>회원정보수정</b></font></a></span>
<span style="color: rgb(0, 0, 0);"> <b><font color="#FFFFFF">|</font></b></span>
<span style="color: rgb(0, 0, 0);"> <a href="./?page=customer"><font color="#FFFFFF"><b>고객관리</b></font></a></span>
<span style="color: rgb(0, 0, 0);"> <b><font color="#FFFFFF">|</font></b></span>
<span style="color: rgb(0, 0, 0);"> <a href="./?page=estimate"><font color="#FFFFFF"><b>온라인 견적관리</b></font></a></span>
<span style="color: rgb(0, 0, 0);"> <b><font color="#FFFFFF">|</font></b--></span>
<span style="color: rgb(0, 0, 0);"> <a href="./?page=qna"><font color="#FFFFFF"><b>Q&A 관리</b></font></a></span>
<span style="color: rgb(0, 0, 0);"> <b><font color="#FFFFFF">|</font></b></span>
<span style="color: rgb(0, 0, 0);"> <a href="./board_list.php?id=tech"><font color="#FFFFFF"><b>이럴땐 이렇게</b></font></a></span>
<span style="color: rgb(0, 0, 0);"> <!--b><font color="#FFFFFF">|</font></b></span>
<span style="color: rgb(0, 0, 0);"> <a href="./board_list.php?id=tech_vo"><font color="#FFFFFF"><b>기술용어</b></font></a--></span>
<span style="color: rgb(0, 0, 0);"> <b><font color="#FFFFFF">|</font></b></span>
<span style="color: rgb(0, 0, 0);"> <a href="./board_list.php?id=faq1"><font color="#FFFFFF"><b>자료실</b></font></a></span>
<span style="color: rgb(0, 0, 0);"> <b><font color="#FFFFFF">|</font></b></span>
<span style="color: rgb(0, 0, 0);"> <a href="./?page=setup"><font color="#FFFFFF"><b>암호변경</b></font></a></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> </table></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> </table></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> </table></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"></table></span>
<span style="color: rgb(0, 0, 0);"><!-----------top 끝--------------></span>
<span style="color: rgb(0, 0, 0);"></div></span>
<span style="color: rgb(0, 0, 0);"><!----------------main시작-----------------------------></span>
<span style="color: rgb(0, 0, 0);"><table border="0" cellspacing="0" cellpadding="0" width="100%"></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td width="175" bgcolor="F7F7F7" valign="top"> </span>
<span style="color: rgb(0, 0, 0);"> <!--------------left시작---------------------></span>
<span style="color: rgb(0, 0, 0);"> <div id=2></span>
<span style="color: rgb(0, 0, 0);"><table width="175" border="0" cellspacing="0" cellpadding="0"></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td></span>
<span style="color: rgb(0, 0, 0);"> <table width='100%' border='0' cellspacing='0' cellpadding='0'></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td height='5'></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td height='25' align='center' bgcolor='D6D7D6'><font color='395194'><b>게시판/자료실 관리메뉴</b></font></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td height='5'></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> </table></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td bgcolor='#FFFFFF' height='30' style=padding-left:10px;><img src='image/leftdot.gif'><a href='./board_list.php?id=tech'><b><font color='525552'>이럴땐 이렇게</font></b></a></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td background='image/leftbg.gif' height='1' bgcolor='#FFFFFF'></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <!--tr></span>
<span style="color: rgb(0, 0, 0);"> <td bgcolor='#FFFFFF' height='30' style=padding-left:10px;><img src='image/leftdot.gif'><a href='./board_list.php?id=tech_vo'><b><font color='525552'>기술용어</font></b></a></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td background='image/leftbg.gif' height='1' bgcolor='#FFFFFF'></td></span>
<span style="color: rgb(0, 0, 0);"> </tr--></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td bgcolor='#FFFFFF' height='30' style=padding-left:10px;><img src='image/leftdot.gif'><a href='./board_list.php?id=faq1'><b><font color='525552'>자료실</font></b></a></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td background='image/leftbg.gif' height='1' bgcolor='#FFFFFF'></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"></table></span>
<span style="color: rgb(0, 0, 0);"> </div></span>
<span style="color: rgb(0, 0, 0);"> <!--------------left끝---------------------></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> <td valign="top"> </span>
<span style="color: rgb(0, 0, 0);"> <!-----------내용시작-------------------></span>
<span style="color: rgb(0, 0, 0);"> <table width="100%" border="0" cellspacing="0" cellpadding="0"></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td style=padding-left:20px;> </span>
<span style="color: rgb(0, 0, 0);"> <table border="0" cellspacing="0" cellpadding="0" width="610" ></span>
<span style="color: rgb(0, 0, 0);"> <tr><td height="12" colspan="2"></td></tr></span>
<span style="color: rgb(0, 0, 0);"> <tr><td colspan="2"> <font color="107D9C" size="1">■</font><font color="107D9C"> </span><b><span style="color: rgb(255, 0, 0);"><?=$board_name?></span></b><span style="color: rgb(0, 0, 0);"><b><span style="color: rgb(255, 0, 0);"> 관리</span></b></font></td></tr></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td bgcolor="107D9C" height="3" width="120"></td></span>
<span style="color: rgb(0, 0, 0);"> <td bgcolor="8CC3CE" height="3"></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td colspan="2"></span>
<span style="color: rgb(0, 0, 0);"><script language="javascript"></span>
<span style="color: rgb(0, 0, 0);">function check_all(formname){</span>
<span style="color: rgb(0, 0, 0);"> var formstr = eval(formname);</span>
<span style="color: rgb(0, 0, 0);"> for(i=0;i<formstr.elements.length;i++){</span>
<span style="color: rgb(0, 0, 0);"> if(formstr.elements[i].name=='chk[]') formstr.elements[i].checked=!formstr.elements[i].checked;</span>
<span style="color: rgb(0, 0, 0);"> }</span>
<span style="color: rgb(0, 0, 0);">}</span>
<span style="color: rgb(0, 0, 0);">function check_submit()</span>
<span style="color: rgb(0, 0, 0);">{</span>
<span style="color: rgb(0, 0, 0);"> check_temp='';</span>
<span style="color: rgb(0, 0, 0);"> for(i=0;i<document.list.elements.length;i++){</span>
<span style="color: rgb(0, 0, 0);"> var form_str = document.list.elements[i];</span>
<span style="color: rgb(0, 0, 0);"> if(form_str.name=='chk[]'){</span>
<span style="color: rgb(0, 0, 0);"> if(form_str.checked) check_temp++;</span>
<span style="color: rgb(0, 0, 0);"> }</span>
<span style="color: rgb(0, 0, 0);"> }</span>
<span style="color: rgb(0, 0, 0);"> if(!check_temp){</span>
<span style="color: rgb(0, 0, 0);"> alert('삭제할 글을 선택해주세요.');</span>
<span style="color: rgb(0, 0, 0);"> return false;</span>
<span style="color: rgb(0, 0, 0);"> }</span>
<span style="color: rgb(0, 0, 0);"> else</span>
<span style="color: rgb(0, 0, 0);"> {</span>
<span style="color: rgb(0, 0, 0);"> result=confirm('선택된 글을 삭제합니다.');</span>
<span style="color: rgb(0, 0, 0);"> if(!result) return false;</span>
<span style="color: rgb(0, 0, 0);"> }</span>
<span style="color: rgb(0, 0, 0);"> //---전송---//</span>
<span style="color: rgb(0, 0, 0);"> document.list.submit();</span>
<span style="color: rgb(0, 0, 0);">}</span>
<span style="color: rgb(0, 0, 0);"></script></span>
<span style="color: rgb(0, 0, 0);">
</span>
<span style="color: rgb(0, 0, 0);"><table width="700" border="0" cellspacing="0" align="center" cellpadding="0" bgcolor="white"></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td>총 <?=$total_rows?> 건 (현재 <?=$PageNo+1?> 페이지 / 총 <?=ceil($total_rows / $MAX_ITEMS_PER_PAGE)?> 페이지)</td></span>
<span style="color: rgb(0, 0, 0);"> <td align="right"><img src="imgs/bt_delete.gif" onClick="return check_submit()" style="cursor:hand"></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <tr height="5"></span>
<span style="color: rgb(0, 0, 0);"> <td></td></span>
<span style="color: rgb(0, 0, 0);"> <td align="right"></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"></table></span>
<span style="color: rgb(0, 0, 0);"><table width="700" border="0" cellspacing="1" align="center" cellpadding="3" bgcolor="bbbbbb"></span>
<span style="color: rgb(0, 0, 0);"><form method="post" name="list" action="board_view.php"></span>
<span style="color: rgb(0, 0, 0);"><input type="hidden" name="cmd" value="delete_check"></span>
<span style="color: rgb(0, 0, 0);"><input type="hidden" name="id" value="<?=$id?>"></span>
<span style="color: rgb(0, 0, 0);"> <tr align="center" bgcolor="CFD4D9"> </span>
<span style="color: rgb(0, 0, 0);"> <td width="50" height="25"><b>번호</td></span>
<span style="color: rgb(0, 0, 0);"> <td width="50"><b><a href="javascript:check_all('document.list')" title='모두 선택/해제'>All</a></b></td></span>
<span style="color: rgb(0, 0, 0);"> <td width=350><b>제목</b></td></span>
<span style="color: rgb(0, 0, 0);"> <td><b>작성자</b></td></span>
<span style="color: rgb(0, 0, 0);"> <td><b>등록일자</b></td></span>
<span style="color: rgb(0, 0, 0);"> <td><b>조회수</b></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> <? </span>
<span style="color: rgb(0, 0, 0);"> if ($total_rows == 0) echo "</span>
<span style="color: rgb(0, 0, 0);"> <tr bgcolor='f8f8f8' height='40'></span>
<span style="color: rgb(0, 0, 0);"> <td align=center colspan=6><font color='red'>등록된 글이 없습니다.</font></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> ";</span>
<span style="color: rgb(0, 0, 0);"> else {</span>
<span style="color: rgb(0, 0, 0);"> $num = $total_rows - ($PageNo * $MAX_ITEMS_PER_PAGE); // 화면에 표시되는 메시지 번호</span>
<span style="color: rgb(0, 0, 0);"> while($list=mysql_fetch_array($result)) {</span>
<span style="color: rgb(0, 0, 0);"> $no = $list[no];</span>
<span style="color: rgb(0, 0, 0);"> $name = $list[name];</span>
<span style="color: rgb(0, 0, 0);"> $subject = $list[subject];</span>
<span style="color: rgb(0, 0, 0);"> $subject = stripslashes($subject);</span>
<span style="color: rgb(0, 0, 0);"> $reg_date = date("Y-m-d", $list[write_time]);</span>
<span style="color: rgb(0, 0, 0);"> $depth = $list[depth];</span>
<span style="color: rgb(0, 0, 0);"> $blank = "";</span>
<span style="color: rgb(0, 0, 0);"> for ($i = 0; $depth > $i; $i++)</span>
<span style="color: rgb(0, 0, 0);"> {</span>
<span style="color: rgb(0, 0, 0);"> $blank .= " ";</span>
<span style="color: rgb(0, 0, 0);"> }</span>
<span style="color: rgb(0, 0, 0);"> $subject = $blank . $subject;</span>
<span style="color: rgb(0, 0, 0);"> $read_count = $list[read_count];</span>
<span style="color: rgb(0, 0, 0);"> echo "</span>
<span style="color: rgb(0, 0, 0);"> <tr bgcolor='f8f8f8' align=center></span>
<span style="color: rgb(0, 0, 0);"> <td height=25>$num</td></span>
<span style="color: rgb(0, 0, 0);"> <td><input type=checkbox name='chk[]' value='$no' style='border:none'></td></span>
<span style="color: rgb(0, 0, 0);"> <td align=left style=padding-left:10><a href='board_view.php?id=$id&no=$no&PageNo=$PageNo$searchStr'>$subject</a></td></span>
<span style="color: rgb(0, 0, 0);"> <td>$name</td></span>
<span style="color: rgb(0, 0, 0);"> <td>$reg_date</td></span>
<span style="color: rgb(0, 0, 0);"> <td>$read_count </td></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> ";</span>
<span style="color: rgb(0, 0, 0);"> $num--;</span>
<span style="color: rgb(0, 0, 0);"> }</span>
<span style="color: rgb(0, 0, 0);"> }</span>
<span style="color: rgb(0, 0, 0);"> ?></span>
<span style="color: rgb(0, 0, 0);"></form></span>
<span style="color: rgb(0, 0, 0);"></table></span>
<span style="color: rgb(0, 0, 0);">
</span>
<span style="color: rgb(0, 0, 0);"><table width="700" border="0" cellspacing="0" cellpadding="0" align=center></span>
<span style="color: rgb(0, 0, 0);"> <tr></span>
<span style="color: rgb(0, 0, 0);"> <td align=center><?= Page_Navg2($total_rows, $PageNo)?></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"></table></span>
<span style="color: rgb(0, 0, 0);">
</span>
<span style="color: rgb(0, 0, 0);"><table width="700" border="0" cellspacing="0" cellpadding="0" align=center></span>
<span style="color: rgb(0, 0, 0);"><form name="search" method="post" action="<?= $PHP_SELF ?>"></span>
<span style="color: rgb(0, 0, 0);"><input type=hidden name=id value='<?=$id?>'></span>
<span style="color: rgb(0, 0, 0);"> <tr> </span>
<span style="color: rgb(0, 0, 0);"> <td> </span>
<span style="color: rgb(0, 0, 0);"> <table border='0' cellspacing='0' cellpadding='2'></span>
<span style="color: rgb(0, 0, 0);"> <tr> </span>
<span style="color: rgb(0, 0, 0);"> <td> </span>
<span style="color: rgb(0, 0, 0);"> <select name="s_name"></span>
<span style="color: rgb(0, 0, 0);"> <option value='subject' selected>제목</option></span>
<span style="color: rgb(0, 0, 0);"> <option value='content'>내용</option></span>
<span style="color: rgb(0, 0, 0);"> <option value='name'>작성자</option></span>
<span style="color: rgb(0, 0, 0);"> </select></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> <td> </span>
<span style="color: rgb(0, 0, 0);"> <input type='text' name='s_key' value='<?=$s_key?>' size="20" style="background-color: white; border-bottom:#aaaaaa 1px solid; border-left:#aaaaaa 1px solid; border-right:#aaaaaa 1px solid; border-top:#aaaaaa 1px solid; font-family: gulim; font-size: 9pt"></td></span>
<span style="color: rgb(0, 0, 0);"> <td><input type='image' src='imgs/bt_asearch.gif' name='submit' value='search' align='absmiddle' style=border:none></td></span>
<span style="color: rgb(0, 0, 0);"></form></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> </table></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> <td align="right"><img src='imgs/list.gif' width=80 height=20 style=cursor:hand onClick="window.location='<?= $PHP_SELF?>?id=<?=$id?>'"> <img src='imgs/write.gif' width=80 height=20 style=cursor:hand onClick="window.location='board_write.php?id=<?=$id?>'"></td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"></form></span>
<span style="color: rgb(0, 0, 0);"></table>
</span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> </table></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"> </table></span>
<span style="color: rgb(0, 0, 0);"> <!-----------내용끝-------------------></span>
<span style="color: rgb(0, 0, 0);"> </td></span>
<span style="color: rgb(0, 0, 0);"> </tr></span>
<span style="color: rgb(0, 0, 0);"></table></span>
<span style="color: rgb(0, 0, 0);"><!----------------main끝-----------------------------></span>
<span style="color: rgb(0, 0, 0);"><!--------------bottom시작----------------></span>
<span style="color: rgb(0, 0, 0);"><div id=3></span>
<span style="color: rgb(0, 0, 0);">
</span>
<span style="color: rgb(0, 0, 0);"></body></span>
<span style="color: rgb(0, 0, 0);"></html></span>
<span style="color: rgb(0, 0, 0);"></div></span>
<span style="color: rgb(0, 0, 0);"><!--------------bottom끝----------------></span></p><p><span style="color: rgb(0, 0, 0);">
답변 1개
board_info()라는 함수 찾아 보시면 되겠네요.
위 함수 열어 보시면 값을 디비에서 갖고 오는지 디비에서 갖고 온다면 어느 테이블에서 갖고 오는지 알 수가 있을 테니까요.
답변에 대한 댓글 7개
$setup = board_info($id);
이렇게 되어 있으니 php 함숩니다.
lib 디렉토리나 common 디렉토리 있는지 찾아 보세요.
보통 그런 데다가 공통된 함수 집어 넣으니까요.
common.php
common.lib.php
function.php
이런 이름 비슷한 파일들 있을 겁니다.
[code]
// 보드의 설정값 쿼리
function board_info($id) {
global $connect, $board_admin_table;
$board_info = mysql_fetch_array(mysql_query("select * from $board_admin_table where id='$id'"));
if(!$board_info[no]) {
unset($board_info);
error("존재하지 않는 게시판입니다.");
} else return $board_info;
}
[/code]
또 다른페이지에도 있었네요..
[code]
function board_info($bid) {
global $connect, $cfg;
$board_info = sql_fetch("select * from board_admin where id='$bid'");
if(!$board_info['id']) {
unset($board_info);
error("존재하지 않는 게시판입니다.");
} else return $board_info;
}
[/code]
관리자 페이지 같은 거 있는지 확인해 보세요.
디렉토리 중에 admin 같은 게 있지 않을까 싶습니다.
페이지를 찾을 수 없다면 그냥 phpmyadmin 켜서 바로 수정해 버리시는 게 편하겠네요.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
함수라고 하셔서 js 파일 모두 찾아봤는데 제가 개발자가 아니다 보니 찾지 못하는건지.. 없는거 같네요