답변 1개
채택된 답변
+20 포인트
10년 전
common.php 파일의 아래 코드에서 처리됩니다.
</p><p>// common.php 파일을 수정할 필요가 없도록 확장합니다.</p><p>$extend_file = array();</p><p>$tmp = dir(G5_EXTEND_PATH);</p><p>while ($entry = $tmp->read()) {</p><p> // php 파일만 include 함</p><p> if (preg_match("/(\.php)$/i", $entry))</p><p> $extend_file[] = $entry;</p><p>}</p><p> </p><p>if(!empty($extend_file) && is_array($extend_file)) {</p><p> natsort($extend_file);</p><p> </p><p> foreach($extend_file as $file) {</p><p> include_once(G5_EXTEND_PATH.'/'.$file);</p><p> }</p><p>}</p><p>unset($extend_file); </p><p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
박쥐12
10년 전
감사합니다. ^^ 거기 숨어 있었네요.ㅎㅎ
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인