묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
게시판주소는 어떻게 알수 있나요?(꼭 부탁드려요..)
2003.02.19 13:10
리뉴얼하는데 예전에 있던 게시판을 따올려고 합니다.(제로보드는 아니지만..)
게시판만 따와서 새로운 페이지에 삽입할 라면 어떻게 해야하는지요..
근대 제가 작업한게 아니고 php를 몰라서요..ㅠ.ㅜ
board.php가 문서이름이고 ?뒤에가 테이블 짠것이라는데..(그래서 어떻게 게시판을 따오는 것인지..)
부탁드려요..
http://주소/board/board.php3?table=consult&query=list&p=1
http://주소/board/board.php3?table=info&query=list&p=1
혹시나해서 board.php3파일을 올려봅니다..
<?
/******************************************************************************/
if ( !$table || !is_file("./board/table/$table/list.cgi") )
{
$msg = "[ ERROR ]\n\n존재하지 않는 보드입니다.\n\n";
include("./board/include/ERROR.php3");
exit;
}
$MicroTsmp = split(" ",microtime());
$START_TIME = $MicroTsmp[0]+$MicroTsmp[1];
if ( $HTTP_COOKIE_VARS["hit_$table$l"] != "check" && $query == "view" ) :
setcookie("hit_$table$l", "check", 0, "/");
endif;
include ("./board/table/$table/var.php3");
include ("./board/table/$table/board_name.php3");
if ( $PERMISION != "NO" ) :
include ("./board/include/PERMISION.php3");
endif;
/******************************************************************************/
/******************************************************************************/
if($table=="info") {
$leftimg = "sub3_menu011.gif";
$topimg = "sub3.swf";
$bottom = "sub304_title1.gif";
$path = "board/board.php3?table=info&query=list&p=1";
} else if($table =="consult") {
$leftimg = "sub4_menu11.gif";
$topimg = "sub4.swf";
$bottom = "sub4_title1.gif";
$path = "board/board.php3?table=consult&query=list&p=1";
} else if($table =="free"){
$leftimg = "sub5_menu11.gif";
$topimg = "sub5.swf";
$bottom = "sub5_title1.gif";
$path ="board/board.php3?table=free&query=list&p=1";
} else if($table == "notice"){
$leftimg = "sub8_menu11.gif";
$topimg = "sub8.swf";
$bottom = "sub8_title1.gif";
$path ="board/board.php3?table=notice&query=list&p=1";
} else if($table == "consult1") {
$leftimg = "sub4_menu11.gif";
$topimg = "sub4.swf";
$bottom = "sub4_title1.gif";
$path = "board/board.php3?table=consult1&query=list&p=1";
}
$url = "http://gook119.co.kr/";
$severpath = "/web/gook/html/";
?>
<html>
<head>
<title>문서입니다.</title>
</head>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload="setVariables(); checkLocation();">
<table border="0" cellpadding="0" cellspacing="1" width="778" height= "100%" bgcolor=#cccccc>
<tr>
<td width=778 align="top" valign="top" height=100%>
<table border="0" cellpadding="0" cellspacing="0" width="776" height= "100%" bgcolor="white">
<tr>
<td width="776" height=60><? include $severpath."top.inc"; ?></td>
<td></td>
</tr>
<tr>
<td width="776" height="121">
<script language="javascript">
function chg(name,img){
name.src = img;
}
</script>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="776" height="121">
<param name=movie value="<?=$url?>images/<?=$topimg?>">
<param name=quality value=high>
<embed src="<?=$url?>images/<?=$topimg?>" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="776" height="121">
</embed>
</object></p>
</td>
<td></td>
</tr>
<tr>
<td width="768" valign="top">
<table border="0" bordercolor=red cellpadding="0" cellspacing="0" width="774" height=100%>
<tr>
<td width="155" bgcolor="#F4F4F4" valign="top">
<p> </p>
<a href="<?=$url?><?=$path?>" ><img src="<?=$url?>images/<?=$leftimg?>" border="0" name="q11" width="140" height="22"></a><br>
<?if($table=="info"){?>
<a href="<?=$url?>sub301.html" onmouseover="chg(q12,'<?=$url?>images/sub3_menu021.gif')" onmouseOut="chg(q12,'<?=$url?>images/sub3_menu02.gif')" onfocus=this.blur()><img src="<?=$url?>images/sub3_menu02.gif" border="0" name="q12" width="140" height="22"></a><br>
<a href="<?=$url?>sub302.html" onmouseover="chg(q13,'<?=$url?>images/sub3_menu031.gif')" onmouseOut="chg(q13,'<?=$url?>images/sub3_menu03.gif')" onfocus=this.blur()><img src="<?=$url?>images/sub3_menu03.gif" border="0" name="q13" width="140" height="36"></a><br>
<a href="<?=$url?>sub303.html" onmouseover="chg(q14,'<?=$url?>images/sub3_menu041.gif')" onmouseOut="chg(q14,'<?=$url?>images/sub3_menu04.gif'+ '+ ')" onfocus=this.blur()><img src="<?=$url?>images/sub3_menu04.gif" border="0" name="q14" width="140" height="38"></a><br><? } ?>
<div id="branding" style="width:149px; height:127px; position:absolute; left:2px; top:323px; z-index:1;" p align="center"><img src="<?=$url?>images/sub_gook.gif" width="149" height="127" border="0"></p></div>
</td>
<td width="10"></td>
<td width="598" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td width="600">
<p><br><br></p>
</td>
</tr>
<tr>
<td width="600">
<p><img src="<?=$url?>images/<?=$bottom?>" width="598" height="28" border="0"></p>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td width="600">
<table border="0" cellpadding="0" cellspacing="0" width="590" height="350">
<tr>
<td width="26">
</td>
<td width="564" valign="top">
<?
if ( $INCLUDE_HTML != "checked" ) :
echo "<P ALIGN=$ALIGN>
<TABLE WIDTH='$BOARD_WIDTH' BORDER='0' CELLSPACING='0' CELLPADDING='0'>
<TR><TD align=center>";
else :
if ( is_file("./html/INC_HEADER.php3")) {
include ("./html/INC_HEADER.php3");
}
endif;
if ( $BOARD_TOP == "checked" ) :
include ("./board/include/BOARD_TOP.php3");
endif;
if (is_file("./board/table/$table/board_header.php3")) :
include ("./board/table/$table/board_header.php3");
endif;
if ( !$p ) { $p = 1; }
switch ( $query )
{
case ( "list" ) :
include ("./board/skin/$SKIN/list.php3");
break;
case ( "view" ) :
include ("./board/skin/$SKIN/view.php3");
break;
case ( "write" ) :
if ($ADMINONLY == "checked" ) {
include ("./config/mkpass.php3");
include ("./board/table/$table/board_pass.php3");
if ($HTTP_COOKIE_VARS[ROOT_PASS] != $ROOT_PASS && $HTTP_COOKIE_VARS[BOARD_PASS] != $BOARD_PASS) {
include ("./board/include/ADMIN_ONLY_WRITE.php3");
}
else {
include ("./board/skin/$SKIN/write.php3");
}
}
else {
include ("./board/skin/$SKIN/write.php3");
}
break;
case ( "multi" ) :
include ("./board/skin/$SKIN/multi.php3");
break;
case ( "modify" ) :
include ("./board/skin/$SKIN/write.php3");
break;
case ( "delete" ) :
include ("./board/include/DELETE_FORM.php3");
break;
case ( "search" ) :
include ("./board/skin/$SKIN/search.php3");
break;
case ( "sec_log" ) :
include ("./board/include/SELOG_FORM.php3");
break;
case ( "member_log" ) :
if ($ADMINONLY == "checked" ) {
include ("./config/mkpass.php3");
include ("./board/table/$table/board_pass.php3");
if ($HTTP_COOKIE_VARS[ROOT_PASS] != $ROOT_PASS && $HTTP_COOKIE_VARS[BOARD_PASS] != $BOARD_PASS) {
include ("./board/include/ADMIN_ONLY_WRITE.php3");
}
else {
include ("./board/skin/$SKIN/write.php3");
}
}
else {
include ("./board/skin/$SKIN/write.php3");
}
break;
case ( "msg_del" ) :
include ("./board/include/OPINION_DEL_FORM.php3");
break;
default :
include ("./board/skin/$SKIN/list.php3");
}
if (is_file("./board/table/$table/board_footer.php3")) :
include ("./board/table/$table/board_footer.php3");
endif;
if ( $INCLUDE_HTML != "checked" ) :
echo "</TD></TR></TABLE></DIV>";
else :
if ( is_file("./html/INC_FOOTER.php3")) {
include ("./html/INC_FOOTER.php3");
}
endif;
/******************************************************************************/
?>
</td></tr></table>
</td>
</tr>
<tr>
<td width="600"> </td>
</tr>
</table>
</td>
<td width="10" valign="top"> </td>
</tr>
<tr>
<td width="153" height= "10" bgcolor="#F4F4F4"> </td>
<td width="621" height= "10" colspan="3"></td>
</tr>
</table></td>
<td></td>
</tr>
<tr><td width="776" height=54>
<!-- ////////////////////// copyright ////////////////////////////-->
<? include $severpath."copy.inc"; ?>
<!-- ////////////////////// copyright ////////////////////////////-->
</td>
<td></td>
</tr>
</table></td></tr></table>
</body>
</html>
게시판만 따와서 새로운 페이지에 삽입할 라면 어떻게 해야하는지요..
근대 제가 작업한게 아니고 php를 몰라서요..ㅠ.ㅜ
board.php가 문서이름이고 ?뒤에가 테이블 짠것이라는데..(그래서 어떻게 게시판을 따오는 것인지..)
부탁드려요..
http://주소/board/board.php3?table=consult&query=list&p=1
http://주소/board/board.php3?table=info&query=list&p=1
혹시나해서 board.php3파일을 올려봅니다..
<?
/******************************************************************************/
if ( !$table || !is_file("./board/table/$table/list.cgi") )
{
$msg = "[ ERROR ]\n\n존재하지 않는 보드입니다.\n\n";
include("./board/include/ERROR.php3");
exit;
}
$MicroTsmp = split(" ",microtime());
$START_TIME = $MicroTsmp[0]+$MicroTsmp[1];
if ( $HTTP_COOKIE_VARS["hit_$table$l"] != "check" && $query == "view" ) :
setcookie("hit_$table$l", "check", 0, "/");
endif;
include ("./board/table/$table/var.php3");
include ("./board/table/$table/board_name.php3");
if ( $PERMISION != "NO" ) :
include ("./board/include/PERMISION.php3");
endif;
/******************************************************************************/
/******************************************************************************/
if($table=="info") {
$leftimg = "sub3_menu011.gif";
$topimg = "sub3.swf";
$bottom = "sub304_title1.gif";
$path = "board/board.php3?table=info&query=list&p=1";
} else if($table =="consult") {
$leftimg = "sub4_menu11.gif";
$topimg = "sub4.swf";
$bottom = "sub4_title1.gif";
$path = "board/board.php3?table=consult&query=list&p=1";
} else if($table =="free"){
$leftimg = "sub5_menu11.gif";
$topimg = "sub5.swf";
$bottom = "sub5_title1.gif";
$path ="board/board.php3?table=free&query=list&p=1";
} else if($table == "notice"){
$leftimg = "sub8_menu11.gif";
$topimg = "sub8.swf";
$bottom = "sub8_title1.gif";
$path ="board/board.php3?table=notice&query=list&p=1";
} else if($table == "consult1") {
$leftimg = "sub4_menu11.gif";
$topimg = "sub4.swf";
$bottom = "sub4_title1.gif";
$path = "board/board.php3?table=consult1&query=list&p=1";
}
$url = "http://gook119.co.kr/";
$severpath = "/web/gook/html/";
?>
<html>
<head>
<title>문서입니다.</title>
</head>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload="setVariables(); checkLocation();">
<table border="0" cellpadding="0" cellspacing="1" width="778" height= "100%" bgcolor=#cccccc>
<tr>
<td width=778 align="top" valign="top" height=100%>
<table border="0" cellpadding="0" cellspacing="0" width="776" height= "100%" bgcolor="white">
<tr>
<td width="776" height=60><? include $severpath."top.inc"; ?></td>
<td></td>
</tr>
<tr>
<td width="776" height="121">
<script language="javascript">
function chg(name,img){
name.src = img;
}
</script>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="776" height="121">
<param name=movie value="<?=$url?>images/<?=$topimg?>">
<param name=quality value=high>
<embed src="<?=$url?>images/<?=$topimg?>" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="776" height="121">
</embed>
</object></p>
</td>
<td></td>
</tr>
<tr>
<td width="768" valign="top">
<table border="0" bordercolor=red cellpadding="0" cellspacing="0" width="774" height=100%>
<tr>
<td width="155" bgcolor="#F4F4F4" valign="top">
<p> </p>
<a href="<?=$url?><?=$path?>" ><img src="<?=$url?>images/<?=$leftimg?>" border="0" name="q11" width="140" height="22"></a><br>
<?if($table=="info"){?>
<a href="<?=$url?>sub301.html" onmouseover="chg(q12,'<?=$url?>images/sub3_menu021.gif')" onmouseOut="chg(q12,'<?=$url?>images/sub3_menu02.gif')" onfocus=this.blur()><img src="<?=$url?>images/sub3_menu02.gif" border="0" name="q12" width="140" height="22"></a><br>
<a href="<?=$url?>sub302.html" onmouseover="chg(q13,'<?=$url?>images/sub3_menu031.gif')" onmouseOut="chg(q13,'<?=$url?>images/sub3_menu03.gif')" onfocus=this.blur()><img src="<?=$url?>images/sub3_menu03.gif" border="0" name="q13" width="140" height="36"></a><br>
<a href="<?=$url?>sub303.html" onmouseover="chg(q14,'<?=$url?>images/sub3_menu041.gif')" onmouseOut="chg(q14,'<?=$url?>images/sub3_menu04.gif'+ '+ ')" onfocus=this.blur()><img src="<?=$url?>images/sub3_menu04.gif" border="0" name="q14" width="140" height="38"></a><br><? } ?>
<div id="branding" style="width:149px; height:127px; position:absolute; left:2px; top:323px; z-index:1;" p align="center"><img src="<?=$url?>images/sub_gook.gif" width="149" height="127" border="0"></p></div>
</td>
<td width="10"></td>
<td width="598" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td width="600">
<p><br><br></p>
</td>
</tr>
<tr>
<td width="600">
<p><img src="<?=$url?>images/<?=$bottom?>" width="598" height="28" border="0"></p>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td width="600">
<table border="0" cellpadding="0" cellspacing="0" width="590" height="350">
<tr>
<td width="26">
</td>
<td width="564" valign="top">
<?
if ( $INCLUDE_HTML != "checked" ) :
echo "<P ALIGN=$ALIGN>
<TABLE WIDTH='$BOARD_WIDTH' BORDER='0' CELLSPACING='0' CELLPADDING='0'>
<TR><TD align=center>";
else :
if ( is_file("./html/INC_HEADER.php3")) {
include ("./html/INC_HEADER.php3");
}
endif;
if ( $BOARD_TOP == "checked" ) :
include ("./board/include/BOARD_TOP.php3");
endif;
if (is_file("./board/table/$table/board_header.php3")) :
include ("./board/table/$table/board_header.php3");
endif;
if ( !$p ) { $p = 1; }
switch ( $query )
{
case ( "list" ) :
include ("./board/skin/$SKIN/list.php3");
break;
case ( "view" ) :
include ("./board/skin/$SKIN/view.php3");
break;
case ( "write" ) :
if ($ADMINONLY == "checked" ) {
include ("./config/mkpass.php3");
include ("./board/table/$table/board_pass.php3");
if ($HTTP_COOKIE_VARS[ROOT_PASS] != $ROOT_PASS && $HTTP_COOKIE_VARS[BOARD_PASS] != $BOARD_PASS) {
include ("./board/include/ADMIN_ONLY_WRITE.php3");
}
else {
include ("./board/skin/$SKIN/write.php3");
}
}
else {
include ("./board/skin/$SKIN/write.php3");
}
break;
case ( "multi" ) :
include ("./board/skin/$SKIN/multi.php3");
break;
case ( "modify" ) :
include ("./board/skin/$SKIN/write.php3");
break;
case ( "delete" ) :
include ("./board/include/DELETE_FORM.php3");
break;
case ( "search" ) :
include ("./board/skin/$SKIN/search.php3");
break;
case ( "sec_log" ) :
include ("./board/include/SELOG_FORM.php3");
break;
case ( "member_log" ) :
if ($ADMINONLY == "checked" ) {
include ("./config/mkpass.php3");
include ("./board/table/$table/board_pass.php3");
if ($HTTP_COOKIE_VARS[ROOT_PASS] != $ROOT_PASS && $HTTP_COOKIE_VARS[BOARD_PASS] != $BOARD_PASS) {
include ("./board/include/ADMIN_ONLY_WRITE.php3");
}
else {
include ("./board/skin/$SKIN/write.php3");
}
}
else {
include ("./board/skin/$SKIN/write.php3");
}
break;
case ( "msg_del" ) :
include ("./board/include/OPINION_DEL_FORM.php3");
break;
default :
include ("./board/skin/$SKIN/list.php3");
}
if (is_file("./board/table/$table/board_footer.php3")) :
include ("./board/table/$table/board_footer.php3");
endif;
if ( $INCLUDE_HTML != "checked" ) :
echo "</TD></TR></TABLE></DIV>";
else :
if ( is_file("./html/INC_FOOTER.php3")) {
include ("./html/INC_FOOTER.php3");
}
endif;
/******************************************************************************/
?>
</td></tr></table>
</td>
</tr>
<tr>
<td width="600"> </td>
</tr>
</table>
</td>
<td width="10" valign="top"> </td>
</tr>
<tr>
<td width="153" height= "10" bgcolor="#F4F4F4"> </td>
<td width="621" height= "10" colspan="3"></td>
</tr>
</table></td>
<td></td>
</tr>
<tr><td width="776" height=54>
<!-- ////////////////////// copyright ////////////////////////////-->
<? include $severpath."copy.inc"; ?>
<!-- ////////////////////// copyright ////////////////////////////-->
</td>
<td></td>
</tr>
</table></td></tr></table>
</body>
</html>
댓글 5
-
미자
2003.02.19 13:24
-
미자
2003.02.19 13:25
참고로..
http://주소/board/board.php3?table=consult&query=list&p=1
http://주소/board/board.php3?table=info&query=list&p=1
이거같은 경우는 자세히는 잘 모르겠지만 쿼리값이랑 p값이 필요하지 않다면
http://주소/board/board.php3?table=consult
http://주소/board/board.php3?table=info
이렇게만 링크시켜도 어쩌면 가능할듯.. ;; -
김선경
2003.02.19 13:37
파일>속성>주소를 열어봤더니
http://www.주소.co.kr/요거밖에 안뜨는데요..(딱 인덱스페이지 주소만 뜹니다..)
http://주소/board/board.php3?table=consult로써도 헤더부분과 푸더부분이 함께 나오고
게시판만 뜨지는 않고,,
어찌해야할지요...(불쌍한 중생을 구제해 주세요..ㅠ.ㅜ) -
김선경
2003.02.19 13:49
-
미자
2003.02.19 13:40
에궁.
걍 주소를 함 알려줘보세요.
직접 봐드릴께요.
그냥 게시판 여신 다음에 익스플로러 메뉴에서
파일 -> 속성
열어보시면..
주소(URL) 이라고 써진곳 있구요
그 왼편에 뭔 영어 한가득 적혀있습니다.
그거 마우스로 긁어지거든요? 복사하셔서 붙여넣기 하시면 됩니당.