258 lines
9.9 KiB
PHP
258 lines
9.9 KiB
PHP
|
|
<?php
|
||
|
|
include_once './_common.php';
|
||
|
|
include_once G5_EDITOR_LIB;
|
||
|
|
|
||
|
|
auth_check($auth[$sub_menu], 'r');
|
||
|
|
|
||
|
|
if ($is_admin != 'super')
|
||
|
|
alert('최고관리자만 접근 가능합니다.');
|
||
|
|
|
||
|
|
$g5['title'] = '커뮤니티 설정';
|
||
|
|
include_once './admin.head.php';
|
||
|
|
|
||
|
|
$pg_anchor = '<ul class="anchor">
|
||
|
|
<li><a href="#anc_001">DB확인</a></li>
|
||
|
|
<li><a href="#anc_002">기본설정</a></li>
|
||
|
|
<li><a href="#anc_003">기능설정</a></li>
|
||
|
|
<li><a href="#anc_004">기타항목설정</a></li>
|
||
|
|
</ul>';
|
||
|
|
|
||
|
|
$frm_submit = '<div class="list_confirm">
|
||
|
|
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||
|
|
</div>';
|
||
|
|
|
||
|
|
$is_community_init = Community::isInitCommunity();
|
||
|
|
|
||
|
|
if (!$is_community_init) {
|
||
|
|
$pg_anchor = '<ul class="anchor">
|
||
|
|
<li><a href="#anc_001">DB확인</a></li>
|
||
|
|
</ul>';
|
||
|
|
|
||
|
|
$frm_submit = '';
|
||
|
|
} else {
|
||
|
|
$pg_anchor = '<ul class="anchor">
|
||
|
|
<li><a href="#anc_002">기본설정</a></li>
|
||
|
|
<li><a href="#anc_003">기능설정</a></li>
|
||
|
|
<li><a href="#anc_004">기타항목설정</a></li>
|
||
|
|
</ul>';
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<form name="fconfigform" id="fconfigform" method="post" onsubmit="return fconfigform_submit(this);"
|
||
|
|
enctype="multipart/form-data">
|
||
|
|
<input type="hidden" name="token" value="" id="token">
|
||
|
|
<?php if(!$is_community_init) { ?>
|
||
|
|
<section id="anc_001">
|
||
|
|
<h2 class="h2_frm">커뮤니티 DB 확인</h2>
|
||
|
|
<?php echo $pg_anchor ?>
|
||
|
|
<div class="local_desc02 local_desc">
|
||
|
|
<p>커뮤니티용 기능에 필요한 데이터베이스를 확인합니다.</p>
|
||
|
|
<p>데이터베이스가 생성되어 있지 않으면 정상적으로 동작하지 않을 수 있습니다.</p>
|
||
|
|
<p><strong>커뮤니티 기능을 사용할 것이 아니라면 DB를 생성하지 않아도 됩니다.</strong></p>
|
||
|
|
<p>커뮤니티 기능 활성화 시 커뮤니티 메뉴가 표시됩니다.</p>
|
||
|
|
</div>
|
||
|
|
<div class="tbl_frm01 tbl_wrap">
|
||
|
|
<table>
|
||
|
|
<caption>홈페이지 기본환경 설정</caption>
|
||
|
|
<colgroup>
|
||
|
|
<col style="width: 150px;">
|
||
|
|
<col>
|
||
|
|
</colgroup>
|
||
|
|
<tbody>
|
||
|
|
<?php
|
||
|
|
$items = Community::checkDatabase();
|
||
|
|
foreach($items as $key => $item) {
|
||
|
|
$vicon = "<span class=\"dbchk\"><i class=\"dbchk bi bi-x-circle\"></i> 생성되지 않음</span>";
|
||
|
|
?><tr><th scope="row"><?=$key?></th><td><?=$vicon?></td></tr><?php
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
<div class="list_confirm">
|
||
|
|
<a href="./_create_community_db.php">DB TABLE 생성</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<?php } else {?>
|
||
|
|
<section id="anc_002">
|
||
|
|
<h2 class="h2_frm">커뮤니티 기본환경 설정</h2>
|
||
|
|
<?php echo $pg_anchor ?>
|
||
|
|
<div class="local_desc02 local_desc">
|
||
|
|
<p>커뮤니티용 기능에 필요한 설정입니다.</p>
|
||
|
|
</div>
|
||
|
|
<div class="tbl_frm01 tbl_wrap">
|
||
|
|
<table>
|
||
|
|
<caption>홈페이지 기본환경 설정</caption>
|
||
|
|
<colgroup>
|
||
|
|
<col style="width: 150px;">
|
||
|
|
<col>
|
||
|
|
</colgroup>
|
||
|
|
<tbody>
|
||
|
|
<tr>
|
||
|
|
<th scope="row">공개설정</th>
|
||
|
|
<td>
|
||
|
|
<input type="checkbox" name="cf_2" value="1" id="cf_2" <?php echo $config['cf_2'] ? 'checked' : ''; ?>>
|
||
|
|
<label for="cf_2">캐릭터생성 가능</label>
|
||
|
|
|
||
|
|
<input type="checkbox" name="cf_3" value="1" id="cf_3" <?php echo $config['cf_3'] ? 'checked' : ''; ?>>
|
||
|
|
<label for="cf_3">캐릭터수정 가능</label>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th scope="row">기능설정</th>
|
||
|
|
<td>
|
||
|
|
<input type="checkbox" name="cf_4" value="1" id="cf_4" <?php echo $config['cf_4'] ? 'checked' : ''; ?>>
|
||
|
|
<label for="cf_4">탐색사용</label>
|
||
|
|
|
||
|
|
<input type="checkbox" name="cf_5" value="1" id="cf_5" <?php echo $config['cf_5'] ? 'checked' : ''; ?>>
|
||
|
|
<label for="cf_5">조합(레시피)사용</label>
|
||
|
|
|
||
|
|
<input type="checkbox" name="cf_6" value="1" id="cf_6" <?php echo $config['cf_6'] ? 'checked' : ''; ?>>
|
||
|
|
<label for="cf_6">탐색 수행 가능</label>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<?php echo $frm_submit; ?>
|
||
|
|
<section id="anc_003">
|
||
|
|
<h2 class="h2_frm">기능 설정</h2>
|
||
|
|
<?php echo $pg_anchor ?>
|
||
|
|
<div class="tbl_frm01 tbl_wrap">
|
||
|
|
<table>
|
||
|
|
<colgroup>
|
||
|
|
<col style="width: 150px;">
|
||
|
|
<col>
|
||
|
|
</colgroup>
|
||
|
|
<tbody>
|
||
|
|
<tr>
|
||
|
|
<th scope="row">캐릭터 최대 생성 갯수</th>
|
||
|
|
<td>
|
||
|
|
<input type="text" name="cf_character_count" value="<?php echo get_text($config['cf_character_count']) ?>"
|
||
|
|
id="cf_character_count" size="10">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th scope="row">최초 스탯 포인트</th>
|
||
|
|
<td>
|
||
|
|
<?php echo help('스탯 사용 설정 시, 캐릭터가 최초로 획득하는 스탯 포인트를 설정합니다.') ?>
|
||
|
|
<input type="text" name="cf_status_point" value="<?php echo get_text($config['cf_status_point']) ?>"
|
||
|
|
id="cf_status_point" size="10">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th scope="row">하루 탐색 횟수</th>
|
||
|
|
<td>
|
||
|
|
<input type="text" name="cf_search_count" value="<?php echo get_text($config['cf_search_count']) ?>"
|
||
|
|
id="cf_search_count" size="10">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<?php echo $frm_submit; ?>
|
||
|
|
<section id="anc_004">
|
||
|
|
<h2 class="h2_frm">기타 항목명 설정</h2>
|
||
|
|
<?php echo $pg_anchor ?>
|
||
|
|
<div class="tbl_frm01 tbl_wrap">
|
||
|
|
<table>
|
||
|
|
<colgroup>
|
||
|
|
<col style="width: 150px;">
|
||
|
|
<col style="width: 100px;">
|
||
|
|
<col>
|
||
|
|
</colgroup>
|
||
|
|
<tbody>
|
||
|
|
<tr>
|
||
|
|
<th scope="row" rowspan="2"><?= $config['cf_money'] ? $config['cf_money'] : "(포인트)" ?> 설정</th>
|
||
|
|
<td>명칭</td>
|
||
|
|
<td>
|
||
|
|
<input type="text" name="cf_money" value="<?php echo get_text($config['cf_money']) ?>" id="cf_money"
|
||
|
|
size="30">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td>단위</td>
|
||
|
|
<td>
|
||
|
|
<input type="text" name="cf_money_pice" value="<?php echo get_text($config['cf_money_pice']) ?>"
|
||
|
|
id="cf_money_pice" size="30">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th scope="row" rowspan="2"><?= $config['cf_exp_name'] ? $config['cf_exp_name'] : "(경험치)" ?> 설정</th>
|
||
|
|
<td>명칭</td>
|
||
|
|
<td>
|
||
|
|
<input type="text" name="cf_exp_name" value="<?php echo get_text($config['cf_exp_name']) ?>"
|
||
|
|
id="cf_exp_name" size="30">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td>단위</td>
|
||
|
|
<td>
|
||
|
|
<input type="text" name="cf_exp_pice" value="<?php echo get_text($config['cf_exp_pice']) ?>"
|
||
|
|
id="cf_exp_pice" size="30">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th scope="row"><?= $config['cf_rank_name'] ? $config['cf_rank_name'] : "(랭크)" ?> 설정</th>
|
||
|
|
<td>명칭</td>
|
||
|
|
<td>
|
||
|
|
<input type="text" name="cf_rank_name" value="<?php echo get_text($config['cf_rank_name']) ?>"
|
||
|
|
id="cf_rank_name" size="30">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th scope="row"><?= $config['cf_side_title'] ? $config['cf_side_title'] : "(소속)" ?> (선택A)설정</th>
|
||
|
|
<td>명칭</td>
|
||
|
|
<td>
|
||
|
|
<?php echo help('명칭이 입력되지 않을 시, 프로필에 출력되지 않습니다.') ?>
|
||
|
|
<input type="text" name="cf_side_title" value="<?php echo get_text($config['cf_side_title']) ?>"
|
||
|
|
id="cf_side_title" size="30">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th scope="row"><?= $config['cf_class_title'] ? $config['cf_class_title'] : "(클래스)" ?> (선택B)설정</th>
|
||
|
|
<td>명칭</td>
|
||
|
|
<td>
|
||
|
|
<?php echo help('명칭이 입력되지 않을 시, 프로필에 출력되지 않습니다.') ?>
|
||
|
|
<input type="text" name="cf_class_title" value="<?php echo get_text($config['cf_class_title']) ?>"
|
||
|
|
id="cf_class_title" size="30">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th scope="row">상점 카테고리</th>
|
||
|
|
<td>-</td>
|
||
|
|
<td>
|
||
|
|
<?php echo help('카테고리 구분은 || 를 사용합니다.') ?>
|
||
|
|
<input type="text" name="cf_shop_category" value="<?php echo get_text($config['cf_shop_category']) ?>"
|
||
|
|
id="cf_shop_category" size="100" placeholder="예시) 일반||이벤트">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th scope="row">아이템 기능</th>
|
||
|
|
<td>-</td>
|
||
|
|
<td>
|
||
|
|
<?php echo help('기능 구분은 || 를 사용합니다.') ?>
|
||
|
|
<input type="text" name="cf_item_category" value="<?php echo get_text($config['cf_item_category']) ?>"
|
||
|
|
id="cf_item_category" size="100" placeholder="예시) 일반||프로필수정||아이템추가||스탯회복">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
<?php echo $frm_submit; ?>
|
||
|
|
<?php } ?>
|
||
|
|
</form>
|
||
|
|
<script>
|
||
|
|
function fconfigform_submit(f) {
|
||
|
|
f.action = "./community_form_update.php";
|
||
|
|
<?php echo get_editor_js("cf_menu_text"); ?>
|
||
|
|
<?php echo get_editor_js("cf_mobile_menu_text"); ?>
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
<?php
|
||
|
|
EventHandler::triggerEvent("amber.admin.community_form_after");
|
||
|
|
include_once './admin.tail.php';
|