sir의 메뉴처럼.. 정보
sir의 메뉴처럼..본문
그림처럼 네모 박스 안의 내용이 페이지 링크 걸릴때마다 그 페이지 맞는 내용으로 바뀌는데 sir에서 공개한 head.php 파일에 보면 위에서 11번째 줄에 다음과 같음 내용이 있거든요
function top_box($content)
{
global $g4;
return "
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td background='$g4[path]/img/top_box_tl.gif' width=5 height=5></td>
<td background='$g4[path]/img/top_box_tc.gif' width='' height=5></td>
<td background='$g4[path]/img/top_box_tr.gif' width=5 height=5></td>
</tr>
<tr>
<td background='$g4[path]/img/top_box_l.gif' width=5></td>
<td style='padding:10px; line-height:150%;'>$content</td>
<td background='$g4[path]/img/top_box_r.gif' width=5></td>
</tr>
<tr>
<td background='$g4[path]/img/top_box_bl.gif' width=5 height=5></td>
<td background='$g4[path]/img/top_box_bc.gif' width='' height=5></td>
<td background='$g4[path]/img/top_box_br.gif' width=5 height=5></td>
</tr>
</table>";
}
이부분에서 보여주는것 같은데 이부분을 호출 하는 부분을 못찾겠어요...
이페이지에는 없는데...
리플점 부탁 드립니다.
function top_box($content)
{
global $g4;
return "
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td background='$g4[path]/img/top_box_tl.gif' width=5 height=5></td>
<td background='$g4[path]/img/top_box_tc.gif' width='' height=5></td>
<td background='$g4[path]/img/top_box_tr.gif' width=5 height=5></td>
</tr>
<tr>
<td background='$g4[path]/img/top_box_l.gif' width=5></td>
<td style='padding:10px; line-height:150%;'>$content</td>
<td background='$g4[path]/img/top_box_r.gif' width=5></td>
</tr>
<tr>
<td background='$g4[path]/img/top_box_bl.gif' width=5 height=5></td>
<td background='$g4[path]/img/top_box_bc.gif' width='' height=5></td>
<td background='$g4[path]/img/top_box_br.gif' width=5 height=5></td>
</tr>
</table>";
}
이부분에서 보여주는것 같은데 이부분을 호출 하는 부분을 못찾겠어요...
이페이지에는 없는데...
리플점 부탁 드립니다.
댓글 전체
$content 이부분에 대한 정의가 없나요..? 그게 변수로 작용하는건데요..--;;
소스 잘 찾아보시면 $content <-이 변수를 정의한 구문이 있을겁니다.
소스 잘 찾아보시면 $content <-이 변수를 정의한 구문이 있을겁니다.
문자열 검색 해도 안나와요..ㅜㅜ

이 부분은 보안 관련된 부분이 있어 안올렸습니다.
<?
if ($menu1 == "gnuboard4")
{
if ($bo_table == "g4_faq")
{
$box = "<b>그누보드4 : 자주하시는 질문</b>";
}
else if ($bo_table == "g4_pds")
{
$box = "<b>그누보드4 : 다운로드</b><br>
<span class=small> · 여러분께서 보고 계시는 이 사이트는 그누보드4 최신버전으로 제작하였습니다.</span>";
}
else if ($bo_table == "g4_convert")
{
$box = "<b>그누보드4 : 변환기</b><br>
<span class=small> · 타 게시판에서 그누보드4로 게시물을 옮겨주는 프로그램입니다.</span>";
}
else if ($bo_table == "g4_main_design")
... 중략 ...
if ($box)
{
echo top_box($box);
echo "<br>";
}
<?
if ($menu1 == "gnuboard4")
{
if ($bo_table == "g4_faq")
{
$box = "<b>그누보드4 : 자주하시는 질문</b>";
}
else if ($bo_table == "g4_pds")
{
$box = "<b>그누보드4 : 다운로드</b><br>
<span class=small> · 여러분께서 보고 계시는 이 사이트는 그누보드4 최신버전으로 제작하였습니다.</span>";
}
else if ($bo_table == "g4_convert")
{
$box = "<b>그누보드4 : 변환기</b><br>
<span class=small> · 타 게시판에서 그누보드4로 게시물을 옮겨주는 프로그램입니다.</span>";
}
else if ($bo_table == "g4_main_design")
... 중략 ...
if ($box)
{
echo top_box($box);
echo "<br>";
}
감사합니다..
하나만 더 문의 드립니다..
현제 테이블명 같고 있는 변수가 어떤건가요...$menu에 배열도 들어가 있던데..기거로 현제 게시판 명을 어찌 뽑아야 하는지 ...
그냥 현제 게시판명 같고 다니는 변수는 없나요?
하나만 더 문의 드립니다..
현제 테이블명 같고 있는 변수가 어떤건가요...$menu에 배열도 들어가 있던데..기거로 현제 게시판 명을 어찌 뽑아야 하는지 ...
그냥 현제 게시판명 같고 다니는 변수는 없나요?