Merge branch 'master' of github.com:gnuboard/g4s

This commit is contained in:
whitedot
2013-03-07 09:43:53 +09:00
5 changed files with 26 additions and 8 deletions

View File

@ -1,8 +1,13 @@
<?
include_once('./_common.php');
include_once(G4_LIB_PATH.'/latest.lib.php');
$g4['title'] = $group['gr_subject'];
if (G4_IS_MOBILE) {
include_once(G4_MOBILE_PATH.'/group.php');
return;
}
$g4['title'] = $group[gr_subject];
include_once('./_head.php');
?>
@ -17,7 +22,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest('basic', $row[bo_table], 5, 70);
echo latest('basic', $row['bo_table'], 5, 70);
}
?>
<!-- 메인화면 최신글 끝 -->

View File

@ -76,7 +76,7 @@ var g4_cookie_domain = "<?=G4_COOKIE_DOMAIN?>";
<script src="<?=G4_JS_URL?>/wrest.js"></script>
<? if(G4_IS_MOBILE) { ?>
<script>
document.cookie = "device_width=" + screen.width;
set_cookie("device_width", screen.width, 6, g4_cookie_domain);
</script>
<? } ?>
<? if (!defined('G4_IS_ADMIN')) { echo $config['cf_add_script']; } ?>

View File

@ -581,13 +581,13 @@ function font_default(id)
if(isNaN(count))
count = 0;
// font resize 카운트 초기화
set_cookie("ck_font_resize_count", 0, 1, g4_cookie_domain);
if(count > 0)
if(count > 0) {
act = "decrease";
else
} else {
act = "increase";
// 작게 후 기본 크기가 되지 않는 문제해결을 위해 추가
set_cookie("ck_font_resize_count", 0, 1, g4_cookie_domain);
}
for(i=0; i<Math.abs(count); i++) {
font_resize(id, act);

11
mobile/group.php Normal file
View File

@ -0,0 +1,11 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_MOBILE_PATH.'/_head.php');
?>
모바일용 게시판 그룹
<?
include_once(G4_MOBILE_PATH.'/_tail.php');
?>

View File

@ -1,4 +1,6 @@
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_MOBILE_PATH.'/_head.php');
?>