mobile skin 적용중
This commit is contained in:
25
index.php
25
index.php
@ -1,26 +1,11 @@
|
||||
<?php
|
||||
define('_INDEX_', true);
|
||||
include_once('./_common.php');
|
||||
include_once($g4['path'].'/lib/latest.lib.php');
|
||||
$index = 1;
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<!-- 메인화면 최신글 시작 -->
|
||||
<?
|
||||
// 최신글
|
||||
$sql = " select bo_table from $g4[board_table] order by gr_id, bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
|
||||
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
|
||||
|
||||
// 사용방법
|
||||
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
||||
echo latest("neo", $row['bo_table'], 10, 70);
|
||||
if (G4_IS_MOBILE) {
|
||||
include_once($g4['path'].'/mobile.index.php');
|
||||
} else {
|
||||
include_once($g4['path'].'/main.php');
|
||||
}
|
||||
?>
|
||||
<!-- 메인화면 최신글 끝 -->
|
||||
|
||||
<?
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user