관리자: 기본환경설정, 관리권한설정, 회원관리 cbox

This commit is contained in:
whitedot
2013-02-15 09:55:23 +09:00
parent a89eeb346e
commit 8c4a21a271
4 changed files with 661 additions and 639 deletions

View File

@ -73,84 +73,85 @@ var list_delete_php = 'auth_list_delete.php';
</fieldset>
</form>
<form id="fauthlist" name="fauthlist" method="post">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="token" value="<?=$token?>">
<table>
<caption>
설정된 관리권한 내역
<section class="cbox">
<h2>설정된 관리권한 내역</h2>
<p>권한 <strong>r</strong>은 읽기권한, <strong>w</strong>는 쓰기권한, <strong>d</strong>는 삭제권한입니다.</p>
</caption>
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 권한설정 내역 전체선택" onclick="check_all(this.form)"></th>
<th scope="col"><?=subject_sort_link('a.mb_id')?>회원아이디</a></th>
<th scope="col"><?=subject_sort_link('mb_nick')?>별명</a></th>
<th scope="col">메뉴</th>
<th scope="col">권한</th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
// 메뉴번호가 바뀌는 경우에 현재 없는 저장된 메뉴는 삭제함
if (!isset($auth_menu[$row['au_menu']]))
<form id="fauthlist" name="fauthlist" method="post">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="token" value="<?=$token?>">
<table>
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 권한설정 내역 전체선택" onclick="check_all(this.form)"></th>
<th scope="col"><?=subject_sort_link('a.mb_id')?>회원아이디</a></th>
<th scope="col"><?=subject_sort_link('mb_nick')?>별명</a></th>
<th scope="col">메뉴</th>
<th scope="col">권한</th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
sql_query(" delete from {$g4['auth_table']} where au_menu = '{$row['au_menu']}' ");
continue;
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
// 메뉴번호가 바뀌는 경우에 현재 없는 저장된 메뉴는 삭제함
if (!isset($auth_menu[$row['au_menu']]))
{
sql_query(" delete from {$g4['auth_table']} where au_menu = '{$row['au_menu']}' ");
continue;
}
$list = $i%2;
?>
<tr>
<td class="td_chk">
<input type="hidden" name="au_menu[<?=$i?>]" value="<?=$row['au_menu']?>">
<input type="hidden" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=$row['mb_nick']?>님의 권한체크">
</td>
<td class="td_mbid"><a href="?sfl=a.mb_id&amp;stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
<td class="td_auth_mbnick"><?=$mb_nick?></td>
<td class="td_menu">
<?=$row['au_menu']?>
<?=$auth_menu[$row['au_menu']]?>
</td>
<td class="td_auth"><?=$row['au_auth']?></td>
</tr>
<?
}
$list = $i%2;
if ($i==0)
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
?>
<tr>
<td class="td_chk">
<input type="hidden" name="au_menu[<?=$i?>]" value="<?=$row['au_menu']?>">
<input type="hidden" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=$row['mb_nick']?>님의 권한체크">
</td>
<td class="td_mbid"><a href="?sfl=a.mb_id&amp;stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
<td class="td_auth_mbnick"><?=$mb_nick?></td>
<td class="td_menu">
<?=$row['au_menu']?>
<?=$auth_menu[$row['au_menu']]?>
</td>
<td class="td_auth"><?=$row['au_auth']?></td>
</tr>
</tbody>
</table>
<div class="btn_list">
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
</div>
<?
}
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&amp;page=');
echo $pagelist;
?>
if ($i==0)
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
<?
if (isset($stx))
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>'.PHP_EOL;
<div class="btn_list">
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
</div>
<?
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&amp;page=');
echo $pagelist;
?>
<?
if (isset($stx))
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>'.PHP_EOL;
if (strstr($sfl, 'mb_id'))
$mb_id = $stx;
else
$mb_id = '';
?>
</form>
if (strstr($sfl, 'mb_id'))
$mb_id = $stx;
else
$mb_id = '';
?>
</form>
</section>
<form id="fauthlist2" name="fauthlist2" method="post" onsubmit="return fauthlist2_submit(this);" autocomplete="off">
<input type="hidden" name="sfl" value="<?=$sfl?>">

View File

@ -16,477 +16,501 @@ if (!isset($config['cf_email_admin'])) {
$g4['title'] = '환경설정';
include_once ('./admin.head.php');
?>
<ul class="frm_list">
<li><a href="#frm_basic">기본환경</a></li>
<li><a href="#frm_board">게시판기본</a></li>
<li><a href="#frm_join">회원가입</a></li>
<li><a href="#frm_mail">기본메일환경</a></li>
<li><a href="#frm_article_mail">글작성메일</a></li>
<li><a href="#frm_join_mail">가입메일</a></li>
<li><a href="#frm_vote_mail">투표메일</a></li>
<li><a href="#frm_extra">여분필드</a></li>
</ul>
$pg_anchor = "
<ul class=\"frm_list\">
<li><a href=\"#frm_basic\">기본환경</a></li>
<li><a href=\"#frm_board\">게시판기본</a></li>
<li><a href=\"#frm_join\">회원가입</a></li>
<li><a href=\"#frm_mail\">기본메일환경</a></li>
<li><a href=\"#frm_article_mail\">글작성메일</a></li>
<li><a href=\"#frm_join_mail\">가입메일</a></li>
<li><a href=\"#frm_vote_mail\">투표메일</a></li>
<li><a href=\"#frm_extra\">여분필드</a></li>
</ul>";
?>
<form id="fconfigform" name="fconfigform" method="post" onsubmit="return fconfigform_submit(this);">
<input type="hidden" id="token" name="token" value="<?=$token?>">
<?=$pg_anchor?>
<section class="cbox">
<h2>홈페이지 기본환경 설정</h2>
<h2>홈페이지 기본환경 설정</h2>
<table id="frm_basic" class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="cf_title">홈페이지 제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="cf_title" name="cf_title" class="required" required value="<?=$config['cf_title']?>" size="50"></td>
<th scope="row"><label for="cf_admin">최고관리자<strong class="sound_only">필수</strong></label></th>
<td><?=get_member_id_select('cf_admin', 10, $config['cf_admin'], 'required')?></td>
</tr>
<tr>
<th scope="row"><label for="cf_use_point">포인트 사용</label></th>
<td colspan="3"><input type="checkbox" id="cf_use_point" name="cf_use_point" value="1" <?=$config['cf_use_point']?'checked':'';?>> 사용</td>
</tr>
<tr>
<th scope="row"><label for="cf_login_point">로그인시 포인트<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('회원에게 하루에 한번만 부여')?>
<input type="text" id="cf_login_point" name="cf_login_point" class="required" required value="<?=$config['cf_login_point']?>" size="2"> 점
</td>
<th scope="row"><label for="cf_memo_send_point">쪽지보낼시 차감 포인트<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('양수로 입력하십시오. 0점은 쪽지 보낼시 포인트를 차감하지 않습니다.')?>
<input type="text" id="cf_memo_send_point" name="cf_memo_send_point" class="required" required value="<?=$config['cf_memo_send_point']?>" size="2"> 점
</td>
</tr>
<tr>
<th scope="row"><label for="cf_cut_name">이름(별명) 표시</label></th>
<td colspan="3">
<?=help('영숫자 2글자 = 한글 1글자')?>
<input type="text" id="cf_cut_name" name="cf_cut_name" value="<?=$config['cf_cut_name']?>" size="2"> 자리만 표시
</td>
</tr>
<tr>
<th scope="row"><label for="cf_nick_modify">별명 수정</label></th>
<td>수정하면 <input type="text" id="cf_nick_modify" name="cf_nick_modify" value="<?=$config['cf_nick_modify']?>" size="1"> 일 동안 바꿀 수 없음</td>
<th scope="row"><label for="cf_open_modify">정보공개 수정</label></th>
<td>수정하면 <input type="text" id="cf_open_modify" name="cf_open_modify" value="<?=$config['cf_open_modify']?>" size="1"> 일 동안 바꿀 수 없음</td>
</tr>
<tr>
<th scope="row"><label for="cf_new_del">최근게시물 삭제</label></th>
<td>
<?=help('설정일이 지난 최근게시물 자동 삭제')?>
<input type="text" id="cf_new_del" name="cf_new_del" value="<?=$config['cf_new_del']?>" size="2"> 일
</td>
<th scope="row"><label for="cf_memo_del">쪽지 삭제</label></th>
<td>
<?=help('설정일이 지난 쪽지 자동 삭제')?>
<input type="text" id="cf_memo_del" name="cf_memo_del" value="<?=$config['cf_memo_del']?>" size="2"> 일
</td>
</tr>
<tr>
<th scope="row"><label for="cf_visit_del">접속자로그 삭제</label></th>
<td>
<?=help('설정일이 지난 접속자 로그 자동 삭제')?>
<input type="text" id="cf_visit_del" name="cf_visit_del" value="<?=$config['cf_visit_del']?>" size="2"> 일
</td>
<th scope="row"><label for="cf_popular_del">인기검색어 삭제</label></th>
<td>
<?=help('설정일이 지난 인기검색어 자동 삭제')?>
<input type="text" id="cf_popular_del" name="cf_popular_del" value="<?=$config['cf_popular_del']?>" size="2"> 일
</td>
</tr>
<tr>
<th scope="row"><label for="cf_login_minutes">현재 접속자</label></th>
<td>
<?=help('설정값 이내의 접속자를 현재 접속자로 인정')?>
<input type="text" id="cf_login_minutes" name="cf_login_minutes" value="<?=$config['cf_login_minutes']?>" size="2"> 분
</td>
<th scope="row"><label for="cf_page_rows">한페이지당 라인수</label></th>
<td>
<?=help('목록(리스트) 한페이지당 라인수')?>
<input type="text" id="cf_page_rows" name="cf_page_rows" value="<?=$config['cf_page_rows']?>" size="2"> 라인
</td>
</tr>
<tr>
<th scope="row"><label for="cf_new_skin">최근게시물 스킨<strong class="sound_only">필수</strong></label></th>
<td><select id="cf_new_skin" name="cf_new_skin" class="required" required>
<?
$arr = get_skin_dir('new');
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
?></select>
<script> document.getElementById('cf_new_skin').value="<?=$config['cf_new_skin']?>";</script>
</td>
<th scope="row"><label for="cf_new_rows">최근게시물 라인수</label></th>
<td>
<?=help('목록 한페이지당 라인수')?>
<input type="text" id="cf_new_rows" name="cf_new_rows" value="<?=$config['cf_new_rows']?>" size="2"> 라인
</td>
</tr>
<tr>
<th scope="row"><label for="cf_search_skin">검색 스킨<strong class="sound_only">필수</strong></label></th>
<td colspan="3"><select id="cf_search_skin" name="cf_search_skin" class="required" required>
<?
$arr = get_skin_dir("search");
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
?></select>
<script> document.getElementById('cf_search_skin').value="<?=$config['cf_search_skin']?>";</script>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_connect_skin">접속자 스킨<strong class="sound_only">필수</strong></label></th>
<td colspan="3"><select id="cf_connect_skin" name="cf_connect_skin" class="required" required>
<?
$arr = get_skin_dir('connect');
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
?></select>
<script> document.getElementById('cf_connect_skin').value="<?=$config['cf_connect_skin']?>";</script>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_use_copy_log">복사, 이동시 로그</label></th>
<td colspan="3">
<?=help('게시물 아래에 누구로 부터 복사, 이동됨 표시')?>
<input type="checkbox" id="cf_use_copy_log" name="cf_use_copy_log" value="1" <?=$config['cf_use_copy_log']?'checked':'';?>> 남김
</td>
</tr>
<tr>
<th scope="row"><label for="cf_possible_ip">접근가능 IP</label></th>
<td>
<?=help('입력된 IP의 컴퓨터만 접근할 수 있습니다.<br>123.123.+ 도 입력 가능. (엔터로 구분)')?>
<textarea id="cf_possible_ip" name="cf_possible_ip"><?=$config['cf_possible_ip']?> </textarea>
</td>
<th scope="row"><label for="cf_intercept_ip">접근차단 IP</label></th>
<td>
<?=help('입력된 IP의 컴퓨터는 접근할 수 없음.<br>123.123.+ 도 입력 가능. (엔터로 구분)')?>
<textarea id="cf_intercept_ip" name="cf_intercept_ip"><?=$config['cf_intercept_ip']?> </textarea>
</td>
</tr>
</tbody>
</table>
<table id="frm_basic" class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="cf_title">홈페이지 제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="cf_title" name="cf_title" class="required" required value="<?=$config['cf_title']?>" size="50"></td>
<th scope="row"><label for="cf_admin">최고관리자<strong class="sound_only">필수</strong></label></th>
<td><?=get_member_id_select('cf_admin', 10, $config['cf_admin'], 'required')?></td>
</tr>
<tr>
<th scope="row"><label for="cf_use_point">포인트 사용</label></th>
<td colspan="3"><input type="checkbox" id="cf_use_point" name="cf_use_point" value="1" <?=$config['cf_use_point']?'checked':'';?>> 사용</td>
</tr>
<tr>
<th scope="row"><label for="cf_login_point">로그인시 포인트<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('회원에게 하루에 한번만 부여')?>
<input type="text" id="cf_login_point" name="cf_login_point" class="required" required value="<?=$config['cf_login_point']?>" size="2"> 점
</td>
<th scope="row"><label for="cf_memo_send_point">쪽지보낼시 차감 포인트<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('양수로 입력하십시오. 0점은 쪽지 보낼시 포인트를 차감하지 않습니다.')?>
<input type="text" id="cf_memo_send_point" name="cf_memo_send_point" class="required" required value="<?=$config['cf_memo_send_point']?>" size="2"> 점
</td>
</tr>
<tr>
<th scope="row"><label for="cf_cut_name">이름(별명) 표시</label></th>
<td colspan="3">
<?=help('영숫자 2글자 = 한글 1글자')?>
<input type="text" id="cf_cut_name" name="cf_cut_name" value="<?=$config['cf_cut_name']?>" size="2"> 자리만 표시
</td>
</tr>
<tr>
<th scope="row"><label for="cf_nick_modify">별명 수정</label></th>
<td>수정하면 <input type="text" id="cf_nick_modify" name="cf_nick_modify" value="<?=$config['cf_nick_modify']?>" size="1"> 일 동안 바꿀 수 없음</td>
<th scope="row"><label for="cf_open_modify">정보공개 수정</label></th>
<td>수정하면 <input type="text" id="cf_open_modify" name="cf_open_modify" value="<?=$config['cf_open_modify']?>" size="1"> 일 동안 바꿀 수 없음</td>
</tr>
<tr>
<th scope="row"><label for="cf_new_del">최근게시물 삭제</label></th>
<td>
<?=help('설정일이 지난 최근게시물 자동 삭제')?>
<input type="text" id="cf_new_del" name="cf_new_del" value="<?=$config['cf_new_del']?>" size="2"> 일
</td>
<th scope="row"><label for="cf_memo_del">쪽지 삭제</label></th>
<td>
<?=help('설정일이 지난 쪽지 자동 삭제')?>
<input type="text" id="cf_memo_del" name="cf_memo_del" value="<?=$config['cf_memo_del']?>" size="2"> 일
</td>
</tr>
<tr>
<th scope="row"><label for="cf_visit_del">접속자로그 삭제</label></th>
<td>
<?=help('설정일이 지난 접속자 로그 자동 삭제')?>
<input type="text" id="cf_visit_del" name="cf_visit_del" value="<?=$config['cf_visit_del']?>" size="2"> 일
</td>
<th scope="row"><label for="cf_popular_del">인기검색어 삭제</label></th>
<td>
<?=help('설정일이 지난 인기검색어 자동 삭제')?>
<input type="text" id="cf_popular_del" name="cf_popular_del" value="<?=$config['cf_popular_del']?>" size="2"> 일
</td>
</tr>
<tr>
<th scope="row"><label for="cf_login_minutes">현재 접속자</label></th>
<td>
<?=help('설정값 이내의 접속자를 현재 접속자로 인정')?>
<input type="text" id="cf_login_minutes" name="cf_login_minutes" value="<?=$config['cf_login_minutes']?>" size="2"> 분
</td>
<th scope="row"><label for="cf_page_rows">한페이지당 라인수</label></th>
<td>
<?=help('목록(리스트) 한페이지당 라인수')?>
<input type="text" id="cf_page_rows" name="cf_page_rows" value="<?=$config['cf_page_rows']?>" size="2"> 라인
</td>
</tr>
<tr>
<th scope="row"><label for="cf_new_skin">최근게시물 스킨<strong class="sound_only">필수</strong></label></th>
<td><select id="cf_new_skin" name="cf_new_skin" class="required" required>
<?
$arr = get_skin_dir('new');
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
?></select>
<script> document.getElementById('cf_new_skin').value="<?=$config['cf_new_skin']?>";</script>
</td>
<th scope="row"><label for="cf_new_rows">최근게시물 라인수</label></th>
<td>
<?=help('목록 한페이지당 라인수')?>
<input type="text" id="cf_new_rows" name="cf_new_rows" value="<?=$config['cf_new_rows']?>" size="2"> 라인
</td>
</tr>
<tr>
<th scope="row"><label for="cf_search_skin">검색 스킨<strong class="sound_only">필수</strong></label></th>
<td colspan="3"><select id="cf_search_skin" name="cf_search_skin" class="required" required>
<?
$arr = get_skin_dir("search");
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
?></select>
<script> document.getElementById('cf_search_skin').value="<?=$config['cf_search_skin']?>";</script>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_connect_skin">접속자 스킨<strong class="sound_only">필수</strong></label></th>
<td colspan="3"><select id="cf_connect_skin" name="cf_connect_skin" class="required" required>
<?
$arr = get_skin_dir('connect');
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
?></select>
<script> document.getElementById('cf_connect_skin').value="<?=$config['cf_connect_skin']?>";</script>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_use_copy_log">복사, 이동시 로그</label></th>
<td colspan="3">
<?=help('게시물 아래에 누구로 부터 복사, 이동됨 표시')?>
<input type="checkbox" id="cf_use_copy_log" name="cf_use_copy_log" value="1" <?=$config['cf_use_copy_log']?'checked':'';?>> 남김
</td>
</tr>
<tr>
<th scope="row"><label for="cf_possible_ip">접근가능 IP</label></th>
<td>
<?=help('입력된 IP의 컴퓨터만 접근할 수 있습니다.<br>123.123.+ 도 입력 가능. (엔터로 구분)')?>
<textarea id="cf_possible_ip" name="cf_possible_ip"><?=$config['cf_possible_ip']?> </textarea>
</td>
<th scope="row"><label for="cf_intercept_ip">접근차단 IP</label></th>
<td>
<?=help('입력된 IP의 컴퓨터는 접근할 수 없음.<br>123.123.+ 도 입력 가능. (엔터로 구분)')?>
<textarea id="cf_intercept_ip" name="cf_intercept_ip"><?=$config['cf_intercept_ip']?> </textarea>
</td>
</tr>
</tbody>
</table>
</section>
<table id="frm_board" class="frm_tbl">
<caption>
게시판 기본 설정
<?=$pg_anchor?>
<section class="cbox">
<h2>게시판 기본 설정</h2>
<p>각 게시판 관리에서 개별적으로 설정 가능합니다.</p>
</caption>
<tbody>
<tr>
<th scope="row"><label for="cf_read_point">글읽기 포인트<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="cf_read_point" name="cf_read_point" class="required" required value="<?=$config['cf_read_point']?>" size="2"> 점</td>
<th scope="row"><label for="cf_write_point">글쓰기 포인트</label></th>
<td><input type="text" id="cf_write_point" name="cf_write_point" class="required" required value="<?=$config['cf_write_point']?>" size="2"> 점</td>
</tr>
<tr>
<th scope="row"><label for="cf_comment_point">댓글쓰기 포인트</label></th>
<td><input type="text" id="cf_comment_point" name="cf_comment_point" class="required" required value="<?=$config['cf_comment_point']?>" size="2"> 점</td>
<th scope="row"><label for="cf_download_point">다운로드 포인트</label></th>
<td><input type="text" id="cf_download_point" name="cf_download_point" class="required" required value="<?=$config['cf_download_point']?>" size="2"> 점</td>
</tr>
<tr>
<th scope="row"><label for="cf_link_target">새창 링크</label></th>
<td>
<?=help('글내용중 자동 링크되는 타켓을 지정합니다.')?>
<select id="cf_link_target">
<option value="_blank"<? if ($config['cf_link_target'] == '_blank') echo "selected";?>>_blank</option>
<option value="_self"<? if ($config['cf_link_target'] == '_self') echo "selected";?>>_self</option>
<option value="_top"<? if ($config['cf_link_target'] == '_top') echo "selected";?>>_top</option>
<option value="_new"<? if ($config['cf_link_target'] == '_new') echo "selected";?>>_new</option>
</select>
</td>
<th scope="row"><label for="cf_search_part">검색 단위</label></th>
<td><input type="text" id="cf_search_part" name="cf_search_part" value="<?=$config['cf_search_part']?>" size="2"> 건 단위로 검색</td>
</tr>
<tr>
<th scope="row"><label for="cf_delay_sec">글쓰기 간격<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="cf_delay_sec" name="cf_delay_sec" class="required numeric" required value="<?=$config['cf_delay_sec']?>" size="2"> 초 지난후 가능</td>
<th scope="row"><label for="cf_write_pages">페이지 표시 수<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="cf_write_pages" name="cf_write_pages" class="required numeric" required value="<?=$config['cf_write_pages']?>" size="2"> 페이지씩 표시</td>
</tr>
<tr>
<th scope="row"><label for="cf_image_extension">이미지 업로드 확장자</label></th>
<td colspan="3">
<?=help('게시판 글작성시 이미지 파일 업로드 가능 확장자. | 로 구분')?>
<input type="text" id="cf_image_extension" name="cf_image_extension" value="<?=$config['cf_image_extension']?>" size="70">
</td>
</tr>
<tr>
<th scope="row"><label for="cf_flash_extension">플래쉬 업로드 확장자</label></th>
<td colspan="3">
<?=help('게시판 글작성시 플래쉬 파일 업로드 가능 확장자. | 로 구분')?>
<input type="text" id="cf_flash_extension" name="cf_flash_extension" value="<?=$config['cf_flash_extension']?>" size="70">
</td>
</tr>
<tr>
<th scope="row"><label for="cf_movie_extension">동영상 업로드 확장자</label></th>
<td colspan="3">
<?=help('게시판 글작성시 동영상 파일 업로드 가능 확장자. | 로 구분')?>
<input type="text" id="cf_movie_extension" name="cf_movie_extension" value="<?=$config['cf_movie_extension']?>" size="70">
</td>
</tr>
<tr>
<th scope="row"><label for="cf_filter">단어 필터링</label></th>
<td colspan="3">
<?=help('입력된 단어가 포함된 내용은 게시할 수 없습니다. 단어와 단어 사이는 ,로 구분합니다.')?>
<textarea id="cf_filter" name="cf_filter" rows="7"><?=$config['cf_filter']?> </textarea>
</td>
</tr>
</tbody>
</table>
<table id="frm_board" class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="cf_read_point">글읽기 포인트<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="cf_read_point" name="cf_read_point" class="required" required value="<?=$config['cf_read_point']?>" size="2"> 점</td>
<th scope="row"><label for="cf_write_point">글쓰기 포인트</label></th>
<td><input type="text" id="cf_write_point" name="cf_write_point" class="required" required value="<?=$config['cf_write_point']?>" size="2"> 점</td>
</tr>
<tr>
<th scope="row"><label for="cf_comment_point">댓글쓰기 포인트</label></th>
<td><input type="text" id="cf_comment_point" name="cf_comment_point" class="required" required value="<?=$config['cf_comment_point']?>" size="2"> 점</td>
<th scope="row"><label for="cf_download_point">다운로드 포인트</label></th>
<td><input type="text" id="cf_download_point" name="cf_download_point" class="required" required value="<?=$config['cf_download_point']?>" size="2"> 점</td>
</tr>
<tr>
<th scope="row"><label for="cf_link_target">새창 링크</label></th>
<td>
<?=help('글내용중 자동 링크되는 타켓을 지정합니다.')?>
<select id="cf_link_target">
<option value="_blank"<? if ($config['cf_link_target'] == '_blank') echo "selected";?>>_blank</option>
<option value="_self"<? if ($config['cf_link_target'] == '_self') echo "selected";?>>_self</option>
<option value="_top"<? if ($config['cf_link_target'] == '_top') echo "selected";?>>_top</option>
<option value="_new"<? if ($config['cf_link_target'] == '_new') echo "selected";?>>_new</option>
</select>
</td>
<th scope="row"><label for="cf_search_part">검색 단위</label></th>
<td><input type="text" id="cf_search_part" name="cf_search_part" value="<?=$config['cf_search_part']?>" size="2"> 건 단위로 검색</td>
</tr>
<tr>
<th scope="row"><label for="cf_delay_sec">글쓰기 간격<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="cf_delay_sec" name="cf_delay_sec" class="required numeric" required value="<?=$config['cf_delay_sec']?>" size="2"> 초 지난후 가능</td>
<th scope="row"><label for="cf_write_pages">페이지 표시 수<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="cf_write_pages" name="cf_write_pages" class="required numeric" required value="<?=$config['cf_write_pages']?>" size="2"> 페이지씩 표시</td>
</tr>
<tr>
<th scope="row"><label for="cf_image_extension">이미지 업로드 확장자</label></th>
<td colspan="3">
<?=help('게시판 글작성시 이미지 파일 업로드 가능 확장자. | 로 구분')?>
<input type="text" id="cf_image_extension" name="cf_image_extension" value="<?=$config['cf_image_extension']?>" size="70">
</td>
</tr>
<tr>
<th scope="row"><label for="cf_flash_extension">플래쉬 업로드 확장자</label></th>
<td colspan="3">
<?=help('게시판 글작성시 플래쉬 파일 업로드 가능 확장자. | 로 구분')?>
<input type="text" id="cf_flash_extension" name="cf_flash_extension" value="<?=$config['cf_flash_extension']?>" size="70">
</td>
</tr>
<tr>
<th scope="row"><label for="cf_movie_extension">동영상 업로드 확장자</label></th>
<td colspan="3">
<?=help('게시판 글작성시 동영상 파일 업로드 가능 확장자. | 로 구분')?>
<input type="text" id="cf_movie_extension" name="cf_movie_extension" value="<?=$config['cf_movie_extension']?>" size="70">
</td>
</tr>
<tr>
<th scope="row"><label for="cf_filter">단어 필터링</label></th>
<td colspan="3">
<?=help('입력된 단어가 포함된 내용은 게시할 수 없습니다. 단어와 단어 사이는 ,로 구분합니다.')?>
<textarea id="cf_filter" name="cf_filter" rows="7"><?=$config['cf_filter']?> </textarea>
</td>
</tr>
</tbody>
</table>
</section>
<table id="frm_join" class="frm_tbl">
<caption>
회원가입 설정
<?=$pg_anchor?>
<section class="cbox">
<h2>회원가입 설정</h2>
<p>회원가입 시 사용할 스킨과 입력 받을 정보 등을 설정할 수 있습니다.</p>
</caption>
<tbody>
<tr>
<th scope="row"><label for="cf_member_skin">회원 스킨<strong class="sound_only">필수</strong></label></th>
<td colspan="3">
<select id="cf_member_skin" name="cf_member_skin" class="required" required>
<?
$arr = get_skin_dir('member');
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
?>
</select>
<script> document.getElementById('cf_member_skin').value="<?=$config['cf_member_skin']?>";</script>
</td>
</tr>
<tr>
<th scope="row">홈페이지 입력</th>
<td>
<input type="checkbox" id="cf_use_homepage" name="cf_use_homepage" value="1" <?=$config['cf_use_homepage']?'checked':'';?>> <label for="cf_use_homepage">보이기</label>
<input type="checkbox" id="cf_req_homepage" name="cf_req_homepage" value="1" <?=$config['cf_req_homepage']?'checked':'';?>> <label for="cf_req_homepage">필수입력</label>
</td>
<th scope="row">주소 입력</th>
<td>
<input type="checkbox" id="cf_use_addr" name="cf_use_addr" value="1" <?=$config['cf_use_addr']?'checked':'';?>> <label for="cf_use_addr">보이기</label>
<input type="checkbox" id="cf_req_addr" name="cf_req_addr" value="1" <?=$config['cf_req_addr']?'checked':'';?>> <label for="cf_req_addr">필수입력</label>
</td>
</tr>
<tr>
<th scope="row">전화번호 입력</th>
<td>
<input type="checkbox" id="cf_use_tel" name="cf_use_tel" value="1" <?=$config['cf_use_tel']?'checked':'';?>> <label for="cf_use_tel">보이기</label>
<input type="checkbox" id="cf_req_tel" name="cf_req_tel" value="1" <?=$config['cf_req_tel']?'checked':'';?>> <label for="cf_req_tel">필수입력</label>
</td>
<th scope="row">핸드폰 입력</th>
<td>
<input type="checkbox" id="cf_use_hp" name="cf_use_hp" value="1" <?=$config['cf_use_hp']?'checked':'';?>> <label for="cf_use_hp">보이기</label>
<input type="checkbox" id="cf_req_hp" name="cf_req_hp" value="1" <?=$config['cf_req_hp']?'checked':'';?>> <label for="cf_req_hp">필수입력</label>
</td>
</tr>
<tr>
<th scope="row">서명 입력</th>
<td>
<input type="checkbox" id="cf_use_signature" name="cf_use_signature" value="1" <?=$config['cf_use_signature']?'checked':'';?>> <label for="cf_use_signature">보이기</label>
<input type="checkbox" id="cf_req_signature" name="cf_req_signature" value="1" <?=$config['cf_req_signature']?'checked':'';?>> <label for="cf_req_signature">필수입력</label>
</td>
<th scope="row">자기소개 입력</th>
<td>
<input type="checkbox" id="cf_use_profile" name="cf_use_profile" value="1" <?=$config['cf_use_profile']?'checked':'';?>> <label for="cf_use_profile">보이기</label>
<input type="checkbox" id="cf_req_profile" name="cf_req_profile" value="1" <?=$config['cf_req_profile']?'checked':'';?>> <label for="cf_req_profile">필수입력</label>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_register_level">회원가입시 권한</label></th>
<td><?=get_member_level_select('cf_register_level', 1, 9, $config['cf_register_level']) ?></td>
<th scope="row"><label for="cf_register_point">회원가입시 포인트</label></th>
<td><input type="text" id="cf_register_point" name="cf_register_point" value="<?=$config['cf_register_point']?>" size="5"> 점</td>
</tr>
<tr>
<th scope='row' id="th310"><label for='cf_leave_day'>회원탈퇴후 삭제일</label></th>
<td colspan="3"><input type="text" id="cf_leave_day" name="cf_leave_day" value="<?=$config['cf_leave_day']?>" size="2"> 일 후 자동 삭제</td>
</tr>
<tr>
<th scope="row"><label for="cf_use_member_icon">회원아이콘 사용</label></th>
<td>
<?=help('게시물에 게시자 별명 대신 아이콘 사용')?>
<select id="cf_use_member_icon" name="cf_use_member_icon">
<option value="0">미사용
<option value="1">아이콘만 표시
<option value="2">아이콘+이름 표시
</select>
<script> document.getElementById('cf_use_member_icon').value="<?=$config['cf_use_member_icon']?>";</script>
</td>
<th scope="row"><label for="cf_icon_level">아이콘 업로드 권한</label></th>
<td><?=get_member_level_select('cf_icon_level', 1, 9, $config['cf_icon_level']) ?> 이상</td>
</tr>
<tr>
<th scope="row"><label for="cf_member_icon_size">회원아이콘 용량</label></th>
<td><input type="text" id="cf_member_icon_size" name="cf_member_icon_size" value="<?=$config['cf_member_icon_size']?>" size="10"> 바이트 이하</td>
<th scope="row"><label for="cf_member_icon_width">회원아이콘 사이즈</label></th>
<td>
<label for="cf_member_icon_width">가로</label>
<input type="text" id="cf_member_icon_width" name="cf_member_icon_width" value="<?=$config['cf_member_icon_width']?>" size="2">
<label for="cf_member_icon_height">세로</label>
<input type="text" id="cf_member_icon_height" name="cf_member_icon_height" value="<?=$config['cf_member_icon_height']?>" size="2">
픽셀 이하
</td>
</tr>
<tr>
<th scope="row"><label for="cf_use_recommend">추천인제도 사용</label></th>
<td><input type="checkbox" id="cf_use_recommend" name="cf_use_recommend" value="1" <?=$config['cf_use_recommend']?'checked':'';?>> 사용</td>
<th scope="row"><label for="cf_recommend_point">추천인 포인트</label></th>
<td><input type="text" id="cf_recommend_point" name="cf_recommend_point" value="<?=$config['cf_recommend_point']?>"> 점</td>
</tr>
<tr>
<th scope="row"><label for="cf_prohibit_id">아이디,별명 금지단어</label></th>
<td>
<?=help('회원아이디, 별명으로 사용할 수 없는 단어를 정합니다. 쉼표 (,) 로 구분')?>
<textarea id="cf_prohibit_id" name="cf_prohibit_id" rows="5"><?=$config['cf_prohibit_id']?></textarea>
</td>
<th scope="row"><label for="cf_prohibit_email">입력 금지 메일</label></th>
<td>
<?=help('hanmail.net과 같은 메일 주소는 입력을 못합니다. 엔터로 구분')?>
<textarea id="cf_prohibit_email" name="cf_prohibit_email" rows="5"><?=$config['cf_prohibit_email']?></textarea>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_stipulation">회원가입약관</label></th>
<td colspan="3"><textarea id="cf_stipulation" name="cf_stipulation" rows="10"><?=$config['cf_stipulation']?></textarea></td>
</tr>
<tr>
<th scope="row"><label for="cf_privacy">개인정보취급방침</label></th>
<td colspan="3"><textarea id="cf_privacy" name="cf_privacy" rows="10"><?=$config['cf_privacy']?> </textarea></td>
</tr>
</tbody>
</table>
<table id="frm_mail" class="frm_tbl">
<caption>기본 메일환경 설정</caption>
<tbody>
<tr>
<th scope="row"><label for="cf_email_use">메일발송 사용</label></th>
<td>
<?=help('체크하지 않으면 메일발송을 아예 사용하지 않습니다. 메일 테스트도 불가합니다.')?>
<input type="checkbox" id="cf_email_use" name="cf_email_use" value="1" <?=$config['cf_email_use']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_use_email_certify">메일인증 사용</label></th>
<td>
<?=help('메일에 배달된 인증 주소를 클릭하여야 회원으로 인정합니다.');?>
<input type="checkbox" id="cf_use_email_certify" name="cf_use_email_certify" value="1" <?=$config['cf_use_email_certify']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_formmail_is_member">폼메일 사용 여부</label></th>
<td>
<?=help('체크하지 않으면 비회원도 사용 할 수 있습니다.')?>
<input type="checkbox" id="cf_formmail_is_member" name="cf_formmail_is_member" value="1" <?=$config['cf_formmail_is_member']?'checked':'';?>> 회원만 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_admin">관리자 메일주소<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('일괄 발송 또는 테스트 등에 사용하는 이메일 주소입니다.')?>
<input type="text" id="cf_email_admin" name="cf_email_admin" class="email required" value="<?=$config['cf_email_admin']?>" required size="40">
</td>
</tr>
</table>
<table id="frm_join" class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="cf_member_skin">회원 스킨<strong class="sound_only">필수</strong></label></th>
<td colspan="3">
<select id="cf_member_skin" name="cf_member_skin" class="required" required>
<?
$arr = get_skin_dir('member');
for ($i=0; $i<count($arr); $i++) {
echo '<option value="'.$arr[$i].'">'.$arr[$i].'</option>'.PHP_EOL;
}
?>
</select>
<script> document.getElementById('cf_member_skin').value="<?=$config['cf_member_skin']?>";</script>
</td>
</tr>
<tr>
<th scope="row">홈페이지 입력</th>
<td>
<input type="checkbox" id="cf_use_homepage" name="cf_use_homepage" value="1" <?=$config['cf_use_homepage']?'checked':'';?>> <label for="cf_use_homepage">보이기</label>
<input type="checkbox" id="cf_req_homepage" name="cf_req_homepage" value="1" <?=$config['cf_req_homepage']?'checked':'';?>> <label for="cf_req_homepage">필수입력</label>
</td>
<th scope="row">주소 입력</th>
<td>
<input type="checkbox" id="cf_use_addr" name="cf_use_addr" value="1" <?=$config['cf_use_addr']?'checked':'';?>> <label for="cf_use_addr">보이기</label>
<input type="checkbox" id="cf_req_addr" name="cf_req_addr" value="1" <?=$config['cf_req_addr']?'checked':'';?>> <label for="cf_req_addr">필수입력</label>
</td>
</tr>
<tr>
<th scope="row">전화번호 입력</th>
<td>
<input type="checkbox" id="cf_use_tel" name="cf_use_tel" value="1" <?=$config['cf_use_tel']?'checked':'';?>> <label for="cf_use_tel">보이기</label>
<input type="checkbox" id="cf_req_tel" name="cf_req_tel" value="1" <?=$config['cf_req_tel']?'checked':'';?>> <label for="cf_req_tel">필수입력</label>
</td>
<th scope="row">핸드폰 입력</th>
<td>
<input type="checkbox" id="cf_use_hp" name="cf_use_hp" value="1" <?=$config['cf_use_hp']?'checked':'';?>> <label for="cf_use_hp">보이기</label>
<input type="checkbox" id="cf_req_hp" name="cf_req_hp" value="1" <?=$config['cf_req_hp']?'checked':'';?>> <label for="cf_req_hp">필수입력</label>
</td>
</tr>
<tr>
<th scope="row">서명 입력</th>
<td>
<input type="checkbox" id="cf_use_signature" name="cf_use_signature" value="1" <?=$config['cf_use_signature']?'checked':'';?>> <label for="cf_use_signature">보이기</label>
<input type="checkbox" id="cf_req_signature" name="cf_req_signature" value="1" <?=$config['cf_req_signature']?'checked':'';?>> <label for="cf_req_signature">필수입력</label>
</td>
<th scope="row">자기소개 입력</th>
<td>
<input type="checkbox" id="cf_use_profile" name="cf_use_profile" value="1" <?=$config['cf_use_profile']?'checked':'';?>> <label for="cf_use_profile">보이기</label>
<input type="checkbox" id="cf_req_profile" name="cf_req_profile" value="1" <?=$config['cf_req_profile']?'checked':'';?>> <label for="cf_req_profile">필수입력</label>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_register_level">회원가입시 권한</label></th>
<td><?=get_member_level_select('cf_register_level', 1, 9, $config['cf_register_level']) ?></td>
<th scope="row"><label for="cf_register_point">회원가입시 포인트</label></th>
<td><input type="text" id="cf_register_point" name="cf_register_point" value="<?=$config['cf_register_point']?>" size="5"> 점</td>
</tr>
<tr>
<th scope='row' id="th310"><label for='cf_leave_day'>회원탈퇴후 삭제일</label></th>
<td colspan="3"><input type="text" id="cf_leave_day" name="cf_leave_day" value="<?=$config['cf_leave_day']?>" size="2"> 일 후 자동 삭제</td>
</tr>
<tr>
<th scope="row"><label for="cf_use_member_icon">회원아이콘 사용</label></th>
<td>
<?=help('게시물에 게시자 별명 대신 아이콘 사용')?>
<select id="cf_use_member_icon" name="cf_use_member_icon">
<option value="0">미사용
<option value="1">아이콘만 표시
<option value="2">아이콘+이름 표시
</select>
<script> document.getElementById('cf_use_member_icon').value="<?=$config['cf_use_member_icon']?>";</script>
</td>
<th scope="row"><label for="cf_icon_level">아이콘 업로드 권한</label></th>
<td><?=get_member_level_select('cf_icon_level', 1, 9, $config['cf_icon_level']) ?> 이상</td>
</tr>
<tr>
<th scope="row"><label for="cf_member_icon_size">회원아이콘 용량</label></th>
<td><input type="text" id="cf_member_icon_size" name="cf_member_icon_size" value="<?=$config['cf_member_icon_size']?>" size="10"> 바이트 이하</td>
<th scope="row"><label for="cf_member_icon_width">회원아이콘 사이즈</label></th>
<td>
<label for="cf_member_icon_width">가로</label>
<input type="text" id="cf_member_icon_width" name="cf_member_icon_width" value="<?=$config['cf_member_icon_width']?>" size="2">
<label for="cf_member_icon_height">세로</label>
<input type="text" id="cf_member_icon_height" name="cf_member_icon_height" value="<?=$config['cf_member_icon_height']?>" size="2">
픽셀 이하
</td>
</tr>
<tr>
<th scope="row"><label for="cf_use_recommend">추천인제도 사용</label></th>
<td><input type="checkbox" id="cf_use_recommend" name="cf_use_recommend" value="1" <?=$config['cf_use_recommend']?'checked':'';?>> 사용</td>
<th scope="row"><label for="cf_recommend_point">추천인 포인트</label></th>
<td><input type="text" id="cf_recommend_point" name="cf_recommend_point" value="<?=$config['cf_recommend_point']?>"> 점</td>
</tr>
<tr>
<th scope="row"><label for="cf_prohibit_id">아이디,별명 금지단어</label></th>
<td>
<?=help('회원아이디, 별명으로 사용할 수 없는 단어를 정합니다. 쉼표 (,) 로 구분')?>
<textarea id="cf_prohibit_id" name="cf_prohibit_id" rows="5"><?=$config['cf_prohibit_id']?></textarea>
</td>
<th scope="row"><label for="cf_prohibit_email">입력 금지 메일</label></th>
<td>
<?=help('hanmail.net과 같은 메일 주소는 입력을 못합니다. 엔터로 구분')?>
<textarea id="cf_prohibit_email" name="cf_prohibit_email" rows="5"><?=$config['cf_prohibit_email']?></textarea>
</td>
</tr>
<tr>
<th scope="row"><label for="cf_stipulation">회원가입약관</label></th>
<td colspan="3"><textarea id="cf_stipulation" name="cf_stipulation" rows="10"><?=$config['cf_stipulation']?></textarea></td>
</tr>
<tr>
<th scope="row"><label for="cf_privacy">개인정보취급방침</label></th>
<td colspan="3"><textarea id="cf_privacy" name="cf_privacy" rows="10"><?=$config['cf_privacy']?> </textarea></td>
</tr>
</tbody>
</table>
</section>
<table id="frm_article_mail" class="frm_tbl">
<caption>게시판 글 작성 시 메일 설정</caption>
<tbody>
<tr>
<th scope="row"><label for="cf_email_wr_super_admin">최고관리자</label></th>
<td>
<?=help('최고관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_super_admin" name="cf_email_wr_super_admin" value="1" <?=$config['cf_email_wr_super_admin']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_wr_group_admin">그룹관리자</label></th>
<td>
<?=help('그룹관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_group_admin" name="cf_email_wr_group_admin" value="1" <?=$config['cf_email_wr_group_admin']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_wr_board_admin">게시판관리자</label></th>
<td>
<?=help('게시판관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_board_admin" name="cf_email_wr_board_admin" value="1" <?=$config['cf_email_wr_board_admin']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_wr_write">원글작성자</label></th>
<td>
<?=help('게시자님께 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_write" name="cf_email_wr_write" value="1" <?=$config['cf_email_wr_write']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_wr_comment_all">댓글작성자</label></th>
<td>
<?=help('원글에 댓글이 올라오는 경우 댓글 쓴 모든 분들께 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_comment_all" name="cf_email_wr_comment_all" value="1" <?=$config['cf_email_wr_comment_all']?'checked':'';?>> 사용
</td>
</tr>
</tbody>
</table>
<?=$pg_anchor?>
<section class="cbox">
<h2>기본 메일환경 설정</h2>
<table id="frm_join_mail" class="frm_tbl">
<caption>회원가입 시 메일 설정</caption>
<tbody>
<tr>
<th scope="row"><label for="cf_email_mb_super_admin">최고관리자 메일발송</label></th>
<td>
<?=help('최고관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_mb_super_admin" name="cf_email_mb_super_admin" value="1" <?=$config['cf_email_mb_super_admin']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_mb_member">회원님께 메일발송</label></th>
<td>
<?=help('회원가입한 회원님께 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_mb_member" name="cf_email_mb_member" value="1" <?=$config['cf_email_mb_member']?'checked':'';?>> 사용
</td>
</tr>
</tbody>
</table>
<table id="frm_mail" class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="cf_email_use">메일발송 사용</label></th>
<td>
<?=help('체크하지 않으면 메일발송을 아예 사용하지 않습니다. 메일 테스트도 불가합니다.')?>
<input type="checkbox" id="cf_email_use" name="cf_email_use" value="1" <?=$config['cf_email_use']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_use_email_certify">메일인증 사용</label></th>
<td>
<?=help('메일에 배달된 인증 주소를 클릭하여야 회원으로 인정합니다.');?>
<input type="checkbox" id="cf_use_email_certify" name="cf_use_email_certify" value="1" <?=$config['cf_use_email_certify']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_formmail_is_member">폼메일 사용 여부</label></th>
<td>
<?=help('체크하지 않으면 비회원도 사용 할 수 있습니다.')?>
<input type="checkbox" id="cf_formmail_is_member" name="cf_formmail_is_member" value="1" <?=$config['cf_formmail_is_member']?'checked':'';?>> 회원만 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_admin">관리자 메일주소<strong class="sound_only">필수</strong></label></th>
<td>
<?=help('일괄 발송 또는 테스트 등에 사용하는 이메일 주소입니다.')?>
<input type="text" id="cf_email_admin" name="cf_email_admin" class="email required" value="<?=$config['cf_email_admin']?>" required size="40">
</td>
</tr>
</table>
</section>
<table id="frm_vote_mail" class="frm_tbl">
<caption>투표 기타의견 작성시 메일 설정</caption>
<tbody>
<tr>
<th scope="row"><label for="cf_email_po_super_admin">최고관리자 메일발송</label></th>
<td>
<?=help('최고관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_po_super_admin" name="cf_email_po_super_admin" value="1" <?=$config['cf_email_po_super_admin']?'checked':'';?>> 사용
</td>
</tr>
</tbody>
</table>
<?=$pg_anchor?>
<section class="cbox">
<h2>게시판 글 작성 시 메일 설정</h2>
<table id="frm_extra" class="frm_tbl">
<caption>
여분필드 기본 설정
<table id="frm_article_mail" class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="cf_email_wr_super_admin">최고관리자</label></th>
<td>
<?=help('최고관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_super_admin" name="cf_email_wr_super_admin" value="1" <?=$config['cf_email_wr_super_admin']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_wr_group_admin">그룹관리자</label></th>
<td>
<?=help('그룹관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_group_admin" name="cf_email_wr_group_admin" value="1" <?=$config['cf_email_wr_group_admin']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_wr_board_admin">게시판관리자</label></th>
<td>
<?=help('게시판관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_board_admin" name="cf_email_wr_board_admin" value="1" <?=$config['cf_email_wr_board_admin']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_wr_write">원글작성자</label></th>
<td>
<?=help('게시자님께 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_write" name="cf_email_wr_write" value="1" <?=$config['cf_email_wr_write']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_wr_comment_all">댓글작성자</label></th>
<td>
<?=help('원글에 댓글이 올라오는 경우 댓글 쓴 모든 분들께 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_wr_comment_all" name="cf_email_wr_comment_all" value="1" <?=$config['cf_email_wr_comment_all']?'checked':'';?>> 사용
</td>
</tr>
</tbody>
</table>
</section>
<?=$pg_anchor?>
<section class="cbox">
<h2>회원가입 시 메일 설정</h2>
<table id="frm_join_mail" class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="cf_email_mb_super_admin">최고관리자 메일발송</label></th>
<td>
<?=help('최고관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_mb_super_admin" name="cf_email_mb_super_admin" value="1" <?=$config['cf_email_mb_super_admin']?'checked':'';?>> 사용
</td>
</tr>
<tr>
<th scope="row"><label for="cf_email_mb_member">회원님께 메일발송</label></th>
<td>
<?=help('회원가입한 회원님께 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_mb_member" name="cf_email_mb_member" value="1" <?=$config['cf_email_mb_member']?'checked':'';?>> 사용
</td>
</tr>
</tbody>
</table>
</section>
<?=$pg_anchor?>
<section class="cbox">
<h2>투표 기타의견 작성시 메일 설정</h2>
<table id="frm_vote_mail" class="frm_tbl">
<tbody>
<tr>
<th scope="row"><label for="cf_email_po_super_admin">최고관리자 메일발송</label></th>
<td>
<?=help('최고관리자에게 메일을 발송합니다.')?>
<input type="checkbox" id="cf_email_po_super_admin" name="cf_email_po_super_admin" value="1" <?=$config['cf_email_po_super_admin']?'checked':'';?>> 사용
</td>
</tr>
</tbody>
</table>
</section>
<?=$pg_anchor?>
<section class="cbox">
<h2>여분필드 기본 설정</h2>
<p>각 게시판 관리에서 개별적으로 설정 가능합니다.</p>
</caption>
<tbody>
<? for ($i=1; $i<=10; $i++) { ?>
<tr>
<th scope="row">여분필드<?=$i?></th>
<td>
<label for="cf_<?=$i?>_subj">여분필드<?=$i?> 제목</label>
<input type="text" id="cf_<?=$i?>_subj" name="cf_<?=$i?>_subj" value="<?=get_text($config['cf_'.$i.'_subj'])?>" size="30">
<label for="cf_<?=$i?>">여분필드<?=$i?> 설명</label>
<input type="text" id="cf_<?=$i?>" name="cf_<?=$i?>" value="<?=$config['cf_'.$i]?>" size="30">
</td>
</tr>
<? } ?>
</tbody>
</table>
<table id="frm_extra" class="frm_tbl">
<tbody>
<? for ($i=1; $i<=10; $i++) { ?>
<tr>
<th scope="row">여분필드<?=$i?></th>
<td>
<label for="cf_<?=$i?>_subj">여분필드<?=$i?> 제목</label>
<input type="text" id="cf_<?=$i?>_subj" name="cf_<?=$i?>_subj" value="<?=get_text($config['cf_'.$i.'_subj'])?>" size="30">
<label for="cf_<?=$i?>">여분필드<?=$i?> 설명</label>
<input type="text" id="cf_<?=$i?>" name="cf_<?=$i?>" value="<?=$config['cf_'.$i]?>" size="30">
</td>
</tr>
<? } ?>
</tbody>
</table>
</section>
<fieldset id="admin_confirm">
<legend>XSS 혹은 CSRF 방지</legend>

View File

@ -103,125 +103,122 @@ $colspan = 15;
</div>
<?}?>
<form id="fmemberlist" name="fmemberlist" method="post" action="./member_list_update.php" onsubmit="return fmemberlist_submit(this);">
<input type="hidden" name="sst" value='<?=$sst?>'>
<input type="hidden" name="sod" value='<?=$sod?>'>
<input type="hidden" name="sfl" value='<?=$sfl?>'>
<input type="hidden" name="stx" value='<?=$stx?>'>
<input type="hidden" name="page" value='<?=$page?>'>
<section class="cbox">
<h2>회원 목록</h2>
<p>회원자료 삭제 시 다른 회원이 기존 회원아이디를 사용하지 못하도록 회원아이디, 이름, 별명은 삭제하지 않고 영구 보관합니다.</p>
<table class="tbl_mb_list">
<caption>
회원 목록
<p>
회원자료 삭제 시 다른 회원이 기존 회원아이디를 사용하지 못하도록 회원아이디, 이름, 별명은 삭제하지 않고 영구 보관합니다.
</p>
</caption>
<thead>
<tr>
<th scope="col"><label for="chkall">전체</label><br><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 회원 전체선택" onclick="check_all(this.form)"></th>
<th scope="col"><?=subject_sort_link('mb_id')?>회원아이디</a></th>
<th scope="col"><?=subject_sort_link('mb_nick')?>별명</a></th>
<th scope="col"><?=subject_sort_link('mb_name')?>이름</a></th>
<th scope="col"><?=subject_sort_link('mb_level', '', 'desc')?>권한</a></th>
<th scope="col"><?=subject_sort_link('mb_point', '', 'desc')?> 포인트</a></th>
<th scope="col"><?=subject_sort_link('mb_today_login', '', 'desc')?>최종접속</a></th>
<th scope="col"><?=subject_sort_link('mb_mailling', '', 'desc')?>수신</a></th>
<th scope="col"><?=subject_sort_link('mb_open', '', 'desc')?>공개</a></th>
<th scope="col"><?=subject_sort_link('mb_email_certify', '', 'desc')?>인증</a></th>
<th scope="col"><?=subject_sort_link('mb_intercept_date', '', 'desc')?>차단</a></th>
<th scope="col">그룹</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 접근가능한 그룹수
$sql2 = " select count(*) as cnt from {$g4['group_member_table']} where mb_id = '{$row['mb_id']}' ";
$row2 = sql_fetch($sql2);
$group = '';
if ($row2['cnt'])
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
<form id="fmemberlist" name="fmemberlist" method="post" action="./member_list_update.php" onsubmit="return fmemberlist_submit(this);">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="page" value="<?=$page?>">
if ($is_admin == 'group')
{
$s_mod = '';
$s_del = '';
<table class="tbl_mb_list">
<thead>
<tr>
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 회원 전체선택" onclick="check_all(this.form)"></th>
<th scope="col"><?=subject_sort_link('mb_id')?>회원아이디</a></th>
<th scope="col"><?=subject_sort_link('mb_nick')?>별명</a></th>
<th scope="col"><?=subject_sort_link('mb_name')?>이름</a></th>
<th scope="col"><?=subject_sort_link('mb_level', '', 'desc')?>권한</a></th>
<th scope="col"><?=subject_sort_link('mb_point', '', 'desc')?> 포인트</a></th>
<th scope="col"><?=subject_sort_link('mb_today_login', '', 'desc')?>최종접속</a></th>
<th scope="col"><?=subject_sort_link('mb_mailling', '', 'desc')?>수신</a></th>
<th scope="col"><?=subject_sort_link('mb_open', '', 'desc')?>공개</a></th>
<th scope="col"><?=subject_sort_link('mb_email_certify', '', 'desc')?>인증</a></th>
<th scope="col"><?=subject_sort_link('mb_intercept_date', '', 'desc')?>차단</a></th>
<th scope="col">그룹</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 접근가능한 그룹수
$sql2 = " select count(*) as cnt from {$g4['group_member_table']} where mb_id = '{$row['mb_id']}' ";
$row2 = sql_fetch($sql2);
$group = '';
if ($row2['cnt'])
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
if ($is_admin == 'group')
{
$s_mod = '';
$s_del = '';
}
else
{
$s_mod = '<a href="./member_form.php?'.$qstr.'&amp;w=u&amp;mb_id='.$row['mb_id'].'">수정</a>';
$s_del = '<a href="javascript:post_delete(\'member_delete.php\', \''.$row['mb_id'].'\');">삭제</a>';
}
$s_grp = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">그룹</a>';
$leave_date = $row['mb_leave_date'] ? $row['mb_leave_date'] : date('Ymd', $g4['server_time']);
$intercept_date = $row['mb_intercept_date'] ? $row['mb_intercept_date'] : date('Ymd', $g4['server_time']);
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
$mb_id = $row['mb_id'];
$leave_msg = '';
$intercept_msg = '';
$intercept_title = '';
if ($row['mb_leave_date']) {
$mb_id = $mb_id;
$leave_msg = '탈퇴함';
}
else if ($row['mb_intercept_date']) {
$mb_id = $mb_id;
$intercept_msg = '차단됨';
$intercept_title = '차단해제';
}
if ($intercept_title == '')
$intercept_title = '차단하기';
?>
<tr>
<td class="td_chk">
<input type="hidden" id="mb_id_<?=$i?>" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="회원선택">
</td>
<td class="td_mbid">
<?=$mb_id?>
<span><?=$leave_msg?><?=$intercept_msg?></span>
</td>
<td class="td_name"><div><?=$mb_nick?></div></td>
<td class="td_mbname"><?=$row['mb_name']?></td>
<td><?=get_member_level_select("mb_level[$i]", 1, $member['mb_level'], $row['mb_level'])?></td>
<td><a href="point_list.php?sfl=mb_id&amp;stx=<?=$row['mb_id']?>"><?=number_format($row['mb_point'])?></a></td>
<td><?=substr($row['mb_today_login'],2,8)?></td>
<td><?=$row['mb_mailling']?'예':'아니오';?></td>
<td><?=$row['mb_open']?'예':'아니오';?></td>
<td><?=preg_match('/[1-9]/', $row['mb_email_certify'])?'예':'아니오';?></td>
<td class="td_chk">
<? if(empty($row['mb_leave_date'])){?>
<input type="checkbox" id="mb_intercept_date_<?=$i?>" name="mb_intercept_date[<?=$i?>]" <?=$row['mb_intercept_date']?'checked':'';?> value="<?=$intercept_date?>" title="<?=$intercept_title?>">
<?}?>
</td>
<td class="td_chk"><?=$group?></td>
<td><?=$s_mod?> <?=$s_del?> <?=$s_grp?></td>
</tr>
<?
}
else
{
$s_mod = '<a href="./member_form.php?'.$qstr.'&amp;w=u&amp;mb_id='.$row['mb_id'].'">수정</a>';
$s_del = '<a href="javascript:post_delete(\'member_delete.php\', \''.$row['mb_id'].'\');">삭제</a>';
}
$s_grp = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">그룹</a>';
if ($i == 0)
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
?>
</table>
$leave_date = $row['mb_leave_date'] ? $row['mb_leave_date'] : date('Ymd', $g4['server_time']);
$intercept_date = $row['mb_intercept_date'] ? $row['mb_intercept_date'] : date('Ymd', $g4['server_time']);
<div class="btn_list">
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택수정">
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택삭제">
<? if ($is_admin == 'super') {?><a href="./member_form.php">회원추가</a><?}?>
</div>
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
</form>
</section>
$mb_id = $row['mb_id'];
$leave_msg = '';
$intercept_msg = '';
$intercept_title = '';
if ($row['mb_leave_date']) {
$mb_id = $mb_id;
$leave_msg = '탈퇴함';
}
else if ($row['mb_intercept_date']) {
$mb_id = $mb_id;
$intercept_msg = '차단됨';
$intercept_title = '차단해제';
}
if ($intercept_title == '')
$intercept_title = '차단하기';
?>
<tr>
<td class="td_chk">
<input type="hidden" id="mb_id_<?=$i?>" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="회원선택">
</td>
<td class="td_mbid">
<?=$mb_id?>
<span><?=$leave_msg?><?=$intercept_msg?></span>
</td>
<td class="td_name"><div><?=$mb_nick?></div></td>
<td class="td_mbname"><?=$row['mb_name']?></td>
<td><?=get_member_level_select("mb_level[$i]", 1, $member['mb_level'], $row['mb_level'])?></td>
<td><a href="point_list.php?sfl=mb_id&amp;stx=<?=$row['mb_id']?>"><?=number_format($row['mb_point'])?></a></td>
<td><?=substr($row['mb_today_login'],2,8)?></td>
<td><?=$row['mb_mailling']?'예':'아니오';?></td>
<td><?=$row['mb_open']?'예':'아니오';?></td>
<td><?=preg_match('/[1-9]/', $row['mb_email_certify'])?'예':'아니오';?></td>
<td class="td_chk">
<? if(empty($row['mb_leave_date'])){?>
<input type="checkbox" id="mb_intercept_date_<?=$i?>" name="mb_intercept_date[<?=$i?>]" <?=$row['mb_intercept_date']?'checked':'';?> value="<?=$intercept_date?>" title="<?=$intercept_title?>">
<?}?>
</td>
<td class="td_chk"><?=$group?></td>
<td><?=$s_mod?> <?=$s_del?> <?=$s_grp?></td>
</tr>
<?
}
if ($i == 0)
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
?>
</table>
<div class="btn_list">
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택수정">
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택삭제">
<? if ($is_admin == 'super') {?><a href="./member_form.php">회원추가</a><?}?>
</div>
<?
echo get_paging($config['cf_write_pages'], $page, $total_page, '?'.$qstr.'&amp;page=');
?>
</form>
<?=get_paging($config['cf_write_pages'], $page, $total_page, '?'.$qstr.'&amp;page=');?>
<script>
<?

View File

@ -34,12 +34,12 @@ h1 {margin-bottom:20px;color:#333;font-size:1.5em;font-family:"dotum";letter-spa
#logo {position:relative;height:70px}
#logo img {position:absolute;top:15px;left:0}
#snb {z-index:2;position:absolute;top:17px;right:0;zoom:1}
#snb {z-index:2;position:absolute;top:25px;right:0;zoom:1}
#snb:after {display:block;visibility:hidden;clear:both;content:""}
#snb ul {float:right;margin:0;padding:0;height:35px;background:#222;zoom:1}
#snb ul {float:right;margin:0;padding:0;background:#222;zoom:1}
#snb ul:after {display:block;visibility:hidden;clear:both;content:""}
#snb li {float:left;margin-left:10px}
#snb a {color:#e0e0e0;text-decoration:none;line-height:2.95em}
#snb a {display:inline-block;padding:5px 0;color:#e0e0e0;text-decoration:none}
/* gnb js off */