unmanaged codestyle update

This commit is contained in:
Amberstone 2024-09-23 11:41:22 +09:00
parent 529957883c
commit 99e42ff33c
Signed by: amber
GPG key ID: 094B0E55F98D8BF1
61 changed files with 4185 additions and 3629 deletions

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
$src = "";
$img_content = "";

View file

@ -1,18 +1,27 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
$left = sql_fetch("select * from {$write_table} where wr_id = '{$list[$i]['wr_2']}'");
$right = sql_fetch("select * from {$write_table} where wr_id = '{$list[$i]['wr_3']}'");
$left_src = "";
$left_img_content = "";
if($left['wr_1']) { $left_src = $left['wr_1']; }
if($left_src) { $left_img_content = '<em style="background-image:url(\''.$left_src.'\');"></em>'; }
if ($left['wr_1']) {
$left_src = $left['wr_1'];
}
if ($left_src) {
$left_img_content = '<em style="background-image:url(\'' . $left_src . '\');"></em>';
}
$right_src = "";
$right_img_content = "";
if($right['wr_1']) { $right_src = $right['wr_1']; }
if($right_src) { $right_img_content = '<em style="background-image:url(\''.$right_src.'\');"></em>'; }
if ($right['wr_1']) {
$right_src = $right['wr_1'];
}
if ($right_src) {
$right_img_content = '<em style="background-image:url(\'' . $right_src . '\');"></em>';
}
$dday = "";
@ -37,7 +46,8 @@ $p_gallery_w = $gallery_w + 20;
</div>
</div><?php
?><div class="ch-box" style="width:<?=$p_gallery_w?>px;">
?>
<div class="ch-box" style="width:<?= $p_gallery_w ?>px;">
<div class="character-card-frame">
<div class="pad" style="padding-top:<?= $gallery_rato ?>%;"></div>
<a class="pic" href="./board.php?bo_table=<?= $bo_table ?>&wr_id=<?= $list[$i]['wr_3'] ?>">
@ -71,7 +81,8 @@ $p_gallery_w = $gallery_w + 20;
</div>
</div><?php
?><div class="ch-box" style="width:<?=$p_gallery_w?>px;">
?>
<div class="ch-box" style="width:<?= $p_gallery_w ?>px;">
<?php if ($list[$i]['wr_5']) { ?>
<div class="ui-btn relation-name">
<?= $list[$i]['wr_5'] ?>
@ -86,7 +97,8 @@ $p_gallery_w = $gallery_w + 20;
<?php if ($list[$i]['mb_id'] == $member['mb_id']) { ?>
<div class="txt-center">
<a href="./write.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i]['wr_id']?>&w=u" class="ui-btn"><i class="material-icons">settings</i> 수정하기</a>
<a href="./write.php?bo_table=<?= $bo_table ?>&wr_id=<?= $list[$i]['wr_id'] ?>&w=u" class="ui-btn"><i
class="material-icons">settings</i> 수정하기</a>
</div>
<?php } ?>
</li>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
$sst = $_GET['sst'];
@ -18,7 +19,8 @@ if ($board['bo_use_category']) {
$categories = explode('|', $board['bo_category_list']); // 구분자가 , 로 되어 있음
for ($i = 0; $i < count($categories); $i++) {
$category = trim($categories[$i]);
if ($category=='') continue;
if ($category == '')
continue;
$category_option .= '<li><a href="' . ($category_href . "&amp;sca=" . urlencode($category)) . '"';
$category_msg = '';
if ($category == $sca) { // 현재 선택된 카테고리라면
@ -43,7 +45,8 @@ if ($sca || $stx) {
$row = sql_fetch($sql);
$min_spt = (int) $row['min_wr_num'];
if (!$spt) $spt = $min_spt;
if (!$spt)
$spt = $min_spt;
$sql_search .= " and (wr_num between {$spt} and ({$spt} + {$config['cf_search_part']})) ";
@ -65,7 +68,9 @@ if ($sca || $stx) {
$page_rows = $board['bo_page_rows'];
$list_page_rows = $board['bo_page_rows'];
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
if ($page < 1) {
$page = 1;
} // 페이지가 없으면 첫 페이지 (1 페이지)
// 년도 2자리
$today2 = G5_TIME_YMD;
@ -86,8 +91,7 @@ if (!$sca) {
if ($sst == 'wr_id') {
// 전체 목록인 경우, 게시글 개수에서 공지글 제외
$total_count -= $board_notice_count;
}
else if($board_notice_count > 0) {
} else if ($board_notice_count > 0) {
$pair_str = implode("' or wr_id = '", $arr_notice);
$pair_str = "wr_id = '" . $pair_str . "'";
// 페어 목록인 경우, 페어 목록만 추출하고 게시글 개수를 공지글로 한정
@ -98,10 +102,12 @@ if (!$sca) {
$notice_result = sql_query($pair_sql);
for ($k = 0; $row = sql_fetch_array($notice_result); $k++) {
if (!$row['wr_id']) continue;
if (!$row['wr_id'])
continue;
$notice_array[] = $row['wr_id'];
if($k < $from_notice_idx) continue;
if ($k < $from_notice_idx)
continue;
if ($sst != 'wr_id') {
$list[$i] = get_list($row, $board, $board_skin_url, G5_IS_MOBILE ? $board['bo_mobile_subject_len'] : $board['bo_subject_len']);
$list[$i]['is_notice'] = true;
@ -175,8 +181,7 @@ if($page_rows > 0) {
$k = 0;
while ($row = sql_fetch_array($result))
{
while ($row = sql_fetch_array($result)) {
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
if ($sca || $stx)
$row = sql_fetch(" select * from {$write_table} where wr_id = '{$row['wr_parent']}' ");

View file

@ -1,9 +1,10 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
//-- 리스트 정렬을 임의로 조정 하는 기능을 합니다.
include_once($board_skin_path.'/_setting.php');
include_once($board_skin_path.'/list.order.skin.php');
include_once $board_skin_path . "/_setting.php";
include_once $board_skin_path . "/list.order.skin.php";
$category_list = get_category_list($bo_table, $sca);
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
@ -20,7 +21,9 @@ $is_notice = false;
<style>
:root {
--thumb-bak: <?= $color_bak ?>;
--cover-bak:linear-gradient(0deg, <?=$color_bak?> 0%, transparent 100%);
--cover-bak: linear-gradient(0deg,
<?= $color_bak ?>
0%, transparent 100%);
--cover-color: <?= $color_default ?>;
}
</style>
@ -39,7 +42,8 @@ $is_notice = false;
<?php if ($is_category) { ?>
<nav class="board-category">
<ul>
<li><a href="./board.php?bo_table=<?=$bo_table?>" class="ui-btn <?=!$sca || $sca == ''? 'point' : 'etc'?>">ALL</a></li>
<li><a href="./board.php?bo_table=<?= $bo_table ?>" class="ui-btn <?= !$sca || $sca == '' ? 'point' : 'etc' ?>">ALL</a>
</li>
<?php echo $category_list ?>
</ul>
</nav>
@ -59,12 +63,16 @@ $is_notice = false;
include($board_skin_path . "/list.couple.skin.php");
$is_notice = true;
} else {
if($is_notice) { break; }
if ($is_notice) {
break;
}
include($board_skin_path . "/list.character.skin.php");
}
}
if (count($list) == 0) { echo "<li class=\"empty_list\">등록된 캐릭터가 없습니다.</li>"; } ?>
if (count($list) == 0) {
echo "<li class=\"empty_list\">등록된 캐릭터가 없습니다.</li>";
} ?>
</ul>
</div>
@ -76,7 +84,8 @@ $is_notice = false;
?>
<a href="./board.php?bo_table=<?= $bo_table ?>" class="ui-btn etc"><i class="material-icons">list</i> 메인</a>
<?php } else { ?>
<a href="./board.php?bo_table=<?=$bo_table?>&sst=wr_id" class="ui-btn etc"><i class="material-icons">list</i> 전체 목록</a>
<a href="./board.php?bo_table=<?= $bo_table ?>&sst=wr_id" class="ui-btn etc"><i class="material-icons">list</i> 전체
목록</a>
<?php }
} else {
if ($list_href) { ?>
@ -87,7 +96,8 @@ $is_notice = false;
<?php if ($total_count >= 2) { ?>
<a href="<?php echo $write_href ?>&type=pair" class="ui-btn"><i class="material-icons">edit</i> 페어 등록하기</a>
<?php } ?>
<a href="<?php echo $write_href ?>&sst=<?=$sst?>" class="ui-btn point"><i class="material-icons">edit</i> 캐릭터 등록하기</a>
<a href="<?php echo $write_href ?>&sst=<?= $sst ?>" class="ui-btn point"><i class="material-icons">edit</i> 캐릭터
등록하기</a>
<?php } ?>
</div>

View file

@ -34,4 +34,4 @@ if($sql_article != "") {
sql_query($sql);
}
include($board_skin_path."/view_body.skin.php");
include $board_skin_path . "/view_body.skin.php";

View file

@ -22,4 +22,4 @@ if($bd['bd_url']) {
sql_query($sql);
}
include($board_skin_path."/view_body.skin.php");
include $board_skin_path . "/view_body.skin.php";

View file

@ -1,7 +1,8 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once($board_skin_path.'/_setting.php');
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
include_once $board_skin_path . "/_setting.php";
include_once G5_LIB_PATH . "/thumbnail.lib.php";
if ($write['wr_type'] == 'pair') {
goto_url($list_href . $qstr);
@ -42,7 +43,16 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
</style>
<div class="loading">
<div>
<div class="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
<div class="lds-roller">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<p>Loading...</p>
</div>
</div>
@ -51,7 +61,8 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
<?php if ($write['wr_2']) { ?>
<div class="ch-body" onclick="$(this).toggleClass('pop');">
<div class="img">
<div><em style="background-image:url(<?=$check_body?>);"></em><img src="<?=$check_body?>" alt="" onerror="this.remove();"/></div>
<div><em style="background-image:url(<?= $check_body ?>);"></em><img src="<?= $check_body ?>" alt=""
onerror="this.remove();" /></div>
</div>
</div>
<?php } ?>
@ -93,9 +104,12 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
<hr class="line" />
<div class="control">
<?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="ui-btn etc"><i class="material-icons">edit</i> 수정</a><?php } ?>
<?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn etc" onclick="del(this.href); return false;"><i class="material-icons">delete</i> 삭제</a><?php } ?>
<?php if ($update_href && $write['wr_2'] != '') { ?><a href="javascript:$('.body-add-form').toggle();" class="ui-btn point"><i class="material-icons">checkroom</i> 전신추가</a><?php } ?>
<?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="ui-btn etc"><i
class="material-icons">edit</i> 수정</a><?php } ?>
<?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn etc"
onclick="del(this.href); return false;"><i class="material-icons">delete</i> 삭제</a><?php } ?>
<?php if ($update_href && $write['wr_2'] != '') { ?><a href="javascript:$('.body-add-form').toggle();"
class="ui-btn point"><i class="material-icons">checkroom</i> 전신추가</a><?php } ?>
<a href="<?php echo $list_href ?><?= $qstr ?>" class="ui-btn etc"><i class="material-icons">list</i> 목록</a>
</div>
<?php if ($update_href && $write['wr_2'] != '') { ?>
@ -112,7 +126,8 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
<div class="input-box">
<input type="text" name="add_new_body" value="" />
<input type="file" name="add_new_body_file" title="용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" accept="image/*"/>
<input type="file" name="add_new_body_file" title="용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
accept="image/*" />
<button type="button" onclick="fn_body_add_form('frm_add_body');" class="ui-btn">등록</button>
</div>
</form>
@ -159,25 +174,33 @@ $default_font = hex2rgba($default_font['cs_value'], $default_font['cs_etc_1']);
?>
</div>
<?php if ($write['wr_4']) { ?><div class="sub-title txt-default"><?=$write['wr_4']?></div><?php } ?>
<?php if ($write['wr_4_txt']) { ?><div class="descript"><?=nl2br($write['wr_4_txt'])?></div><?php } ?>
<?php if ($write['wr_4']) { ?>
<div class="sub-title txt-default"><?= $write['wr_4'] ?></div><?php } ?>
<?php if ($write['wr_4_txt']) { ?>
<div class="descript"><?= nl2br($write['wr_4_txt']) ?></div><?php } ?>
<?php if ($write['wr_5']) { ?><div class="sub-title txt-default"><?=$write['wr_5']?></div><?php } ?>
<?php if ($write['wr_5_txt']) { ?><div class="descript"><?=nl2br($write['wr_5_txt'])?></div><?php } ?>
<?php if ($write['wr_5']) { ?>
<div class="sub-title txt-default"><?= $write['wr_5'] ?></div><?php } ?>
<?php if ($write['wr_5_txt']) { ?>
<div class="descript"><?= nl2br($write['wr_5_txt']) ?></div><?php } ?>
<?php if ($write['wr_6']) { ?><div class="sub-title txt-default"><?=$write['wr_6']?></div><?php } ?>
<?php if ($write['wr_6_txt']) { ?><div class="descript"><?=nl2br($write['wr_6_txt'])?></div><?php } ?>
<?php if ($write['wr_6']) { ?>
<div class="sub-title txt-default"><?= $write['wr_6'] ?></div><?php } ?>
<?php if ($write['wr_6_txt']) { ?>
<div class="descript"><?= nl2br($write['wr_6_txt']) ?></div><?php } ?>
<?php if ($write['wr_7']) { ?><div class="sub-title txt-default"><?=$write['wr_7']?></div><?php } ?>
<?php if ($write['wr_7_txt']) { ?><div class="descript"><?=nl2br($write['wr_7_txt'])?></div><?php } ?>
<?php if ($write['wr_7']) { ?>
<div class="sub-title txt-default"><?= $write['wr_7'] ?></div><?php } ?>
<?php if ($write['wr_7_txt']) { ?>
<div class="descript"><?= nl2br($write['wr_7_txt']) ?></div><?php } ?>
<?php if ($write['wr_8']) { ?><div class="sub-title txt-default"><?=$write['wr_8']?></div><?php } ?>
<?php if ($write['wr_8_txt']) { ?><div class="descript"><?=nl2br($write['wr_8_txt'])?></div><?php } ?>
<?php if ($write['wr_8']) { ?>
<div class="sub-title txt-default"><?= $write['wr_8'] ?></div><?php } ?>
<?php if ($write['wr_8_txt']) { ?>
<div class="descript"><?= nl2br($write['wr_8_txt']) ?></div><?php } ?>
</div>
</div>
</div>
</div>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
$body_cnt = sql_fetch("select count(*) as cnt from {$g5['character_body_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}'");
$body_cnt = $body_cnt['cnt'];
@ -20,13 +21,15 @@ if($body_cnt > 0) {
if ($i == 0 && $write['wr_2'] != '') {
?>
<li class="swiper-slide">
<a href="#"; onclick="fn_viewer_chBody('', '<?=$write['wr_2']?>', this); return false;" class="theme-box"><img src="<?=$write['wr_2']?>" alt="" /></a>
<a href="#" ; onclick="fn_viewer_chBody('', '<?= $write['wr_2'] ?>', this); return false;"
class="theme-box"><img src="<?= $write['wr_2'] ?>" alt="" /></a>
</li>
<?php
}
?>
<li class="swiper-slide">
<a href="#"; onclick="fn_viewer_chBody('<?=$bd['bd_id']?>', '<?=$bd['bd_url']?>', this); return false;" class="theme-box"><img src="<?=$bd['bd_url']?>" alt="" /></a>
<a href="#" ; onclick="fn_viewer_chBody('<?= $bd['bd_id'] ?>', '<?= $bd['bd_url'] ?>', this); return false;"
class="theme-box"><img src="<?= $bd['bd_url'] ?>" alt="" /></a>
</li>
<?php
}
@ -145,4 +148,4 @@ if($body_cnt > 0) {
<div id="control_body_box"></div>
<hr class='line' />
<?php } ?>
<?php }

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
$comment_action_url = https_url(G5_BBS_DIR) . "/write_comment_update.php";
?>
@ -27,13 +28,15 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
$cmt_sv = $cmt_amt - $i + 1; // 댓글 헤더 z-index 재설정 ie8 이하 사이드뷰 겹침 문제 해결
?>
<article id="c_<?php echo $comment_id ?>" <?php if ($cmt_depth) { ?>class="is-reply" style="border-left-width:<?php echo $cmt_depth ?>px;"<?php } ?>>
<article id="c_<?php echo $comment_id ?>" <?php if ($cmt_depth) { ?>class="is-reply"
style="border-left-width:<?php echo $cmt_depth ?>px;" <?php } ?>>
<header style="z-index:<?php echo $cmt_sv; ?>">
<?php echo $list[$i]['name'] ?>
<?php if ($is_ip_view) { ?>
<span class="bo_vc_hdinfo"><?php echo $list[$i]['ip']; ?></span>
<?php } ?>
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo date('m/d H:i', strtotime($list[$i]['datetime'])) ?></time></span>
<span class="bo_vc_hdinfo"><time
datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo date('m/d H:i', strtotime($list[$i]['datetime'])) ?></time></span>
<?php
include(G5_SNS_PATH . '/view_comment_list.sns.skin.php');
?>
@ -41,15 +44,18 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<!-- 댓글 출력 -->
<p>
<?php if (strstr($list[$i]['wr_option'], "secret")) { ?><img src="<?php echo $board_skin_url; ?>/img/icon_secret.gif" alt="비밀글"><?php } ?>
<?php if (strstr($list[$i]['wr_option'], "secret")) { ?><img
src="<?php echo $board_skin_url; ?>/img/icon_secret.gif" alt="비밀글"><?php } ?>
<?php echo $comment ?>
</p>
<span id="edit_<?php echo $comment_id ?>"></span><!-- 수정 -->
<span id="reply_<?php echo $comment_id ?>"></span><!-- 답변 -->
<input type="hidden" value="<?php echo strstr($list[$i]['wr_option'],"secret") ?>" id="secret_comment_<?php echo $comment_id ?>">
<textarea id="save_comment_<?php echo $comment_id ?>" style="display:none"><?php echo get_text($list[$i]['content1'], 0) ?></textarea>
<input type="hidden" value="<?php echo strstr($list[$i]['wr_option'], "secret") ?>"
id="secret_comment_<?php echo $comment_id ?>">
<textarea id="save_comment_<?php echo $comment_id ?>"
style="display:none"><?php echo get_text($list[$i]['content1'], 0) ?></textarea>
<?php if ($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
$query_string = clean_query_string($_SERVER['QUERY_STRING']);
@ -67,15 +73,24 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
?>
<footer>
<ul class="bo_vc_act">
<?php if ($list[$i]['is_reply']) { ?><li><a href="<?php echo $c_reply_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'c'); return false;" class="ui-btn small point">답변</a></li><?php } ?>
<?php if ($list[$i]['is_edit']) { ?><li><a href="<?php echo $c_edit_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'cu'); return false;" class="ui-btn small etc">수정</a></li><?php } ?>
<?php if ($list[$i]['is_del']) { ?><li><a href="<?php echo $list[$i]['del_link']; ?>" onclick="return comment_delete();" class="ui-btn small">삭제</a></li><?php } ?>
<?php if ($list[$i]['is_reply']) { ?>
<li><a href="<?php echo $c_reply_href; ?>"
onclick="comment_box('<?php echo $comment_id ?>', 'c'); return false;" class="ui-btn small point">답변</a>
</li><?php } ?>
<?php if ($list[$i]['is_edit']) { ?>
<li><a href="<?php echo $c_edit_href; ?>"
onclick="comment_box('<?php echo $comment_id ?>', 'cu'); return false;" class="ui-btn small etc">수정</a></li>
<?php } ?>
<?php if ($list[$i]['is_del']) { ?>
<li><a href="<?php echo $list[$i]['del_link']; ?>" onclick="return comment_delete();"
class="ui-btn small">삭제</a></li><?php } ?>
</ul>
</footer>
<?php } ?>
</article>
<?php } ?>
<?php if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
<?php if ($i == 0) { //댓글이 없다면 ?>
<p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
</section>
<!-- } 댓글 -->
@ -86,7 +101,8 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
?>
<!-- 댓글 쓰기 시작 { -->
<aside id="bo_vc_w" class="theme-box">
<form name="fviewcomment" action="<?php echo $comment_action_url; ?>" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
<form name="fviewcomment" action="<?php echo $comment_action_url; ?>" onsubmit="return fviewcomment_submit(this);"
method="post" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
@ -108,11 +124,13 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<?php if ($is_guest) { ?>
<tr>
<th scope="row"><label for="wr_name">이름<strong class="sound_only"> 필수</strong></label></th>
<td><input type="text" name="wr_name" value="<?php echo get_cookie("ck_sns_name"); ?>" id="wr_name" required class="frm_input required" size="5" maxLength="20"></td>
<td><input type="text" name="wr_name" value="<?php echo get_cookie("ck_sns_name"); ?>" id="wr_name" required
class="frm_input required" size="5" maxLength="20"></td>
</tr>
<tr>
<th scope="row"><label for="wr_password">비밀번호<strong class="sound_only"> 필수</strong></label></th>
<td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="20"></td>
<td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10"
maxLength="20"></td>
</tr>
<?php } ?>
<tr>
@ -129,10 +147,11 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
<tr>
<th scope="row">내용</th>
<td>
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?>
<textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용"
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span
id="char_count"></span>글자</strong><?php } ?>
<textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용" <?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');" <?php } ?>><?php echo $c_wr_content; ?></textarea>
<?php if ($comment_min || $comment_max) { ?>
<script> check_byte('wr_content', 'char_count'); </script><?php } ?>
<script>
$(document).on("keyup change", "textarea#wr_content[maxlength]", function () {
var str = $(this).val()
@ -160,8 +179,7 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
var save_before = '';
var save_html = document.getElementById('bo_vc_w').innerHTML;
function good_and_write()
{
function good_and_write() {
var f = document.fviewcomment;
if (fviewcomment_submit(f)) {
f.is_good.value = 1;
@ -171,8 +189,7 @@ function good_and_write()
}
}
function fviewcomment_submit(f)
{
function fviewcomment_submit(f) {
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
f.is_good.value = 0;
@ -204,49 +221,42 @@ function fviewcomment_submit(f)
// 양쪽 공백 없애기
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
if (char_min > 0 || char_max > 0)
{
if (char_min > 0 || char_max > 0) {
check_byte('wr_content', 'char_count');
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt)
{
if (char_min > 0 && char_min > cnt) {
alert("댓글은 " + char_min + "글자 이상 쓰셔야 합니다.");
return false;
} else if (char_max > 0 && char_max < cnt)
{
} else if (char_max > 0 && char_max < cnt) {
alert("댓글은 " + char_max + "글자 이하로 쓰셔야 합니다.");
return false;
}
}
else if (!document.getElementById('wr_content').value)
{
else if (!document.getElementById('wr_content').value) {
alert("댓글을 입력하여 주십시오.");
return false;
}
if (typeof(f.wr_name) != 'undefined')
{
if (typeof (f.wr_name) != 'undefined') {
f.wr_name.value = f.wr_name.value.replace(pattern, "");
if (f.wr_name.value == '')
{
if (f.wr_name.value == '') {
alert('이름이 입력되지 않았습니다.');
f.wr_name.focus();
return false;
}
}
if (typeof(f.wr_password) != 'undefined')
{
if (typeof (f.wr_password) != 'undefined') {
f.wr_password.value = f.wr_password.value.replace(pattern, "");
if (f.wr_password.value == '')
{
if (f.wr_password.value == '') {
alert('비밀번호가 입력되지 않았습니다.');
f.wr_password.focus();
return false;
}
}
<?php if($is_guest) echo chk_captcha_js(); ?>
<?php if ($is_guest)
echo chk_captcha_js(); ?>
set_comment_token(f);
@ -255,12 +265,10 @@ function fviewcomment_submit(f)
return true;
}
function comment_box(comment_id, work)
{
function comment_box(comment_id, work) {
var el_id;
// 댓글 아이디가 넘어오면 답변, 수정
if (comment_id)
{
if (comment_id) {
if (work == 'c')
el_id = 'reply_' + comment_id;
else
@ -269,10 +277,8 @@ function comment_box(comment_id, work)
else
el_id = 'bo_vc_w';
if (save_before != el_id)
{
if (save_before)
{
if (save_before != el_id) {
if (save_before) {
document.getElementById(save_before).style.display = 'none';
document.getElementById(save_before).innerHTML = '';
}
@ -280,8 +286,7 @@ function comment_box(comment_id, work)
document.getElementById(el_id).style.display = '';
document.getElementById(el_id).innerHTML = save_html;
// 댓글 수정
if (work == 'cu')
{
if (work == 'cu') {
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
if (typeof char_count != 'undefined')
check_byte('wr_content', 'char_count');
@ -301,8 +306,7 @@ function comment_box(comment_id, work)
}
}
function comment_delete()
{
function comment_delete() {
return confirm("이 댓글을 삭제하시겠습니까?");
}

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
if ($w == '') {
$write['wr_4'] = '외관';
@ -12,7 +13,8 @@ if($w == '') {
<tr>
<th scope="row">캐릭터 이름</th>
<td>
<input type="text" name="wr_subject" value="<?php echo $subject ?>" required class="frm_input required" size="50" maxlength="255">
<input type="text" name="wr_subject" value="<?php echo $subject ?>" required class="frm_input required" size="50"
maxlength="255">
</td>
</tr>
<tr>
@ -48,7 +50,8 @@ if($w == '') {
<tr>
<td>업로드</td>
<td>
<input type="file" name="wr_1_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
<input type="file" name="wr_1_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
class="frm_file frm_input">
</td>
</tr>
<tr>
@ -62,7 +65,8 @@ if($w == '') {
<tr>
<td>업로드</td>
<td>
<input type="file" name="wr_2_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
<input type="file" name="wr_2_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
class="frm_file frm_input">
</td>
</tr>
</tbody>
@ -77,7 +81,8 @@ if($w == '') {
<tr>
<th scope="row">기본정보</th>
<td>
<input type="text" name="wr_content" placeholder="나이, 성별 등" value="<?php echo $write['wr_content'] ?>" class="frm_input" size="50" maxlength="255">
<input type="text" name="wr_content" placeholder="나이, 성별 등" value="<?php echo $write['wr_content'] ?>"
class="frm_input" size="50" maxlength="255">
</td>
</tr>
<tr>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
include_once(G5_PLUGIN_PATH . '/jquery-ui/datepicker.php'); // 달력
// 게시물 목록을 불러온다.
@ -17,7 +18,8 @@ for($i=0; $row = sql_fetch_array($character_list); $i++) {
<tr>
<th scope="row">시작일자</th>
<td>
<input type="text" name="wr_subject" value="<?php echo $subject ?>" required class="frm_input required datepicker" size="12" maxlength="255">
<input type="text" name="wr_subject" value="<?php echo $subject ?>" required class="frm_input required datepicker"
size="12" maxlength="255">
</td>
</tr>
<tr>
@ -62,12 +64,15 @@ $(function(){
<?php
for ($i = 0; $i < count($character_ids); $i++) {
echo "<option value='{$character_ids[$i]['wr_id']}' ";
if($write['wr_2'] == $character_ids[$i]['wr_id']) echo "selected";
if ($write['wr_2'] == $character_ids[$i]['wr_id'])
echo "selected";
echo ">{$character_ids[$i]['wr_subject']}</option>";
}
?>
</select>
</td></tr><tr>
</td>
</tr>
<tr>
<td>관계명</td>
<td>
<input type="text" name="wr_4" value="<?php echo $write['wr_4'] ?>" class="frm_input" size="30" maxlength="255">
@ -86,12 +91,15 @@ $(function(){
<?php
for ($i = 0; $i < count($character_ids); $i++) {
echo "<option value='{$character_ids[$i]['wr_id']}' ";
if($write['wr_3'] == $character_ids[$i]['wr_id']) echo "selected";
if ($write['wr_3'] == $character_ids[$i]['wr_id'])
echo "selected";
echo ">{$character_ids[$i]['wr_subject']}</option>";
}
?>
</select>
</td></tr><tr>
</td>
</tr>
<tr>
<td>관계명</td>
<td>
<input type="text" name="wr_5" value="<?php echo $write['wr_5'] ?>" class="frm_input" size="30" maxlength="255">
@ -118,7 +126,8 @@ $(function(){
<tr>
<td>업로드</td>
<td>
<input type="file" name="wr_1_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
<input type="file" name="wr_1_file" title="파일첨부 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
class="frm_file frm_input">
</td>
</tr>
</tbody>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
include_once($board_skin_path . '/_setting.php');
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
@ -41,7 +42,8 @@ if($w==''){
<?php } ?>
<!-- 게시물 작성/수정 시작 { -->
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);"
method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
@ -93,28 +95,32 @@ if($w==''){
<?php if ($is_name) { ?>
<tr>
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required
class="frm_input required" size="10" maxlength="20"></td>
</tr>
<?php } ?>
<?php if ($is_password) { ?>
<tr>
<th scope="row"><label for="wr_password">비밀번호<strong class="sound_only">필수</strong></label></th>
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?>
class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
</tr>
<?php } ?>
<?php if ($is_email) { ?>
<tr>
<th scope="row"><label for="wr_email">이메일</label></th>
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email"
size="50" maxlength="100"></td>
</tr>
<?php } ?>
<?php if ($is_homepage) { ?>
<tr>
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input"
size="50"></td>
</tr>
<?php } ?>
@ -156,9 +162,12 @@ if($w==''){
</table>
<div class="btn_confirm">
<button type="submit" id="btn_submit" accesskey="s" class="ui-btn point"><i class="material-icons">edit</i> 작성</button>
<?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn etc" onclick="del(this.href); return false;"><i class="material-icons">delete</i> 삭제</a><?php } ?>
<a href="./board.php?bo_table=<?php echo $bo_table ?>&sst=<?=$sst?>" class="ui-btn"><i class="material-icons">list</i> 목록</a>
<button type="submit" id="btn_submit" accesskey="s" class="ui-btn point"><i class="material-icons">edit</i>
작성</button>
<?php if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="ui-btn etc"
onclick="del(this.href); return false;"><i class="material-icons">delete</i> 삭제</a><?php } ?>
<a href="./board.php?bo_table=<?php echo $bo_table ?>&sst=<?= $sst ?>" class="ui-btn"><i
class="material-icons">list</i> 목록</a>
</div>
</form>

View file

@ -1,6 +1,7 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once($board_skin_path.'/_setting.php');
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
include_once $board_skin_path . "/_setting.php";
// 두상 및 전신 저장 처리
$sql_article = " wr_ing = '{$wr_ing}',
@ -77,5 +78,3 @@ $sql = " update {$write_table}
set {$sql_article}
where wr_id = '{$wr_id}' ";
sql_query($sql);
?>

View file

@ -1,5 +1,6 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
/*
LOG HashGuide
@ -26,5 +27,3 @@ if($item_log[0]) {
/** 아이템 사용시 **/
include($board_skin_path . "/action/log.item.skin.php");
}
?>

View file

@ -1,4 +1,4 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
goto_url('./board.php?bo_table=' . $bo_table . '&amp;' . $qstr . '&amp;#log_' . $write['wr_parent']);
?>

View file

@ -1,5 +1,6 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
$update_href = $delete_href = '';
@ -11,8 +12,7 @@ if (($member['mb_id'] && ($member['mb_id'] == $list_item['mb_id'])) || $is_admin
set_session('ss_delete_token', $token = uniqid(time()));
$delete_href = './delete.php?bo_table=' . $bo_table . '&amp;wr_id=' . $list_item['wr_id'] . '&amp;token=' . $token . '&amp;page=' . $page . urldecode($qstr);
}
}
else if (!$list_item['mb_id']) { // 회원이 쓴 글이 아니라면
} else if (!$list_item['mb_id']) { // 회원이 쓴 글이 아니라면
$update_href = './password.php?w=u&amp;bo_table=' . $bo_table . '&amp;wr_id=' . $list_item['wr_id'] . '&amp;page=' . $page . $qstr;
$delete_href = './password.php?w=d&amp;bo_table=' . $bo_table . '&amp;wr_id=' . $list_item['wr_id'] . '&amp;page=' . $page . $qstr;
}
@ -121,8 +121,10 @@ sql_query("update {$g5['call_table']} set bc_check = 1 where re_mb_id = '{$membe
<?php if ($is_viewer) {
// 보기 권한이 존재 할 경우 (멤버의 경우)
// -- 버튼 영역 출력
if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="del" onclick="del(this.href); return false;">삭제</a><?php } ?>
<a href="?bo_table=<?=$bo_table?>&log=<?=$list_item['wr_num'] * -1?>&single=Y" target="_blank" class="new">로그링크</a>
if ($delete_href) { ?><a href="<?php echo $delete_href ?>" class="del"
onclick="del(this.href); return false;">삭제</a><?php } ?>
<a href="?bo_table=<?= $bo_table ?>&log=<?= $list_item['wr_num'] * -1 ?>&single=Y" target="_blank"
class="new">로그링크</a>
<?php if ($update_href) { ?><a href="<?php echo $update_href ?>" class="mod">수정</a><?php } ?>
<?php } ?>
</div>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH . '/thumbnail.lib.php');
include_once($board_skin_path . '/emoticon/_setting.emoticon.php');
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
@ -28,7 +29,8 @@ $owner_behind = $owner_behind['cs_etc_4'];
<?php if ($is_category) { ?>
<nav class="board-category">
<ul>
<li><a href="./board.php?bo_table=<?=$bo_table?>" class="ui-btn <?=!$sca || $sca == ''? 'point' : 'etc'?>">ALL</a></li>
<li><a href="./board.php?bo_table=<?= $bo_table ?>" class="ui-btn <?= !$sca || $sca == '' ? 'point' : 'etc' ?>">ALL</a>
</li>
<?php echo $category_list ?>
</ul>
</nav>
@ -53,7 +55,9 @@ $owner_behind = $owner_behind['cs_etc_4'];
$list_item = $list[$i];
include($board_skin_path . "/list.log.skin.php");
}
if (count($list) == 0) { echo "<div class=\"empty_list\">등록된 로그가 없습니다.</div>"; }
if (count($list) == 0) {
echo "<div class=\"empty_list\">등록된 로그가 없습니다.</div>";
}
?>
</div>
@ -80,7 +84,8 @@ $owner_behind = $owner_behind['cs_etc_4'];
</select>
</fieldset>
<fieldset class="sch_text">
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" id="stx" class="frm_input" maxlength="20">
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" id="stx" class="frm_input"
maxlength="20">
</fieldset>
<fieldset class="sch_button">
<button type="submit" class="ui-btn point">검색</button>
@ -100,8 +105,7 @@ var avo_board_skin_url = "<?=$board_skin_url?>";
var save_before = '';
var save_html = '';
function fviewcomment_submit(f)
{
function fviewcomment_submit(f) {
set_comment_token(f);
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
@ -131,22 +135,18 @@ function fviewcomment_submit(f)
return false;
}
if (typeof(f.wr_name) != 'undefined')
{
if (typeof (f.wr_name) != 'undefined') {
f.wr_name.value = f.wr_name.value.replace(pattern, "");
if (f.wr_name.value == '')
{
if (f.wr_name.value == '') {
alert('이름이 입력되지 않았습니다.');
f.wr_name.focus();
return false;
}
}
if (typeof(f.wr_password) != 'undefined')
{
if (typeof (f.wr_password) != 'undefined') {
f.wr_password.value = f.wr_password.value.replace(pattern, "");
if (f.wr_password.value == '')
{
if (f.wr_password.value == '') {
alert('비밀번호가 입력되지 않았습니다.');
f.wr_password.focus();
return false;
@ -156,8 +156,7 @@ function fviewcomment_submit(f)
return true;
}
function comment_delete()
{
function comment_delete() {
return confirm("이 댓글을 삭제하시겠습니까?");
}
@ -192,7 +191,8 @@ function modify_commnet(co_id) {
</script>
<form name="modify_comment" id="frm_modify_comment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
<form name="modify_comment" id="frm_modify_comment" action="./write_comment_update.php"
onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
<input type="hidden" name="w" value="cu">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">

View file

@ -1,3 +1,3 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
$comment = [];
@ -12,8 +13,7 @@ if ($member['mb_level'] >= $board['bo_comment_level'] && $is_member)
//$sql = " select * from {$write_table} where wr_parent = '{$wr_id}' and wr_is_comment = 1 order by wr_comment desc, wr_comment_reply ";
$sql = " select * from $write_table where wr_parent = '{$list_item['wr_id']}' and wr_content != '' order by wr_datetime asc ";
$result = sql_query($sql);
for ($c_i=0; $c_row=sql_fetch_array($result); $c_i++)
{
for ($c_i = 0; $c_row = sql_fetch_array($result); $c_i++) {
$comment[$c_i] = $c_row;
//$comment[$c_i]['name'] = get_sideview($c_row['mb_id'], cut_str($c_row['wr_name'], 20, ''), $c_row['wr_email'], $c_row['wr_homepage']);
@ -30,10 +30,12 @@ for ($c_i=0; $c_row=sql_fetch_array($result); $c_i++)
//$comment[$c_i]['content'] = eregi_replace("[^ \n<>]{130}", "\\0\n", $c_row['wr_content']);
$comment[$c_i]['content'] = $comment[$c_i]['content1'] = '비밀글 입니다.';
if (!strstr($c_row['wr_option'], 'secret') ||
if (
!strstr($c_row['wr_option'], 'secret') ||
$is_admin ||
($write['mb_id'] == $member['mb_id'] && $member['mb_id']) ||
($c_row['mb_id']==$member['mb_id'] && $member['mb_id'])) {
($c_row['mb_id'] == $member['mb_id'] && $member['mb_id'])
) {
$comment[$c_i]['content1'] = $c_row['wr_content'];
$comment[$c_i]['content'] = conv_content($c_row['wr_content'], 0, 'wr_content');
$comment[$c_i]['content'] = search_font($stx, $comment[$c_i]['content']);
@ -58,22 +60,17 @@ for ($c_i=0; $c_row=sql_fetch_array($result); $c_i++)
$comment[$c_i]['is_reply'] = false;
$comment[$c_i]['is_edit'] = false;
$comment[$c_i]['is_del'] = false;
if ($is_comment_write || $is_admin)
{
if ($is_comment_write || $is_admin) {
$token = '';
if ($member['mb_id'])
{
if ($c_row['mb_id'] == $member['mb_id'] || $is_admin)
{
if ($member['mb_id']) {
if ($c_row['mb_id'] == $member['mb_id'] || $is_admin) {
set_session('ss_delete_comment_' . $c_row['wr_id'] . '_token', $token = uniqid(time()));
$comment[$c_i]['del_link'] = './delete_comment.php?bo_table=' . $bo_table . '&amp;comment_id=' . $c_row['wr_id'] . '&amp;token=' . $token . '&amp;page=' . $page . $qstr;
$comment[$c_i]['is_edit'] = true;
$comment[$c_i]['is_del'] = true;
}
}
else
{
} else {
if (!$c_row['mb_id']) {
$comment[$c_i]['del_link'] = './password.php?w=x&amp;bo_table=' . $bo_table . '&amp;comment_id=' . $c_row['wr_id'] . '&amp;page=' . $page . $qstr;
$comment[$c_i]['is_del'] = true;
@ -86,13 +83,10 @@ for ($c_i=0; $c_row=sql_fetch_array($result); $c_i++)
// 05.05.22
// 답변있는 코멘트는 수정, 삭제 불가
if ($i > 0 && !$is_admin)
{
if ($c_row['wr_comment_reply'])
{
if ($i > 0 && !$is_admin) {
if ($c_row['wr_comment_reply']) {
$tmp_comment_reply = substr($c_row['wr_comment_reply'], 0, strlen($c_row['wr_comment_reply']) - 1);
if ($tmp_comment_reply == $comment[$c_i-1]['wr_comment_reply'])
{
if ($tmp_comment_reply == $comment[$c_i - 1]['wr_comment_reply']) {
$comment[$c_i - 1]['is_edit'] = false;
$comment[$c_i - 1]['is_del'] = false;
}
@ -101,12 +95,9 @@ for ($c_i=0; $c_row=sql_fetch_array($result); $c_i++)
}
// 코멘트수 제한 설정값
if ($is_admin)
{
if ($is_admin) {
$comment_min = $comment_max = 0;
}
else
{
} else {
$comment_min = (int) $board['bo_comment_min'];
$comment_max = (int) $board['bo_comment_max'];
}

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
for ($index = 0; $index < count($comment); $index++) {
@ -82,8 +83,10 @@ for ($index=0; $index<count($comment); $index++) {
</div>
<?php if ($log_comment['is_edit']) { ?>
<div class="modify_area" id="save_comment_<?php echo $comment_id ?>">
<textarea id="save_co_comment_<?php echo $comment_id ?>"><?php echo get_text($log_comment['content1'], 0) ?></textarea>
<button type="button" class="mod_comment ui-btn" onclick="modify_commnet('<?php echo $comment_id ?>'); return false;">수정</button>
<textarea
id="save_co_comment_<?php echo $comment_id ?>"><?php echo get_text($log_comment['content1'], 0) ?></textarea>
<button type="button" class="mod_comment ui-btn"
onclick="modify_commnet('<?php echo $comment_id ?>'); return false;">수정</button>
</div>
<?php } ?>
</div>
@ -92,10 +95,11 @@ for ($index=0; $index<count($comment); $index++) {
<span class="date">
<?= date('Y-m-d H:i:s', strtotime($log_comment['wr_datetime'])) ?>
</span>
<?php if ($log_comment['is_del']) { ?><a href="<?php echo $log_comment['del_link']; ?>" onclick="return comment_delete();" class="del">삭제</a><?php } ?>
<?php if ($log_comment['is_edit']) { ?><a href="<?php echo $c_edit_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', '<?=$list_item['wr_id']?>'); return false;" class="mod">수정</a><?php } ?>
<?php if ($log_comment['is_del']) { ?><a href="<?php echo $log_comment['del_link']; ?>"
onclick="return comment_delete();" class="del">삭제</a><?php } ?>
<?php if ($log_comment['is_edit']) { ?><a href="<?php echo $c_edit_href; ?>"
onclick="comment_box('<?php echo $comment_id ?>', '<?= $list_item['wr_id'] ?>'); return false;"
class="mod">수정</a><?php } ?>
</div>
</div>
<?php } ?>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
$is_error = false;
@ -44,7 +45,8 @@ if(!$is_error) {
$checked = '';
$class = '';
$category = trim($categories[$i]);
if (!$category) continue;
if (!$category)
continue;
if ($i == 0 && $ca_name == '') {
$ca_name = $category;
@ -77,18 +79,21 @@ if(!$is_error) {
if ($write['wr_subject'] == "--|UPLOADING|--") {
$write['wr_subject'] = $member['mb_name'];
if(!$write['wr_subject']) $write['wr_subject'] = 'GUEST';
if (!$write['wr_subject'])
$write['wr_subject'] = 'GUEST';
}
} else {
$write['wr_subject'] = $member['mb_name'];
if(!$write['wr_subject']) $write['wr_subject'] = 'GUEST';
if (!$write['wr_subject'])
$write['wr_subject'] = 'GUEST';
}
?>
<div id="load_log_board">
<section id="bo_w" class="mmb-board">
<!-- 게시물 작성/수정 시작 { -->
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);"
method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
<input type="hidden" name="w" value="<?php echo $w ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
@ -123,13 +128,17 @@ if(!$is_error) {
</dt>
<dd>
<div id="add_UPLOAD" <?= $write['wr_type'] == "URL" ? "style='display: none;'" : "" ?>>
<input type="file" id="wr_file" name="bf_file[]" title="로그등록 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input view_image_area" />
<input type="file" id="wr_file" name="bf_file[]"
title="로그등록 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능"
class="frm_file frm_input view_image_area" />
<?php if ($w == 'u' && $file[0]['file']) { ?>
<input type="checkbox" id="bf_file_del0" name="bf_file_del[0]" value="1"> <label for="bf_file_del0"><?php echo $file[0]['source'].'('.$file[0]['size'].')'; ?> 로그 삭제</label>
<input type="checkbox" id="bf_file_del0" name="bf_file_del[0]" value="1"> <label
for="bf_file_del0"><?php echo $file[0]['source'] . '(' . $file[0]['size'] . ')'; ?> 로그 삭제</label>
<?php } ?>
</div>
<div id="add_URL" <?= $write['wr_type'] != "URL" ? "style='display: none;'" : "" ?>>
<input type="text" name="wr_url" value="<?=$write['wr_url']?>" title="이미지 링크를 가져와 주시길 바랍니다." id="wr_url" class="frm_input view_image_area" placeholder="이미지 링크 입력"/>
<input type="text" name="wr_url" value="<?= $write['wr_url'] ?>" title="이미지 링크를 가져와 주시길 바랍니다." id="wr_url"
class="frm_input view_image_area" placeholder="이미지 링크 입력" />
</div>
</dd>
</dl>
@ -181,7 +190,8 @@ if(!$is_error) {
<label for="wr_name">이름</label>
</dt>
<dd>
<input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20">
<input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required
class="frm_input required" size="10" maxlength="20">
</dd>
</dl>
<?php } ?>
@ -192,7 +202,8 @@ if(!$is_error) {
<label for="wr_password">비밀번호</label>
</dt>
<dd>
<input type="password" name="wr_password" id="wr_password" value="<?=$_COOKIE['MMB_PW']?>" class="frm_input" maxlength="20">
<input type="password" name="wr_password" id="wr_password" value="<?= $_COOKIE['MMB_PW'] ?>"
class="frm_input" maxlength="20">
</dd>
</dl>
<?php } ?>
@ -203,7 +214,10 @@ if(!$is_error) {
<label for="wr_link<?php echo $i ?>"><i class="icon link"></i>Link #<?php echo $i ?></label>
</dt>
<dd>
<input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input" size="50">
<input type="text" name="wr_link<?php echo $i ?>" value="<?php if ($w == "u") {
echo $write['wr_link' . $i];
} ?>"
id="wr_link<?php echo $i ?>" class="frm_input" size="50">
</dd>
</dl>
<?php } ?>
@ -222,7 +236,8 @@ if(!$is_error) {
<div class="txt-center">
<button type="submit" id="btn_submit" accesskey="s" class="ui-btn">COMMENT</button>
<button type="button" onclick="location.href='./board.php?bo_table=<?=$bo_table?>';" class="ui-btn">LIST</button>
<button type="button" onclick="location.href='./board.php?bo_table=<?= $bo_table ?>';"
class="ui-btn">LIST</button>
</div>
</form>
</section>
@ -242,8 +257,7 @@ if(!$is_error) {
});
});
<?php } ?>
function html_auto_br(obj)
{
function html_auto_br(obj) {
if (obj.checked) {
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
@ -255,8 +269,7 @@ if(!$is_error) {
obj.value = "";
}
function fwrite_submit(f)
{
function fwrite_submit(f) {
var subject = "";
var content = "";
$.ajax({
@ -448,20 +461,15 @@ if(!$is_error) {
$('#view_image > span').text("");
}
}
function fn_log_type(type) {
$('#add_' + type).siblings().hide();
$('#add_' + type).show();
$('#wr_url').val('');
$('#wr_file').replaceWith($('#wr_file').clone(true));
reset_image('view_image');
}
</script>
<script>
$('#fwrite select').change(function () {
$('#fwrite select').find("option").attr('disabled', false);
$('#fwrite select').each(function () {
@ -470,8 +478,5 @@ $('#fwrite select').change(function() {
}
});
});
</script>
<?php } ?>
<?php }

View file

@ -1,12 +1,15 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
if ($is_comment_write) {
if($w == '') $w = 'c';
if ($w == '')
$w = 'c';
?>
<!-- 댓글 쓰기 시작 { -->
<aside class="bo_vc_w" id="bo_vc_w_<?= $list_item['wr_id'] ?>">
<form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
<form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);"
method="post" autocomplete="off">
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="wr_id" value="<?php echo $list_item['wr_id'] ?>">
@ -29,5 +32,3 @@ if ($is_comment_write) {
</aside>
<?php
}
?>

View file

@ -1,11 +1,13 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
$it = [];
$customer_sql = "";
$temp_wr_id = $comment_id;
$wr_num = $wr['wr_num'];
if(!$wr_num) $wr_num = $comment['wr_num'];
if (!$wr_num)
$wr_num = $comment['wr_num'];
include_once($board_skin_path . '/write_update.inc.php');

View file

@ -1,8 +1,7 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
if ($w != 'cu') {
$log = "";
}
?>

View file

@ -1,9 +1,11 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
$customer_sql = "";
$temp_wr_id = $wr_id;
if(!$wr_num) $wr_num = $write['wr_num'];
if (!$wr_num)
$wr_num = $write['wr_num'];
if ($w == 'u') {
@ -20,4 +22,3 @@ if ($file_upload_msg) {
} else {
goto_url(G5_HTTP_BBS_URL . '/board.php?bo_table=' . $bo_table . $qstr . "#log_" . $wr_id);
}
?>

View file

@ -1,9 +1,9 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// 회원수는 $row['mb_cnt'];
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $connect_skin_url . '/style.css">', 0);
?>
<?php echo $row['total_cnt'] ?>
echo $row['total_cnt'];

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $connect_skin_url . '/style.css">', 0);
@ -27,8 +28,10 @@ add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">',
$location = $list[$i]['lo_location'];
// 최고관리자에게만 허용
// 이 조건문은 가능한 변경하지 마십시오.
if ($list[$i]['lo_url'] && $is_admin == 'super') $display_location = "<a href=\"".$list[$i]['lo_url']."\">".$location."</a>";
else $display_location = $location;
if ($list[$i]['lo_url'] && $is_admin == 'super')
$display_location = "<a href=\"" . $list[$i]['lo_url'] . "\">" . $location . "</a>";
else
$display_location = $location;
?>
<tr>
<td class="td_num txt-center"><?php echo $list[$i]['num'] ?></td>

View file

@ -1,6 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="' . $content_skin_url . '/style.css">', 0);
?>
<?php echo $str; ?>
echo $str;

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $faq_skin_url . '/style.css">', 0);
@ -95,7 +96,8 @@ if ($timg_src)
<form name="faq_search_form" method="get">
<input type="hidden" name="fm_id" value="<?php echo $fm_id; ?>">
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo $stx;?>" required id="stx" class="frm_input required" size="15" maxlength="15">
<input type="text" name="stx" value="<?php echo $stx; ?>" required id="stx" class="frm_input required" size="15"
maxlength="15">
<input type="submit" value="검색" class="btn_submit">
</form>
</fieldset>
@ -114,8 +116,7 @@ $(function() {
});
});
function faq_open(el)
{
function faq_open(el) {
var $con = $(el).closest("li").find(".con_inner");
if ($con.is(":visible")) {

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $latest_skin_url . '/style.css">', 0);
@ -7,7 +8,8 @@ add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">',
<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->
<div class="lt">
<strong class="lt_title"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></strong>
<strong class="lt_title"><a
href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></strong>
<ul>
<?php for ($i = 0; $i < count($list); $i++) { ?>
<li>
@ -27,11 +29,16 @@ add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">',
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
if (isset($list[$i]['icon_new']))
echo " " . $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot']))
echo " " . $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file']))
echo " " . $list[$i]['icon_file'];
if (isset($list[$i]['icon_link']))
echo " " . $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret']))
echo " " . $list[$i]['icon_secret'];
?>
</li>
<?php } ?>
@ -39,6 +46,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">',
<li>게시물이 없습니다.</li>
<?php } ?>
</ul>
<div class="lt_more"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><span class="sound_only"><?php echo $bo_subject ?></span>더보기</a></div>
<div class="lt_more"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><span
class="sound_only"><?php echo $bo_subject ?></span>더보기</a></div>
</div>
<!-- } <?php echo $bo_subject; ?> 최신글 끝 -->

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $latest_skin_url . '/style.css">', 0);
@ -27,11 +28,16 @@ add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">',
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
if (isset($list[$i]['icon_new']))
echo " " . $list[$i]['icon_new'];
if (isset($list[$i]['icon_hot']))
echo " " . $list[$i]['icon_hot'];
if (isset($list[$i]['icon_file']))
echo " " . $list[$i]['icon_file'];
if (isset($list[$i]['icon_link']))
echo " " . $list[$i]['icon_link'];
if (isset($list[$i]['icon_secret']))
echo " " . $list[$i]['icon_secret'];
?>
</li>
<?php } ?>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (!defined('_GNUBOARD_'))
exit; // 개별 페이지 접근 불가
//include_once($board_skin_path."/moonday.php"); // 석봉운님의 음력날짜 함수
if (preg_match('/%/', $width)) {
@ -18,35 +19,50 @@ if ($year < 1) { // 오늘의 달력 일때
$year = $b_year;
}
if(!$year) $year = date("Y");
if (!$year)
$year = date("Y");
$file_index = $board_skin_path . "/day"; ### 기념일 폴더 위치 지정
### 양력 기념일 파일 지정 : 해당년도 파일이 없으면 기본파일(solar.txt)을 불러온다
//$dayfile = file($file_index."/solar.txt");
$lastday = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
if ($year%4 == 0) $lastday[2] = 29;
if ($year % 4 == 0)
$lastday[2] = 29;
$dayoftheweek = date("w", mktime(0, 0, 0, $month, 1, $year));
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="' . $latest_skin_url . '/style.css">', 0);
if($month=="1")$month_m="January";
if($month=="2")$month_m="February";
if($month=="3")$month_m="March";
if($month=="4")$month_m="April";
if($month=="5")$month_m="May";
if($month=="6")$month_m="June";
if($month=="7")$month_m="July";
if($month=="8")$month_m="August";
if($month=="9")$month_m="September";
if($month=="10")$month_m="October";
if($month=="11")$month_m="November";
if($month=="12")$month_m="December";
if ($month == "1")
$month_m = "January";
if ($month == "2")
$month_m = "February";
if ($month == "3")
$month_m = "March";
if ($month == "4")
$month_m = "April";
if ($month == "5")
$month_m = "May";
if ($month == "6")
$month_m = "June";
if ($month == "7")
$month_m = "July";
if ($month == "8")
$month_m = "August";
if ($month == "9")
$month_m = "September";
if ($month == "10")
$month_m = "October";
if ($month == "11")
$month_m = "November";
if ($month == "12")
$month_m = "December";
?>
<div id="bo_list">
<div class="theme-box cal-nav">
<h2>
<a href="<?php echo G5_BBS_URL."/board.php?bo_table=".$bo_table; ?>" onfocus="this.blur()"><span title="<?php echo $year ?>년 <?php echo $month ?>월"><?=$month_m?></span>
<a href="<?php echo G5_BBS_URL . "/board.php?bo_table=" . $bo_table; ?>" onfocus="this.blur()"><span
title="<?php echo $year ?>년 <?php echo $month ?>월"><?= $month_m ?></span>
</a>
</h2>
</div>
@ -125,13 +141,16 @@ while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자
$temp = 7 - (($lastday[$month] + $dayoftheweek) % 7);
if ($temp == 7) $temp = 0;
if ($temp == 7)
$temp = 0;
$lastcount = $lastday[$month] + $dayoftheweek + $temp;
for ($iz = 1; $iz <= $lastcount; $iz++) { // 42번을 칠하게 된다.
$bgcolor = "days"; // 쭉 흰색으로 칠하고
if ($b_year==$year && $b_mon==$month && $b_day==$cday) $bgcolor = "today"; // "#DFFDDF"; // 오늘날짜 연두색으로 표기
if (($iz%7) == 1) echo ("<tr>"); // 주당 7개씩 한쎌씩을 쌓는다.
if ($b_year == $year && $b_mon == $month && $b_day == $cday)
$bgcolor = "today"; // "#DFFDDF"; // 오늘날짜 연두색으로 표기
if (($iz % 7) == 1)
echo ("<tr>"); // 주당 7개씩 한쎌씩을 쌓는다.
if ($dayoftheweek < $iz && $iz <= $lastday[$month] + $dayoftheweek) {
// 전체 루프안에서 숫자가 들어가는 셀들만 해당됨
// 즉 11월 달에서 1일부터 30 일까지만 해당
@ -191,8 +210,11 @@ while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자
$cday++; // 날짜를 카운팅
}
// 유효날짜가 아니면 그냥 회색을 칠한다.
else { echo (" <td width=$col_width height=$col_height class='noday'>&nbsp;</td>"); }
if (($iz%7) == 0) echo (" </tr>");
else {
echo (" <td width=$col_width height=$col_height class='noday'>&nbsp;</td>");
}
if (($iz % 7) == 0)
echo (" </tr>");
} // 반복구문이 끝남
?>

View file

@ -1,3 +1,2 @@
<?php
if (!defined('_GNUBOARD_')) exit;
?>

View file

@ -3,5 +3,4 @@ if (!defined('_GNUBOARD_')) exit;
// 좌측 메뉴 스타일
add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css">', 0);
@include_once($menu_skin_path.'/menu.L.inc.php');
?>
include_once $menu_skin_path . "/menu.L.inc.php";

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
// 좌측 메뉴 스타일
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.L.css">', 0);
@ -28,13 +29,15 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
} else {
?>
<li>
<a href="<?php echo $me['me_link']?>" <? if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<? } ?> class="change-link">
<a href="<?php echo $me['me_link'] ?>" <? if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <? } ?>
class="change-link">
<span class="icons"><span><i class="material-icons"><?= $me['me_icon'] ?></i></span></span>
<span class="tooltips"><?= $me['me_name'] ?></span>
</a>
</li>
<? }} ?>
<? }
} ?>
<li class="line"></li>
<? if (!$is_member) { //멤버가 아닐 경우 ?>
@ -79,10 +82,12 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
<? if (defined('_INDEX_') && $config['cf_bgm']) { ?>
<li class="bgm-btn">
<div id="site_bgm_box">
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0"
marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
</div>
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
class="control-bgm-play" style="display:none;">
<span class="icons"><span><i class="material-icons">music_off</i></span></span>
<span class="tooltips">BGM ON</span>
</a>

View file

@ -1,7 +1,7 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
// 좌측 메뉴 스타일
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.R.css">', 0);
@include_once($menu_skin_path.'/menu.L.inc.php');
?>
include_once $menu_skin_path . "/menu.L.inc.php";

View file

@ -1,7 +1,7 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
// 좌측 메뉴 스타일
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.T.css">', 0);
@include_once($menu_skin_path.'/menu.L.inc.php');
?>
include_once $menu_skin_path . "/menu.L.inc.php";

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
/* ******************************************************************************
관리자의 디자인 정보를 저장하는 영역과 직결되는 곳입니다.
@ -26,30 +27,45 @@ if (!defined('_GNUBOARD_')) exit;
<td class="bo-right txt-center">크기</td>
<td>
<?php echo help('전체 페이지를 감쌀 가로 세로 사이즈를 지정해 주세요.') ?>
가로 : <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_value'] ?>" size="5"/> px
가로 : <input type="text" name="cs_value[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_value'] ?>"
size="5" /> px
&nbsp;&nbsp;
세로 : <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_1'] ?>" size="5"/> px
</td></tr><tr>
세로 : <input type="text" name="cs_etc_1[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_1'] ?>"
size="5" /> px
</td>
</tr>
<tr>
<td class="bo-right txt-center">PC 여백</td>
<td>
: <input type="text" name="cs_etc_2[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_2'] ?>" size="5"/> px
: <input type="text" name="cs_etc_2[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_2'] ?>"
size="5" /> px
&nbsp;&nbsp;
: <input type="text" name="cs_etc_3[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_3'] ?>" size="5"/> px
: <input type="text" name="cs_etc_3[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_3'] ?>"
size="5" /> px
&nbsp;&nbsp;
: <input type="text" name="cs_etc_4[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_4'] ?>" size="5"/> px
: <input type="text" name="cs_etc_4[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_4'] ?>"
size="5" /> px
&nbsp;&nbsp;
: <input type="text" name="cs_etc_5[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_5'] ?>" size="5"/> px
</td></tr><tr>
: <input type="text" name="cs_etc_5[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_5'] ?>"
size="5" /> px
</td>
</tr>
<tr>
<td class="bo-right txt-center">모바일 여백</td>
<td>
: <input type="text" name="cs_etc_6[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_6'] ?>" size="5"/> px
: <input type="text" name="cs_etc_6[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_6'] ?>"
size="5" /> px
&nbsp;&nbsp;
: <input type="text" name="cs_etc_7[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_7'] ?>" size="5"/> px
: <input type="text" name="cs_etc_7[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_7'] ?>"
size="5" /> px
&nbsp;&nbsp;
: <input type="text" name="cs_etc_8[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_8'] ?>" size="5"/> px
: <input type="text" name="cs_etc_8[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_8'] ?>"
size="5" /> px
&nbsp;&nbsp;
: <input type="text" name="cs_etc_9[<?=$css_index?>]" value="<?php echo $de['box_frame_size']['cs_etc_9'] ?>" size="5"/> px
</td></tr>
: <input type="text" name="cs_etc_9[<?= $css_index ?>]" value="<?php echo $de['box_frame_size']['cs_etc_9'] ?>"
size="5" /> px
</td>
</tr>
</tr <?php $css_index++; ?>>
<tr>
@ -64,7 +80,9 @@ if (!defined('_GNUBOARD_')) exit;
<?php echo help('이미지로 설정된 테두리가 우선적으로 적용됩니다. 단순 테두리를 사용하고 싶으실 경우, 이미지 경로를 제거해주세요.') ?>
</div>
</td></tr><tr>
</td>
</tr>
<tr>
<td rowspan="3" class="bo-right bo-left txt-center">
<?php if ($de['box_frame_img']['cs_value']) { ?>
<img src="<?= $de['box_frame_img']['cs_value'] ?>" class="prev_thumb" />
@ -74,12 +92,19 @@ if (!defined('_GNUBOARD_')) exit;
</td>
<td>
직접등록&nbsp;&nbsp; <input type="file" name="cs_value_file[<?= $css_index ?>]" value="" size="50">
</td></tr><tr>
</td>
</tr>
<tr>
<td>
외부경로&nbsp;&nbsp; <input type="text" name="cs_value[<?=$css_index?>]" value="<?=$de['box_frame_img']['cs_value']?>" size="50"/>
</td></tr><tr>
외부경로&nbsp;&nbsp; <input type="text" name="cs_value[<?= $css_index ?>]"
value="<?= $de['box_frame_img']['cs_value'] ?>" size="50" />
</td>
</tr>
<tr>
<td>
조각크기 <span style="color:#ff4742; font-weight:600;">(Slice)</span>&nbsp;&nbsp; <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['box_frame_img']['cs_etc_1'] ?>" size="5" maxlength="255" /> px
조각크기 <span style="color:#ff4742; font-weight:600;">(Slice)</span>&nbsp;&nbsp; <input type="text"
name="cs_etc_1[<?= $css_index ?>]" value="<?php echo $de['box_frame_img']['cs_etc_1'] ?>" size="5"
maxlength="255" /> px
&nbsp;&nbsp;
반복속성 <span style="color:#ff4742; font-weight:600;">(Repeat)</span>&nbsp;&nbsp;
@ -92,7 +117,8 @@ if (!defined('_GNUBOARD_')) exit;
&nbsp;&nbsp;
확장영역 <span style="color:#ff4742; font-weight:600;">(Outset)</span>&nbsp;&nbsp;
<input type="text" name="cs_etc_3[<?=$css_index?>]" value="<?php echo $de['box_frame_img']['cs_etc_3'] ?>" size="5" maxlength="255" /> px
<input type="text" name="cs_etc_3[<?= $css_index ?>]" value="<?php echo $de['box_frame_img']['cs_etc_3'] ?>"
size="5" maxlength="255" /> px
&nbsp;&nbsp;
</td>
</tr <?php $css_index++; ?>>
@ -106,7 +132,10 @@ if (!defined('_GNUBOARD_')) exit;
라인
</td>
<td>
라인색상&nbsp;&nbsp; <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['box_frame_line']['cs_value'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_1[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_1']?>" placeholder="0" title="투명도" style="width:45px;"/>%
라인색상&nbsp;&nbsp; <input type="text" name="cs_value[<?= $css_index ?>]"
value="<?php echo $de['box_frame_line']['cs_value'] ?>" class="colorpicker" size="30" maxlength="255"
placeholder="#색상코드" /><input type="number" name="cs_etc_1[<?= $css_index ?>]"
value="<?= $de['box_frame_line']['cs_etc_1'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
&nbsp;&nbsp;
라인타입&nbsp;&nbsp;
@ -119,33 +148,44 @@ if (!defined('_GNUBOARD_')) exit;
</select>
&nbsp;&nbsp;
라인굵기&nbsp;&nbsp; <input type="text" name="cs_etc_3[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_3']?>" size="5"/> px
라인굵기&nbsp;&nbsp; <input type="text" name="cs_etc_3[<?= $css_index ?>]"
value="<?= $de['box_frame_line']['cs_etc_3'] ?>" size="5" /> px
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="cs_etc_4[<?=$css_index?>][]" id="cs_etc_4_1_box_frame_line" value="top" <?=strstr($de['box_frame_line']['cs_etc_4'], 'top') ? "checked" : ""?> />
<input type="checkbox" name="cs_etc_4[<?= $css_index ?>][]" id="cs_etc_4_1_box_frame_line" value="top"
<?= strstr($de['box_frame_line']['cs_etc_4'], 'top') ? "checked" : "" ?> />
<label for="cs_etc_4_1_box_frame_line">&nbsp;</label>
<input type="checkbox" name="cs_etc_4[<?=$css_index?>][]" id="cs_etc_4_2_box_frame_line" value="bottom" <?=strstr($de['box_frame_line']['cs_etc_4'], 'bottom') ? "checked" : ""?> />
<input type="checkbox" name="cs_etc_4[<?= $css_index ?>][]" id="cs_etc_4_2_box_frame_line" value="bottom"
<?= strstr($de['box_frame_line']['cs_etc_4'], 'bottom') ? "checked" : "" ?> />
<label for="cs_etc_4_2_box_frame_line">&nbsp;</label>
<input type="checkbox" name="cs_etc_4[<?=$css_index?>][]" id="cs_etc_4_3_box_frame_line" value="left" <?=strstr($de['box_frame_line']['cs_etc_4'], 'left') ? "checked" : ""?> />
<input type="checkbox" name="cs_etc_4[<?= $css_index ?>][]" id="cs_etc_4_3_box_frame_line" value="left"
<?= strstr($de['box_frame_line']['cs_etc_4'], 'left') ? "checked" : "" ?> />
<label for="cs_etc_4_3_box_frame_line">&nbsp;</label>
<input type="checkbox" name="cs_etc_4[<?=$css_index?>][]" id="cs_etc_4_4_box_frame_line" value="right" <?=strstr($de['box_frame_line']['cs_etc_4'], 'right') ? "checked" : ""?> />
<input type="checkbox" name="cs_etc_4[<?= $css_index ?>][]" id="cs_etc_4_4_box_frame_line" value="right"
<?= strstr($de['box_frame_line']['cs_etc_4'], 'right') ? "checked" : "" ?> />
<label for="cs_etc_4_4_mmb_list_item"></label>
</td></tr><tr>
</td>
</tr>
<tr>
<td class="bo-right txt-center">
모서리 라운드
</td>
<td>
좌측상단 <input type="text" name="cs_etc_5[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_5']?>" size="3"/> px
좌측상단 <input type="text" name="cs_etc_5[<?= $css_index ?>]" value="<?= $de['box_frame_line']['cs_etc_5'] ?>"
size="3" /> px
&nbsp;&nbsp;
우측상단 <input type="text" name="cs_etc_6[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_6']?>" size="3"/> px
우측상단 <input type="text" name="cs_etc_6[<?= $css_index ?>]" value="<?= $de['box_frame_line']['cs_etc_6'] ?>"
size="3" /> px
&nbsp;&nbsp;
우측하단 <input type="text" name="cs_etc_7[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_7']?>" size="3"/> px
우측하단 <input type="text" name="cs_etc_7[<?= $css_index ?>]" value="<?= $de['box_frame_line']['cs_etc_7'] ?>"
size="3" /> px
&nbsp;&nbsp;
좌측하단 <input type="text" name="cs_etc_8[<?=$css_index?>]" value="<?=$de['box_frame_line']['cs_etc_8']?>" size="3"/> px
좌측하단 <input type="text" name="cs_etc_8[<?= $css_index ?>]" value="<?= $de['box_frame_line']['cs_etc_8'] ?>"
size="3" /> px
</td>
</tr <?php $css_index++; ?>>
@ -163,12 +203,20 @@ if (!defined('_GNUBOARD_')) exit;
</td>
<td>
직접등록&nbsp;&nbsp; <input type="file" name="cs_value_file[<?= $css_index ?>]" value="" size="50">
</td></tr><tr>
</td>
</tr>
<tr>
<td>
외부경로&nbsp;&nbsp; <input type="text" name="cs_value[<?=$css_index?>]" value="<?=$de['box_frame_bak']['cs_value']?>" size="50"/>
</td></tr><tr>
외부경로&nbsp;&nbsp; <input type="text" name="cs_value[<?= $css_index ?>]"
value="<?= $de['box_frame_bak']['cs_value'] ?>" size="50" />
</td>
</tr>
<tr>
<td>
배경색상&nbsp;&nbsp; <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['box_frame_bak']['cs_etc_1'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_2[<?=$css_index?>]" value="<?=$de['box_frame_bak']['cs_etc_2']?>" placeholder="0" title="투명도" style="width:45px;"/>%
배경색상&nbsp;&nbsp; <input type="text" name="cs_etc_1[<?= $css_index ?>]"
value="<?php echo $de['box_frame_bak']['cs_etc_1'] ?>" class="colorpicker" size="30" maxlength="255"
placeholder="#색상코드" /><input type="number" name="cs_etc_2[<?= $css_index ?>]"
value="<?= $de['box_frame_bak']['cs_etc_2'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
&nbsp;&nbsp;
배경반복&nbsp;&nbsp;
@ -183,16 +231,23 @@ if (!defined('_GNUBOARD_')) exit;
배경위치&nbsp;&nbsp;
<select name="cs_etc_4[<?= $css_index ?>]">
<option value="">왼쪽 상단</option>
<option value="left middle" <?=$de['box_frame_bak']['cs_etc_4'] == 'left middle' ? "selected" : ""?>>왼쪽 중단</option>
<option value="left bottom" <?=$de['box_frame_bak']['cs_etc_4'] == 'left bottom' ? "selected" : ""?>>왼쪽 하단</option>
<option value="left middle" <?= $de['box_frame_bak']['cs_etc_4'] == 'left middle' ? "selected" : "" ?>>왼쪽 중단
</option>
<option value="left bottom" <?= $de['box_frame_bak']['cs_etc_4'] == 'left bottom' ? "selected" : "" ?>>왼쪽 하단
</option>
<option value="center top" <?=$de['box_frame_bak']['cs_etc_4'] == 'center top' ? "selected" : ""?>>중간 상단</option>
<option value="center middle" <?=$de['box_frame_bak']['cs_etc_4'] == 'center middle' ? "selected" : ""?>>중간 중단</option>
<option value="center bottom" <?=$de['box_frame_bak']['cs_etc_4'] == 'center bottom' ? "selected" : ""?>>중간 하단</option>
<option value="center top" <?= $de['box_frame_bak']['cs_etc_4'] == 'center top' ? "selected" : "" ?>>중간 상단
</option>
<option value="center middle" <?= $de['box_frame_bak']['cs_etc_4'] == 'center middle' ? "selected" : "" ?>>중간 중단
</option>
<option value="center bottom" <?= $de['box_frame_bak']['cs_etc_4'] == 'center bottom' ? "selected" : "" ?>>중간 하단
</option>
<option value="right top" <?= $de['box_frame_bak']['cs_etc_4'] == 'right top' ? "selected" : "" ?>>오른쪽 상단</option>
<option value="right middle" <?=$de['box_frame_bak']['cs_etc_4'] == 'right middle' ? "selected" : ""?>>오른쪽 중단</option>
<option value="right bottom" <?=$de['box_frame_bak']['cs_etc_4'] == 'right bottom' ? "selected" : ""?>>오른쪽 하단</option>
<option value="right middle" <?= $de['box_frame_bak']['cs_etc_4'] == 'right middle' ? "selected" : "" ?>>오른쪽 중단
</option>
<option value="right bottom" <?= $de['box_frame_bak']['cs_etc_4'] == 'right bottom' ? "selected" : "" ?>>오른쪽 하단
</option>
</select>
&nbsp;&nbsp;

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
$box_f_size = get_style("box_frame_size");
$box_f_img = get_style("box_frame_img");
@ -36,56 +37,134 @@ $f_img_out = $box_f_img['cs_etc_3'] != "" ? $box_f_img['cs_etc_3'] : 0;
#design_frameBox:before 이미지 테두리 프레임
#design_frameBox:after 일반 테두리 프레임
**************************************************/
?>
?> @media all and (min-width:1025px) {
html.single #header {
display: block !important;
}
}
@media all and (min-width:1025px) {html.single #header {display:block !important;}}
#design_frameBox {
display: block;
position: fixed;
top: 50%;
left: 50%;
z-index: 0;
box-sizing: border-box;
}
#design_frameBox {display:block; position:fixed; top:50%; left:50%; z-index:0; box-sizing:border-box;}
#design_frameBox:before {content:""; display:block; position:absolute; top:0; left:0; right:0; bottom:0; z-index:-1;}
#design_frameBox:after {content:""; display:block; position:absolute; top:0; left:0; right:0; bottom:0; z-index:-2;}
#design_frameBox:before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
}
#body {display:block; position:relative; width:100%; height:100% !important; overflow:auto; box-sizing:border-box;}
#body > .fix-layout > .mid-layout {padding:10px !important;}
#design_frameBox:after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -2;
}
#body {
display: block;
position: relative;
width: 100%;
height: 100% !important;
overflow: auto;
box-sizing: border-box;
}
#body>.fix-layout>.mid-layout {
padding: 10px !important;
}
<?php
/**************************************************
설정값에 따른 변동 부분
**************************************************/
?>
?> #design_frameBox {
<?php echo "width:{$b_w}px; height:{$b_h}px; margin-left:-" . ($b_w / 2) . "px; margin-top:-" . ($b_h / 2) . "px; padding:{$p_t}px {$p_r}px {$p_b}px {$p_l}px;"; ?>
}
#design_frameBox {<?php echo "width:{$b_w}px; height:{$b_h}px; margin-left:-".($b_w/2)."px; margin-top:-".($b_h/2)."px; padding:{$p_t}px {$p_r}px {$p_b}px {$p_l}px;"; ?>}
@media all and (max-width:<?= ($b_w + 20) ?>px) {
#design_frameBox {
left: 10px;
right: 10px;
width: auto;
margin-left: 0;
}
}
@media all and (max-width:<?=($b_w+20)?>px) {#design_frameBox {left:10px; right:10px; width:auto; margin-left:0;}}
@media all and (max-height:<?=($b_h+20)?>px) {#design_frameBox {top:10px; bottom:10px; height:auto; margin-top:0;}}
@media all and (max-width:1024px) { #design_frameBox {<?php echo "padding:{$mp_t}px {$mp_r}px {$mp_b}px {$mp_l}px;"; ?>}}
@media all and (max-height:<?= ($b_h + 20) ?>px) {
#design_frameBox {
top: 10px;
bottom: 10px;
height: auto;
margin-top: 0;
}
}
@media all and (max-width:1024px) {
#design_frameBox {
<?php echo "padding:{$mp_t}px {$mp_r}px {$mp_b}px {$mp_l}px;"; ?>
}
}
<?php if ($f_img_url) { // 이미지 테두리가 적용되어 있을 경우 ?>
#design_frameBox:before {<?php
#design_frameBox:before {
<?php
echo "border:{$f_img_sli}px solid;";
echo "border-image:url({$f_img_url}) {$f_img_sli} / {$f_img_sli}px / {$f_img_out}px {$f_img_rep};";
?>}
#design_frameBox:after {border:none !important;}
#design_frameBox:after
{border:none !important;}
<?php } ?>
#design_frameBox:after {<?php
if($box_f_line['cs_value']) echo "border-color:".hex2rgba($box_f_line['cs_value'], $box_f_line['cs_etc_1'])."; ";
if ($box_f_line['cs_value'])
echo "border-color:" . hex2rgba($box_f_line['cs_value'], $box_f_line['cs_etc_1']) . "; ";
$box_f_line['border'] = explode("||", $box_f_line['cs_etc_4']);
for ($i = 0; $i < count($box_f_line['border']); $i++) {
if ($box_f_line['border'][$i]) {
if($box_f_line['cs_etc_2']) echo "border-{$box_f_line['border'][$i]}-style:{$box_f_line['cs_etc_2']}; ";
if($box_f_line['cs_etc_3']) echo "border-{$box_f_line['border'][$i]}-width:{$box_f_line['cs_etc_3']}px; ";
if ($box_f_line['cs_etc_2'])
echo "border-{$box_f_line['border'][$i]}-style:{$box_f_line['cs_etc_2']}; ";
if ($box_f_line['cs_etc_3'])
echo "border-{$box_f_line['border'][$i]}-width:{$box_f_line['cs_etc_3']}px; ";
}
}
if($box_f_line['cs_etc_5']) echo "border-top-left-radius:{$box_f_line['cs_etc_5']}px; ";
if($box_f_line['cs_etc_6']) echo "border-top-right-radius:{$box_f_line['cs_etc_6']}px; ";
if($box_f_line['cs_etc_7']) echo "border-bottom-right-radius:{$box_f_line['cs_etc_7']}px; ";
if($box_f_line['cs_etc_8']) echo "border-bottom-left-radius:{$box_f_line['cs_etc_8']}px; ";
if ($box_f_line['cs_etc_5'])
echo "border-top-left-radius:{$box_f_line['cs_etc_5']}px; ";
if ($box_f_line['cs_etc_6'])
echo "border-top-right-radius:{$box_f_line['cs_etc_6']}px; ";
if ($box_f_line['cs_etc_7'])
echo "border-bottom-right-radius:{$box_f_line['cs_etc_7']}px; ";
if ($box_f_line['cs_etc_8'])
echo "border-bottom-left-radius:{$box_f_line['cs_etc_8']}px; ";
if($box_f_bak['cs_value']) echo "background-image:url('{$box_f_bak['cs_value']}'); ";
if($box_f_bak['cs_etc_1']) echo "background-color:".hex2rgba($box_f_bak['cs_etc_1'], $box_f_bak['cs_etc_2'])."; ";
if($box_f_bak['cs_etc_3']) echo "background-repeat:{$box_f_bak['cs_etc_3']}; ";
if($box_f_bak['cs_etc_4']) echo "background-position:{$box_f_bak['cs_etc_4']}; ";
if($box_f_bak['cs_etc_5']) echo "background-size:{$box_f_bak['cs_etc_5']}; ";
if ($box_f_bak['cs_value'])
echo "background-image:url('{$box_f_bak['cs_value']}'); ";
if ($box_f_bak['cs_etc_1'])
echo "background-color:" . hex2rgba($box_f_bak['cs_etc_1'], $box_f_bak['cs_etc_2']) . "; ";
if ($box_f_bak['cs_etc_3'])
echo "background-repeat:{$box_f_bak['cs_etc_3']}; ";
if ($box_f_bak['cs_etc_4'])
echo "background-position:{$box_f_bak['cs_etc_4']}; ";
if ($box_f_bak['cs_etc_5'])
echo "background-size:{$box_f_bak['cs_etc_5']}; ";
?>}
#design_frameBox .characterViewer {position:relative; height:100%;}

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
//if (defined('_INDEX_')) return;
@ -16,8 +17,19 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css"
?>
<style>
<?php if ($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
@media all and (min-width:1025px) { #header {<?php echo "bottom:50%; margin-bottom:-".(($b_h/2) - 20)."px;"; ?>}}
@media all and (max-height:<?=($b_h+20)?>px) and (min-width:1025px) { #header {bottom:20px; margin-bottom:0px;}}
@media all and (min-width:1025px) {
#header {
<?php echo "bottom:50%; margin-bottom:-" . (($b_h / 2) - 20) . "px;"; ?>
}
}
@media all and (max-height:<?= ($b_h + 20) ?>px) and (min-width:1025px) {
#header {
bottom: 20px;
margin-bottom: 0px;
}
}
<?php } ?>
</style>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
//if (defined('_INDEX_')) return;
@ -16,8 +17,19 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
?>
<style>
<?php if ($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
@media all and (min-width:1025px) { #header {<?php echo "left:50%; margin-left:-".(($b_w/2) - 20)."px;"; ?>}}
@media all and (max-width:<?=($b_w+20)?>px) and (min-width:1025px) { #header {left:20px; margin-left:0px;}}
@media all and (min-width:1025px) {
#header {
<?php echo "left:50%; margin-left:-" . (($b_w / 2) - 20) . "px;"; ?>
}
}
@media all and (max-width:<?= ($b_w + 20) ?>px) and (min-width:1025px) {
#header {
left: 20px;
margin-left: 0px;
}
}
<?php } ?>
</style>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
//if (defined('_INDEX_')) return;
@ -16,8 +17,19 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css"
?>
<style>
<?php if ($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
@media all and (min-width:1025px) { #header {<?php echo "right:50%; margin-right:-".(($b_w/2) - 20)."px;"; ?>}}
@media all and (max-width:<?=($b_w+20)?>px) and (min-width:1025px) { #header {right:20px; margin-right:0px;}}
@media all and (min-width:1025px) {
#header {
<?php echo "right:50%; margin-right:-" . (($b_w / 2) - 20) . "px;"; ?>
}
}
@media all and (max-width:<?= ($b_w + 20) ?>px) and (min-width:1025px) {
#header {
right: 20px;
margin-right: 0px;
}
}
<?php } ?>
</style>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
//if (defined('_INDEX_')) return;
@ -16,8 +17,19 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css"
?>
<style>
<?php if ($header_inside) { // 메뉴가 박스 안쪽에 위치해야 할 경우 ?>
@media all and (min-width:1025px) { #header {<?php echo "top:50%; margin-top:-".(($b_h/2) - 20)."px;"; ?>}}
@media all and (max-height:<?=($b_h+20)?>px) and (min-width:1025px) { #header {top:20px; margin-top:0px;}}
@media all and (min-width:1025px) {
#header {
<?php echo "top:50%; margin-top:-" . (($b_h / 2) - 20) . "px;"; ?>
}
}
@media all and (max-height:<?= ($b_h + 20) ?>px) and (min-width:1025px) {
#header {
top: 20px;
margin-top: 0px;
}
}
<?php } ?>
</style>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
?>
<ul class="gnbWrap">
@ -25,13 +26,15 @@ if (!defined('_GNUBOARD_')) exit;
} else {
?>
<li>
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
class="change-link">
<span class="icons"><span><i class="material-icons"><?= $me['me_icon'] ?></i></span></span>
<span class="tooltips"><?= $me['me_name'] ?></span>
</a>
</li>
<?php }} ?>
<?php }
} ?>
<li class="line"></li>
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
@ -76,10 +79,12 @@ if (!defined('_GNUBOARD_')) exit;
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
<li class="bgm-btn">
<div id="site_bgm_box">
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0"
marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
</div>
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
class="control-bgm-play" style="display:none;">
<span class="icons"><span><i class="material-icons">music_off</i></span></span>
<span class="tooltips">BGM ON</span>
</a>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
/* ******************************************************************************
관리자의 디자인 정보를 저장하는 영역과 직결되는 곳입니다.
@ -26,9 +27,11 @@ if (!defined('_GNUBOARD_')) exit;
<td colspan="2">
<?php echo help('가로 사이즈는 좌측/우측 메뉴일 경우 적용됩니다. 세로 사이즈는 상단/하단 메뉴일 경우 적용됩니다.') ?>
가로 : <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['menu_size']['cs_value'] ?>" size="5"/>px
가로 : <input type="text" name="cs_value[<?= $css_index ?>]" value="<?php echo $de['menu_size']['cs_value'] ?>"
size="5" />px
&nbsp;&nbsp;
세로 : <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['menu_size']['cs_etc_1'] ?>" size="5"/>px
세로 : <input type="text" name="cs_etc_1[<?= $css_index ?>]" value="<?php echo $de['menu_size']['cs_etc_1'] ?>"
size="5" />px
</td>
</tr <?php $css_index++; ?>>
@ -47,12 +50,20 @@ if (!defined('_GNUBOARD_')) exit;
</td>
<td>
직접등록&nbsp;&nbsp; <input type="file" name="cs_value_file[<?= $css_index ?>]" value="" size="50">
</td></tr><tr>
</td>
</tr>
<tr>
<td>
외부경로&nbsp;&nbsp; <input type="text" name="cs_value[<?=$css_index?>]" value="<?=$de['menu_bak']['cs_value']?>" size="50"/>
</td></tr><tr>
외부경로&nbsp;&nbsp; <input type="text" name="cs_value[<?= $css_index ?>]" value="<?= $de['menu_bak']['cs_value'] ?>"
size="50" />
</td>
</tr>
<tr>
<td>
배경색상&nbsp;&nbsp; <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['menu_bak']['cs_etc_1'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_2[<?=$css_index?>]" value="<?=$de['menu_bak']['cs_etc_2']?>" placeholder="0" title="투명도" style="width:45px;"/>%
배경색상&nbsp;&nbsp; <input type="text" name="cs_etc_1[<?= $css_index ?>]"
value="<?php echo $de['menu_bak']['cs_etc_1'] ?>" class="colorpicker" size="30" maxlength="255"
placeholder="#색상코드" /><input type="number" name="cs_etc_2[<?= $css_index ?>]"
value="<?= $de['menu_bak']['cs_etc_2'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
&nbsp;&nbsp;
배경반복&nbsp;&nbsp;
@ -71,12 +82,16 @@ if (!defined('_GNUBOARD_')) exit;
<option value="left bottom" <?= $de['menu_bak']['cs_etc_4'] == 'left bottom' ? "selected" : "" ?>>왼쪽 하단</option>
<option value="center top" <?= $de['menu_bak']['cs_etc_4'] == 'center top' ? "selected" : "" ?>>중간 상단</option>
<option value="center middle" <?=$de['menu_bak']['cs_etc_4'] == 'center middle' ? "selected" : ""?>>중간 중단</option>
<option value="center bottom" <?=$de['menu_bak']['cs_etc_4'] == 'center bottom' ? "selected" : ""?>>중간 하단</option>
<option value="center middle" <?= $de['menu_bak']['cs_etc_4'] == 'center middle' ? "selected" : "" ?>>중간 중단
</option>
<option value="center bottom" <?= $de['menu_bak']['cs_etc_4'] == 'center bottom' ? "selected" : "" ?>>중간 하단
</option>
<option value="right top" <?= $de['menu_bak']['cs_etc_4'] == 'right top' ? "selected" : "" ?>>오른쪽 상단</option>
<option value="right middle" <?=$de['menu_bak']['cs_etc_4'] == 'right middle' ? "selected" : ""?>>오른쪽 중단</option>
<option value="right bottom" <?=$de['menu_bak']['cs_etc_4'] == 'right bottom' ? "selected" : ""?>>오른쪽 하단</option>
<option value="right middle" <?= $de['menu_bak']['cs_etc_4'] == 'right middle' ? "selected" : "" ?>>오른쪽 중단
</option>
<option value="right bottom" <?= $de['menu_bak']['cs_etc_4'] == 'right bottom' ? "selected" : "" ?>>오른쪽 하단
</option>
</select>
&nbsp;&nbsp;
@ -100,19 +115,30 @@ if (!defined('_GNUBOARD_')) exit;
일반상태
</td>
<td>
글자색상&nbsp;&nbsp; <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['menu_text_link']['cs_value'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_1[<?=$css_index?>]" value="<?=$de['cs_etc_1']['cs_etc_3']?>" placeholder="0" title="투명도" style="width:45px;"/>%
글자색상&nbsp;&nbsp; <input type="text" name="cs_value[<?= $css_index ?>]"
value="<?php echo $de['menu_text_link']['cs_value'] ?>" class="colorpicker" size="30" maxlength="255"
placeholder="#색상코드" /><input type="number" name="cs_etc_1[<?= $css_index ?>]"
value="<?= $de['cs_etc_1']['cs_etc_3'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
&nbsp;&nbsp;
글자크기&nbsp;&nbsp; <input type="text" name="cs_etc_2[<?=$css_index?>]" value="<?=$de['menu_text_link']['cs_etc_2']?>" size="5"/> px
글자크기&nbsp;&nbsp; <input type="text" name="cs_etc_2[<?= $css_index ?>]"
value="<?= $de['menu_text_link']['cs_etc_2'] ?>" size="5" /> px
&nbsp;&nbsp;
글자모양&nbsp;&nbsp; <input type="text" name="cs_etc_3[<?=$css_index?>]" value="<?=$de['menu_text_link']['cs_etc_3']?>" size="30">
</td></tr><tr>
글자모양&nbsp;&nbsp; <input type="text" name="cs_etc_3[<?= $css_index ?>]"
value="<?= $de['menu_text_link']['cs_etc_3'] ?>" size="30">
</td>
</tr>
<tr>
<td class="bo-right bo-left txt-center">
마우스 오버
</td>
<td>
글자색상&nbsp;&nbsp; <input type="text" name="cs_etc_4[<?=$css_index?>]" value="<?php echo $de['menu_text_link']['cs_etc_4'] ?>" class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number" name="cs_etc_5[<?=$css_index?>]" value="<?=$de['menu_text_link']['cs_etc_5']?>" placeholder="0" title="투명도" style="width:45px;"/>%
글자색상&nbsp;&nbsp; <input type="text" name="cs_etc_4[<?= $css_index ?>]"
value="<?php echo $de['menu_text_link']['cs_etc_4'] ?>" class="colorpicker" size="30" maxlength="255"
placeholder="#색상코드" /><input type="number" name="cs_etc_5[<?= $css_index ?>]"
value="<?= $de['menu_text_link']['cs_etc_5'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
&nbsp;&nbsp;
글자크기&nbsp;&nbsp; <input type="text" name="cs_etc_6[<?=$css_index?>]" value="<?=$de['menu_text_link']['cs_etc_6']?>" size="5"/> px
글자크기&nbsp;&nbsp; <input type="text" name="cs_etc_6[<?= $css_index ?>]"
value="<?= $de['menu_text_link']['cs_etc_6'] ?>" size="5" /> px
</td>
</tr <?php $css_index++; ?>>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
$menu_size = get_style("menu_size");
$menu_bak = get_style("menu_bak");
@ -9,23 +10,31 @@ $m_w = $menu_size['cs_value'];
$m_h = $menu_size['cs_etc_1'];
$background = "";
if($menu_bak['cs_value']) $background .= "background-image:url('{$menu_bak['cs_value']}'); ";
if($menu_bak['cs_etc_1']) $background .= "background-color:".hex2rgba($menu_bak['cs_etc_1'], $menu_bak['cs_etc_2'])."; ";
if($menu_bak['cs_etc_3']) $background .= "background-repeat:{$menu_bak['cs_etc_3']}; ";
if($menu_bak['cs_etc_4']) $background .= "background-position:{$menu_bak['cs_etc_4']}; ";
if($menu_bak['cs_etc_5']) $background .= "background-size:{$menu_bak['cs_etc_5']}; ";
if ($menu_bak['cs_value'])
$background .= "background-image:url('{$menu_bak['cs_value']}'); ";
if ($menu_bak['cs_etc_1'])
$background .= "background-color:" . hex2rgba($menu_bak['cs_etc_1'], $menu_bak['cs_etc_2']) . "; ";
if ($menu_bak['cs_etc_3'])
$background .= "background-repeat:{$menu_bak['cs_etc_3']}; ";
if ($menu_bak['cs_etc_4'])
$background .= "background-position:{$menu_bak['cs_etc_4']}; ";
if ($menu_bak['cs_etc_5'])
$background .= "background-size:{$menu_bak['cs_etc_5']}; ";
$link_color = "";
if($menu_text_link['cs_value']) $link_color .= "background-color:".hex2rgba($menu_text_link['cs_value'], $menu_text_link['cs_etc_1'])."; ";
if ($menu_text_link['cs_value'])
$link_color .= "background-color:" . hex2rgba($menu_text_link['cs_value'], $menu_text_link['cs_etc_1']) . "; ";
$menu_default = "";
if($menu_text_link['cs_value']) $menu_default .= "color:".hex2rgba($menu_text_link['cs_value'], $menu_text_link['cs_etc_1'])."; ";
if($menu_text_link['cs_etc_2']) $menu_default .= "font-size:{$menu_text_link['cs_etc_2']}px; ";
if($menu_text_link['cs_etc_3']) $menu_default .= "font-family:{$menu_text_link['cs_etc_3']}, sans-serif; ";
if ($menu_text_link['cs_value'])
$menu_default .= "color:" . hex2rgba($menu_text_link['cs_value'], $menu_text_link['cs_etc_1']) . "; ";
if ($menu_text_link['cs_etc_2'])
$menu_default .= "font-size:{$menu_text_link['cs_etc_2']}px; ";
if ($menu_text_link['cs_etc_3'])
$menu_default .= "font-family:{$menu_text_link['cs_etc_3']}, sans-serif; ";
$menu_over = "";
if($menu_text_link['cs_etc_4']) $menu_over .= "color:".hex2rgba($menu_text_link['cs_etc_4'], $menu_text_link['cs_etc_5'])."; ";
if($menu_text_link['cs_etc_6']) $menu_over .= "font-size:{$menu_text_link['cs_etc_6']}px; ";
?>
if ($menu_text_link['cs_etc_4'])
$menu_over .= "color:" . hex2rgba($menu_text_link['cs_etc_4'], $menu_text_link['cs_etc_5']) . "; ";
if ($menu_text_link['cs_etc_6'])
$menu_over .= "font-size:{$menu_text_link['cs_etc_6']}px; ";

View file

@ -1,10 +1,35 @@
@charset "utf-8";
.freebak-menu {width:100%; margin-bottom:-20px;}
.freebak-menu .mnu {display:table; width:100%; height:100%; text-align:center;}
.freebak-menu .mnu > * {display:table-cell; vertical-align:middle;}
.freebak-menu .mnu li {display:inline-block; padding:10px 0; vertical-align:middle;position:relative;}
.freebak-menu .mnu li + li {margin-left:15px; min-height:1.2em;}
.freebak-menu .mnu li.line {width:1px; opacity:.2;}
.freebak-menu {
width: 100%;
margin-bottom: -20px;
}
.freebak-menu .mnu {
display: table;
width: 100%;
height: 100%;
text-align: center;
}
.freebak-menu .mnu>* {
display: table-cell;
vertical-align: middle;
}
.freebak-menu .mnu li {
display: inline-block;
padding: 10px 0;
vertical-align: middle;
position: relative;
}
.freebak-menu .mnu li+li {
margin-left: 15px;
min-height: 1.2em;
}
.freebak-menu .mnu li.line {
width: 1px;
opacity: .2;
}

View file

@ -1,10 +1,33 @@
@charset "utf-8";
.freebak-menu {height:100%; margin-left:-20px;}
.freebak-menu .mnu {display:table; width:100%; height:100%; text-align:center;}
.freebak-menu .mnu > * {display:table-cell; vertical-align:middle;}
.freebak-menu .mnu li {position:relative;}
.freebak-menu .mnu li + li {margin-top:15px;}
.freebak-menu .mnu li.line {max-width:25%; margin:20px auto; height:1px; opacity:.2;}
.freebak-menu {
height: 100%;
margin-left: -20px;
}
.freebak-menu .mnu {
display: table;
width: 100%;
height: 100%;
text-align: center;
}
.freebak-menu .mnu>* {
display: table-cell;
vertical-align: middle;
}
.freebak-menu .mnu li {
position: relative;
}
.freebak-menu .mnu li+li {
margin-top: 15px;
}
.freebak-menu .mnu li.line {
max-width: 25%;
margin: 20px auto;
height: 1px;
opacity: .2;
}

View file

@ -1,10 +1,33 @@
@charset "utf-8";
.freebak-menu {height:100%; margin-right:-20px;}
.freebak-menu .mnu {display:table; width:100%; height:100%; text-align:center;}
.freebak-menu .mnu > * {display:table-cell; vertical-align:middle;}
.freebak-menu .mnu li {position:relative;}
.freebak-menu .mnu li + li {margin-top:15px;}
.freebak-menu .mnu li.line {max-width:25%; margin:20px auto; height:1px; opacity:.2;}
.freebak-menu {
height: 100%;
margin-right: -20px;
}
.freebak-menu .mnu {
display: table;
width: 100%;
height: 100%;
text-align: center;
}
.freebak-menu .mnu>* {
display: table-cell;
vertical-align: middle;
}
.freebak-menu .mnu li {
position: relative;
}
.freebak-menu .mnu li+li {
margin-top: 15px;
}
.freebak-menu .mnu li.line {
max-width: 25%;
margin: 20px auto;
height: 1px;
opacity: .2;
}

View file

@ -1,10 +1,35 @@
@charset "utf-8";
.freebak-menu {width:100%; margin-top:-20px;}
.freebak-menu .mnu {display:table; width:100%; height:100%; text-align:center;}
.freebak-menu .mnu > * {display:table-cell; vertical-align:middle;}
.freebak-menu .mnu li {display:inline-block; padding:10px 0; vertical-align:middle;position:relative;}
.freebak-menu .mnu li + li {margin-left:15px; min-height:1.2em;}
.freebak-menu .mnu li.line {width:1px; opacity:.2;}
.freebak-menu {
width: 100%;
margin-top: -20px;
}
.freebak-menu .mnu {
display: table;
width: 100%;
height: 100%;
text-align: center;
}
.freebak-menu .mnu>* {
display: table-cell;
vertical-align: middle;
}
.freebak-menu .mnu li {
display: inline-block;
padding: 10px 0;
vertical-align: middle;
position: relative;
}
.freebak-menu .mnu li+li {
margin-left: 15px;
min-height: 1.2em;
}
.freebak-menu .mnu li.line {
width: 1px;
opacity: .2;
}

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
/* *************************************
:: 우측 메뉴 스타일 ::
@ -13,12 +14,27 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css"
?>
<style>
.freebak-menu {height:<?=$m_w?>px; <?=$background?>}
.freebak-menu a {<?=$menu_default?>}
.freebak-menu a:hover {<?=$menu_over?>}
.freebak-menu .line {<?=$link_color?>}
.freebak-menu {
height: <?= $m_w ?>px;
<?= $background ?>
}
.freebak-menu a {
<?= $menu_default ?>
}
.freebak-menu a:hover {
<?= $menu_over ?>
}
.freebak-menu .line {
<?= $link_color ?>
}
@media all and (min-width:1025px) {
#body {padding-bottom:<?=$m_h?>px;}
#body {
padding-bottom: <?= $m_h ?>px;
}
}
</style>
@ -40,12 +56,14 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css"
} else {
?>
<li>
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
class="change-link">
<?= $me['me_name'] ?>
</a>
</li>
<?php }} ?>
<?php }
} ?>
<li class="line"></li>
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
@ -57,8 +75,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css"
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
<li>
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
JOIN<
</a>
JOIN< </a>
</li>
<?php } ?>
<?php } else { //멤버일 경우 ?>
@ -85,13 +102,16 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.B.css"
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
<li class="bgm-btn">
<div id="site_bgm_box">
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0"
marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
</div>
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
class="control-bgm-play" style="display:none;">
BGM ON
</a>
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
class="control-bgm-stop">
BGM OFF
</a>
</li>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
/* *************************************
:: 좌측 메뉴 스타일 ::
@ -14,12 +15,27 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
?>
<style>
.freebak-menu {width:<?=$m_w?>px; <?=$background?>}
.freebak-menu a {<?=$menu_default?>}
.freebak-menu a:hover {<?=$menu_over?>}
.freebak-menu .line {<?=$link_color?>}
.freebak-menu {
width: <?= $m_w ?>px;
<?= $background ?>
}
.freebak-menu a {
<?= $menu_default ?>
}
.freebak-menu a:hover {
<?= $menu_over ?>
}
.freebak-menu .line {
<?= $link_color ?>
}
@media all and (min-width:1025px) {
#body {margin-left:<?=$m_w?>px;}
#body {
margin-left: <?= $m_w ?>px;
}
}
</style>
@ -41,12 +57,14 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
} else {
?>
<li>
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
class="change-link">
<?= $me['me_name'] ?>
</a>
</li>
<?php }} ?>
<?php }
} ?>
<li class="line"></li>
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
@ -58,8 +76,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
<li>
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
JOIN<
</a>
JOIN< </a>
</li>
<?php } ?>
<?php } else { //멤버일 경우 ?>
@ -86,13 +103,16 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.L.css"
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
<li class="bgm-btn">
<div id="site_bgm_box">
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0"
marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
</div>
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
class="control-bgm-play" style="display:none;">
BGM ON
</a>
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
class="control-bgm-stop">
BGM OFF
</a>
</li>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
/* *************************************
:: 우측 메뉴 스타일 ::
@ -13,12 +14,27 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css"
?>
<style>
.freebak-menu {width:<?=$m_w?>px; <?=$background?>}
.freebak-menu a {<?=$menu_default?>}
.freebak-menu a:hover {<?=$menu_over?>}
.freebak-menu .line {<?=$link_color?>}
.freebak-menu {
width: <?= $m_w ?>px;
<?= $background ?>
}
.freebak-menu a {
<?= $menu_default ?>
}
.freebak-menu a:hover {
<?= $menu_over ?>
}
.freebak-menu .line {
<?= $link_color ?>
}
@media all and (min-width:1025px) {
#body {margin-right:<?=$m_w?>px;}
#body {
margin-right: <?= $m_w ?>px;
}
}
</style>
@ -40,12 +56,14 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css"
} else {
?>
<li>
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
class="change-link">
<?= $me['me_name'] ?>
</a>
</li>
<?php }} ?>
<?php }
} ?>
<li class="line"></li>
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
@ -57,8 +75,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css"
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
<li>
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
JOIN<
</a>
JOIN< </a>
</li>
<?php } ?>
<?php } else { //멤버일 경우 ?>
@ -85,13 +102,16 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.R.css"
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
<li class="bgm-btn">
<div id="site_bgm_box">
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0"
marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
</div>
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
class="control-bgm-play" style="display:none;">
BGM ON
</a>
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
class="control-bgm-stop">
BGM OFF
</a>
</li>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
/* *************************************
:: 우측 메뉴 스타일 ::
@ -13,12 +14,27 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css"
?>
<style>
.freebak-menu {height:<?=$m_h?>px; <?=$background?>}
.freebak-menu a {<?=$menu_default?>}
.freebak-menu a:hover {<?=$menu_over?>}
.freebak-menu .line {<?=$link_color?>}
.freebak-menu {
height: <?= $m_h ?>px;
<?= $background ?>
}
.freebak-menu a {
<?= $menu_default ?>
}
.freebak-menu a:hover {
<?= $menu_over ?>
}
.freebak-menu .line {
<?= $link_color ?>
}
@media all and (min-width:1025px) {
#body {padding-top:<?=$m_h?>px;}
#body {
padding-top: <?= $m_h ?>px;
}
}
</style>
@ -40,12 +56,14 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css"
} else {
?>
<li>
<a href="<?php echo $me['me_link']?>" <?php if($me['me_target']) { ?>target="_<?=$me['me_target']?>"<?php } ?> class="change-link">
<a href="<?php echo $me['me_link'] ?>" <?php if ($me['me_target']) { ?>target="_<?= $me['me_target'] ?>" <?php } ?>
class="change-link">
<?= $me['me_name'] ?>
</a>
</li>
<?php }} ?>
<?php }
} ?>
<li class="line"></li>
<?php if (!$is_member) { //멤버가 아닐 경우 ?>
@ -57,8 +75,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css"
<?php if ($is_add_register) { //회원가입이 가능한 경우 ?>
<li>
<a href="<?= G5_BBS_URL ?>/register.php" class="change-link">
JOIN<
</a>
JOIN< </a>
</li>
<?php } ?>
<?php } else { //멤버일 경우 ?>
@ -85,13 +102,16 @@ add_stylesheet('<link rel="stylesheet" href="'.$menu_skin_url.'/css/style.T.css"
<?php if (defined('_INDEX_') && $config['cf_bgm']) { ?>
<li class="bgm-btn">
<div id="site_bgm_box">
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0" marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
<iframe src="./bgm.php?action=play" name="bgm_frame" id="bgm_frame" border="0" frameborder="0"
marginheight="0" marginwidth="0" topmargin="0" scrolling="no" allowTransparency="true"></iframe>
</div>
<a href="<?=G5_URL?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')" class="control-bgm-play" style="display:none;">
<a href="<?= G5_URL ?>/bgm.php?action=play" target="bgm_frame" onclick="return fn_control_bgm('play')"
class="control-bgm-play" style="display:none;">
BGM ON
</a>
<a href="<?=G5_URL?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')" class="control-bgm-stop">
<a href="<?= G5_URL ?>/bgm.php" target="bgm_frame" onclick="return fn_control_bgm('stop')"
class="control-bgm-stop">
BGM OFF
</a>
</li>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
?>
<h3>에디터 메뉴 설정</h3>
@ -18,9 +19,11 @@ if (!defined('_GNUBOARD_')) exit;
<td colspan="2">
<?php echo help('가로 사이즈는 좌측/우측 메뉴일 경우 적용됩니다. 세로 사이즈는 상단/하단 메뉴일 경우 적용됩니다.') ?>
가로 : <input type="text" name="cs_value[<?=$css_index?>]" value="<?php echo $de['menu_size']['cs_value'] ?>" size="5"/>px
가로 : <input type="text" name="cs_value[<?= $css_index ?>]" value="<?php echo $de['menu_size']['cs_value'] ?>"
size="5" />px
&nbsp;&nbsp;
세로 : <input type="text" name="cs_etc_1[<?=$css_index?>]" value="<?php echo $de['menu_size']['cs_etc_1'] ?>" size="5"/>px
세로 : <input type="text" name="cs_etc_1[<?= $css_index ?>]" value="<?php echo $de['menu_size']['cs_etc_1'] ?>"
size="5" />px
</td>
</tr <?php $css_index++; ?>>

View file

@ -1,5 +1,6 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
$menu_size = get_style("menu_size");
$menu_content = get_style("menu_content");
@ -8,4 +9,3 @@ $m_w = $menu_size['cs_value'];
$m_h = $menu_size['cs_etc_1'];
$menu_con = conv_content($menu_content['cs_value'], 1, '');
?>

View file

@ -1,14 +1,21 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
// 좌측 메뉴 스타일
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.B.css">', 0);
?>
<style>
.editor-menu {height:<?=$m_h?>px; <?=$background?>}
.editor-menu {
height: <?= $m_h ?>px;
<?= $background ?>
}
@media all and (min-width:1025px) {
#body {padding-bottom:<?=$m_h?>px;}
#body {
padding-bottom: <?= $m_h ?>px;
}
}
</style>

View file

@ -1,14 +1,21 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
// 좌측 메뉴 스타일
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.L.css">', 0);
?>
<style>
.editor-menu {width:<?=$m_w?>px; <?=$background?>}
.editor-menu {
width: <?= $m_w ?>px;
<?= $background ?>
}
@media all and (min-width:1025px) {
#body {margin-left:<?=$m_w?>px;}
#body {
margin-left: <?= $m_w ?>px;
}
}
</style>

View file

@ -1,14 +1,21 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
// 좌측 메뉴 스타일
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.R.css">', 0);
?>
<style>
.editor-menu {width:<?=$m_w?>px; <?=$background?>}
.editor-menu {
width: <?= $m_w ?>px;
<?= $background ?>
}
@media all and (min-width:1025px) {
#body {margin-right:<?=$m_w?>px;}
#body {
margin-right: <?= $m_w ?>px;
}
}
</style>

View file

@ -1,14 +1,21 @@
<?php
if (!defined('_GNUBOARD_')) exit;
if (!defined('_GNUBOARD_'))
exit;
// 좌측 메뉴 스타일
add_stylesheet('<link rel="stylesheet" href="' . $menu_skin_url . '/css/style.T.css">', 0);
?>
<style>
.editor-menu {height:<?=$m_h?>px; <?=$background?>}
.editor-menu {
height: <?= $m_h ?>px;
<?= $background ?>
}
@media all and (min-width:1025px) {
#body {padding-top:<?=$m_h?>px;}
#body {
padding-top: <?= $m_h ?>px;
}
}
</style>