ekl < 라는 테이블명에서만 다른헤더를 보여주고 싶은데요
아래 소스코드가 잘못된건지 왜그런지 답변좀 주시면 감사하겠습니다.
Copy
<?phpif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가// 게시판 관리의 상단 내용if (G5_IS_MOBILE) { // 모바일의 경우 설정을 따르지 않는다. if ($bo_table == 'ekl') { include_once(G5_THEME_PATH.'/head1.php'); } else { include_once(G5_BBS_PATH.'/_head.php'); } echo stripslashes($board['bo_mobile_content_head']);} else { @include ($board['bo_include_head']); echo stripslashes($board['bo_content_head']);}?>
|
답변 1개 / 댓글 2개
채택된 답변
+20 포인트
모바일 일때만 인가요?
if (G5_IS_MOBILE) {
는 모바일일때 ekl게시판일때 head1 를 불러와라 이런코드인데
답변에 대한 댓글 2개
답변을 작성하려면 로그인이 필요합니다.