문의합니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

문의합니다. 정보

문의합니다.

본문

http://www.sir.co.kr/bbs/tb.php/g4_skin/9867 이 스킨을 썼는데요...
 
한 페이지에 세개게시판의 최신글에 똑같은 new_img1스킨을 쓰니 첫번째 게시판 최신글은 제대로 나오고 두번째 게시판 최신글부터 아래와 같은 에러가 뜹니다. 무슨 이유인지요? 답장 부탁드립니다.
 
Fatal error: Cannot redeclare showtextintags() (previously declared in E:\Vhost\WebRoot\tbci\www\skin\latest\new_img\latest.skin.php:76) in E:\Vhost\WebRoot\tbci\www\skin\latest\new_img\latest.skin.php on line 76

댓글 전체

latest.skin.php

<?##########################################  
  function showtextintags($text)
  {
  $text = preg_replace("/(\<script)(.*?)(script>)/si", "dada", "$text");
  $text = strip_tags($text);
  $text = str_replace("<!--", "&lt;!--", $text);
  $text = preg_replace("/(\<)(.*?)(--\>)/mi", "".nl2br("\\2")."", $text);
  return $text;
  }
 ##########################################
  ?>

지우시고

latest.lib.php
에 아무 곳에나
붙여 넣으세요

<?##########################################  
  function showtextintags($text)
  {
  $text = preg_replace("/(\<script)(.*?)(script>)/si", "dada", "$text");
  $text = strip_tags($text);
  $text = str_replace("<!--", "&lt;!--", $text);
  $text = preg_replace("/(\<)(.*?)(--\>)/mi", "".nl2br("\\2")."", $text);
  return $text;
  }
 ##########################################
  ?>
if(!function_exists('showtextintags'))
 {
 function showtextintags($text)
  {
  $text = preg_replace("/(\<script)(.*?)(script>)/si", "dada", "$text");
  $text = strip_tags($text);
  $text = str_replace("<!--", "&lt;!--", $text);
  $text = preg_replace("/(\<)(.*?)(--\>)/mi", "".nl2br("\\2")."", $text);
  return $text;
  }
}
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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