그누보드5 include_once
본문
index.html 문서를 만들고 최신글불러올때는
<?
$g4_path="../gnuboard4";
include_once("../gnuboard4/common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
이와같이했었는데
그누보드5
1번 같이하라는....
<?
$g5_path="./g5";
include_once("./g5/common.php");
include_once("./g5/head.sub.php");
?>
2번 같이하라는...
<?
include_once("./_common.php");
include_once(G5_URL."/head.sub.php");
include_once(G5_LIB_PATH."/outlogin.lib.php");
include_once(G5_LIB_PATH."/latest.lib.php");
include_once(G5_LIB_PATH."/visit.lib.php");
?>
둘다 제대로 않되요.
그누보드4에서는 쉽게 했었는데
그누보드5에서는 도무지 어떻게 하는지 모르겠습니다.
답변 2
최신글을 불러오는게 그누보드5에서는
해당 2번 3번 둘다 아닙니다만? 어떤게 안되신다는건지 모르겠네요
별도의 하위 폴더에 g5를 설치하셨다면..
루트 index 파일이 있는 곳에 _common.php 이름으로 파일을 하나 새로 만들고
파일 안의 내용은 이렇게 하세요.
<?php
include_once('./g5/common.php');
?>
그리고 index 파일 상단에는 이렇게..
<?php
include_once("./_common.php");
include_once(G5_PATH.'/head.sub.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
?>