문의 스킨 두 개 이상 인덱스 심기?

문의 스킨 두 개 이상 인덱스 심기?

QA

문의 스킨 두 개 이상 인덱스 심기?

본문

https://sir.kr/g5_skin/25290?sfl=wr_subject%7C%7Cwr_content&stx=상담

 

지금 여기꺼 쓰는데 하나를 인덱스에 넣으면 되는데. 두 개 이상은 오류가 나네요.

무지한데 감까지 더 떨어져서 전혀 모르겠네요. 다른거 찾아보며 하다가 올려봅니다.

 

이 질문에 댓글 쓰기 :

답변 2

index.php

$token = get_write_token('notice');
include "customer1.php";
include "customer1.php";

include "customer1.php";

include "customer1.php";

 

customer1.php

<input type="hidden" name="token" value="<?php echo $token; ?>">



<form name=frm method=post action="<?=$g5['path']?>/bbs/write_update.php" onsubmit="return checkFrm(this);">
<input type="hidden" name="token" value=<?php echo get_write_token('free') ?>>
<input type=hidden name=bo_table value="free">

이 부분은 알려주신대로

<input type="hidden" name="token" value="<?php echo $token; ?>">

이래 수정.
customer1.php


인텍스는
저걸 어케 적용할까요.

<?php
define('_INDEX_', true);
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
include_once(G5_THEME_PATH.'/head.php');
?>

<!-- 홈 배너 -->
<section id="home" class="home_section">
    <div class="background_bg"></div>
    <div class="container">
        <div class="home_content text-center">
            <div class="blue_bg text-vertical-center"><img src="<?php echo G5_URL ?>/_img/ff.png" width="85%">
                <!--<h3 class="title">언제든지 무엇이든지 물어보세요</h3>
                <p class="description">간편 무료 상담<br>이제 다리 쭉~ 펴고 살 수 있습니다.<br>
                1대1 비밀상담으로 전혀 기록에 남지 않습니다.<br>은행,카드,사채,대부 <모든 채무 조정 가능> 모든 재삽 압류 금지</p>-->
            </div>
        </div>
    </div>
</section>
<script>
    //IE8에서 background 100% 적용
$( function() {
        $.backstretch("<?php echo G5_THEME_IMG_URL ?>/bg.jpg");
    });
</script>





<!-- 무료상담신청 -->
<section id="request">
<div style="width:94%;margin:0 auto;"><img src="<?php echo G5_URL ?>/_img/request_t.png" width="100%"></div>
<? include_once("customer1.php"); ?>
</section>

<div style=""><img src="<?php echo G5_URL ?>/_img/ttt.png" width="100%"></div>
<div style="width:94%;margin:0 auto;padding:8px 0 8px 0;">
<?php echo latest("topicsm", 'free', 11, 2); ?>
</div>

뭐 이래 되어 있는데..

<? include_once("customer1.php"); ?>
이 부분이죠..?


기존엔
<? include_once("customer1.php"); ?>
<? include_once("customer2.php"); ?>

이래 두 개 썼는데 안먹히더라고요.
customer2.php 부분도 아래처럼 되어 있었고.

<form name=frm method=post action="<?=$g5['path']?>/bbs/write_update.php" onsubmit="return checkFrm(this);">
<input type="hidden" name="token" value=<?php echo get_write_token('free') ?>>
<input type=hidden name=bo_table value="free">

$token = get_write_token('notice');
include "customer1.php";
include "customer1.php";
이 코드 그대로 index.php 파일 적당한 위치에 붙여넣으시면 됩니다.
참고로 include_once를 쓰시면 같은 파일의 경우 중복 호출이 안 되기 때문에 include로 쓰셔야 해요.
그리고 customer1.php 파일을 여신 후
아마 원본 코드가 value="<?php echo get_token 뭐시기로 되어 있을 겁니다.
그걸
<input type="hidden" name="token" value="<?php echo $token; ?>">
이걸로 교체해 주시면 됩니다.

id나 폼이름 등 중복되면 안되는 부분들이 있어서 그런게 아닐까요?

<form name=frm method=post action="<?=$g5['path']?>/bbs/write_update.php" onsubmit="return checkFrm(this);">
<input type="hidden" name="token" value=<?php echo get_write_token('free') ?>>
<input type=hidden name=bo_table value="free">
<input type=hidden name="wr_7" value="">
<input type=hidden name="wr_8" value="">
<input type=hidden name="wr_9" value="">
<input type=hidden name="wr_name" value="관리자">
<input type=hidden name="wr_subject" >
<input type=hidden name="wr_content" value="">

왠지 여기서

답변을 작성하시기 전에 로그인 해주세요.
전체 13
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT