update code style
This commit is contained in:
parent
66e6676e38
commit
121c3b4224
193 changed files with 10994 additions and 10905 deletions
|
|
@ -2,4 +2,3 @@
|
|||
define('G5_IS_ADMIN', true);
|
||||
include_once('../common.php');
|
||||
include_once(G5_ADMIN_PATH . '/admin.lib.php');
|
||||
?>
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
$begin_time = get_microtime();
|
||||
include_once(G5_PATH . '/head.sub.php');
|
||||
|
||||
|
|
@ -16,17 +17,20 @@ function print_menu2($key, $no)
|
|||
{
|
||||
global $menu, $auth_menu, $is_admin, $auth, $g5, $sub_menu;
|
||||
|
||||
$str .= "<ul class=\"gnb_2dul\">";
|
||||
for($i=1; $i<count($menu[$key]); $i++)
|
||||
{
|
||||
$str = "<ul class=\"gnb_2dul\">";
|
||||
for ($i = 1; $i < count($menu[$key]); $i++) {
|
||||
if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0], $auth) || !strstr($auth[$menu[$key][$i][0]], 'r')))
|
||||
continue;
|
||||
|
||||
if (($menu[$key][$i][4] == 1 && $gnb_grp_style == false) || ($menu[$key][$i][4] != 1 && $gnb_grp_style == true)) $gnb_grp_div = 'gnb_grp_div';
|
||||
else $gnb_grp_div = '';
|
||||
if (($menu[$key][$i][4] == 1 && $gnb_grp_style == false) || ($menu[$key][$i][4] != 1 && $gnb_grp_style == true))
|
||||
$gnb_grp_div = 'gnb_grp_div';
|
||||
else
|
||||
$gnb_grp_div = '';
|
||||
|
||||
if ($menu[$key][$i][4] == 1) $gnb_grp_style = 'gnb_grp_style';
|
||||
else $gnb_grp_style = '';
|
||||
if ($menu[$key][$i][4] == 1)
|
||||
$gnb_grp_style = 'gnb_grp_style';
|
||||
else
|
||||
$gnb_grp_style = '';
|
||||
|
||||
$check_gnb_grp_style = "";
|
||||
if ($menu[$key][$i][0] && isset($sub_menu) && $menu[$key][$i][0] == $sub_menu) {
|
||||
|
|
@ -47,8 +51,7 @@ function print_menu2($key, $no)
|
|||
var tempX = 0;
|
||||
var tempY = 0;
|
||||
|
||||
function imageview(id, w, h)
|
||||
{
|
||||
function imageview(id, w, h) {
|
||||
|
||||
menu(id);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
/*
|
||||
// 081022 : CSRF 방지를 위해 코드를 작성했으나 효과가 없어 주석처리 함
|
||||
|
|
@ -29,7 +30,8 @@ function get_skin_select($skin_gubun, $id, $name, $selected='', $event='')
|
|||
|
||||
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
|
||||
for ($i = 0; $i < count($skins); $i++) {
|
||||
if ($i == 0) $str .= "<option value=\"\">선택</option>";
|
||||
if ($i == 0)
|
||||
$str .= "<option value=\"\">선택</option>";
|
||||
if (preg_match('#^theme/(.+)$#', $skins[$i], $match))
|
||||
$text = '(테마) ' . $match[1];
|
||||
else
|
||||
|
|
@ -61,7 +63,8 @@ function get_mobile_skin_select($skin_gubun, $id, $name, $selected='', $event=''
|
|||
|
||||
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
|
||||
for ($i = 0; $i < count($skins); $i++) {
|
||||
if ($i == 0) $str .= "<option value=\"\">선택</option>";
|
||||
if ($i == 0)
|
||||
$str .= "<option value=\"\">선택</option>";
|
||||
if (preg_match('#^theme/(.+)$#', $skins[$i], $match))
|
||||
$text = '(테마) ' . $match[1];
|
||||
else
|
||||
|
|
@ -87,9 +90,11 @@ function get_skin_dir($skin, $skin_path=G5_SKIN_PATH)
|
|||
|
||||
$handle = opendir($dirname);
|
||||
while ($file = readdir($handle)) {
|
||||
if($file == '.'||$file == '..') continue;
|
||||
if ($file == '.' || $file == '..')
|
||||
continue;
|
||||
|
||||
if (is_dir($dirname.$file)) $result_array[] = $file;
|
||||
if (is_dir($dirname . $file))
|
||||
$result_array[] = $file;
|
||||
}
|
||||
closedir($handle);
|
||||
sort($result_array);
|
||||
|
|
@ -106,7 +111,8 @@ function get_theme_dir()
|
|||
$dirname = G5_PATH . '/' . G5_THEME_DIR . '/';
|
||||
$handle = opendir($dirname);
|
||||
while ($file = readdir($handle)) {
|
||||
if($file == '.'||$file == '..') continue;
|
||||
if ($file == '.' || $file == '..')
|
||||
continue;
|
||||
|
||||
if (is_dir($dirname . $file)) {
|
||||
$theme_path = $dirname . $file;
|
||||
|
|
@ -130,7 +136,8 @@ function get_theme_select($id, $name, $selected='', $event='')
|
|||
|
||||
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
|
||||
for ($i = 0; $i < count($theme); $i++) {
|
||||
if ($i == 0) $str .= "<option value=\"\">-</option>";
|
||||
if ($i == 0)
|
||||
$str .= "<option value=\"\">-</option>";
|
||||
$text = $theme[$i];
|
||||
|
||||
$str .= option_selected($theme[$i], $selected, $text);
|
||||
|
|
@ -224,10 +231,12 @@ function get_member_level_select($name, $start_id=0, $end_id=10, $selected="", $
|
|||
$level_name[10] = "운영자";
|
||||
|
||||
$str = "\n<select id=\"{$name}\" name=\"{$name}\"";
|
||||
if ($event) $str .= " $event";
|
||||
if ($event)
|
||||
$str .= " $event";
|
||||
$str .= ">\n";
|
||||
for ($i = $start_id; $i <= $end_id; $i++) {
|
||||
if(!$level_name[$i]) continue;
|
||||
if (!$level_name[$i])
|
||||
continue;
|
||||
|
||||
$str .= '<option value="' . $i . '"';
|
||||
if ($i == $selected)
|
||||
|
|
@ -247,10 +256,10 @@ function get_member_id_select($name, $level, $selected="", $event="")
|
|||
$sql = " select mb_id from {$g5['member_table']} where mb_level >= '{$level}' ";
|
||||
$result = sql_query($sql);
|
||||
$str = '<select id="' . $name . '" name="' . $name . '" ' . $event . '><option value="">선택안함</option>';
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$str .= '<option value="' . $row['mb_id'] . '"';
|
||||
if ($row['mb_id'] == $selected) $str .= ' selected';
|
||||
if ($row['mb_id'] == $selected)
|
||||
$str .= ' selected';
|
||||
$str .= '>' . $row['mb_id'] . '</option>';
|
||||
}
|
||||
$str .= '</select>';
|
||||
|
|
@ -262,7 +271,8 @@ function auth_check($auth, $attr, $return=false)
|
|||
{
|
||||
global $is_admin;
|
||||
|
||||
if ($is_admin == 'super') return;
|
||||
if ($is_admin == 'super')
|
||||
return;
|
||||
|
||||
if (!trim($auth)) {
|
||||
$msg = '이 메뉴에는 접근 권한이 없습니다.\\n\\n접근 권한은 최고관리자만 부여할 수 있습니다.';
|
||||
|
|
@ -414,22 +424,17 @@ function admin_referer_check($return=false)
|
|||
}
|
||||
|
||||
// 접근 권한 검사
|
||||
if (!$member['mb_id'])
|
||||
{
|
||||
if (!$member['mb_id']) {
|
||||
goto_url(G5_BBS_URL . '/login.php?url=' . urlencode(G5_ADMIN_URL));
|
||||
}
|
||||
else if ($is_admin != 'super')
|
||||
{
|
||||
} else if ($is_admin != 'super') {
|
||||
$auth = array();
|
||||
$sql = " select au_menu, au_auth from {$g5['auth_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$auth[$row['au_menu']] = $row['au_auth'];
|
||||
}
|
||||
|
||||
if (!$i)
|
||||
{
|
||||
if (!$i) {
|
||||
goto_url(G5_URL);
|
||||
}
|
||||
}
|
||||
|
|
@ -464,13 +469,17 @@ while ($entry = $tmp->read()) {
|
|||
@ksort($amenu);
|
||||
|
||||
$arr_query = array();
|
||||
if (isset($sst)) $arr_query[] = 'sst='.$sst;
|
||||
if (isset($sod)) $arr_query[] = 'sod='.$sod;
|
||||
if (isset($sfl)) $arr_query[] = 'sfl='.$sfl;
|
||||
if (isset($stx)) $arr_query[] = 'stx='.$stx;
|
||||
if (isset($page)) $arr_query[] = 'page='.$page;
|
||||
if (isset($sst))
|
||||
$arr_query[] = 'sst=' . $sst;
|
||||
if (isset($sod))
|
||||
$arr_query[] = 'sod=' . $sod;
|
||||
if (isset($sfl))
|
||||
$arr_query[] = 'sfl=' . $sfl;
|
||||
if (isset($stx))
|
||||
$arr_query[] = 'stx=' . $stx;
|
||||
if (isset($page))
|
||||
$arr_query[] = 'page=' . $page;
|
||||
$qstr = implode("&", $arr_query);
|
||||
|
||||
// 관리자에서는 추가 스크립트는 사용하지 않는다.
|
||||
//$config['cf_add_script'] = '';
|
||||
?>
|
||||
|
|
@ -7,5 +7,3 @@ $menu['menu100'] = array (
|
|||
array('100400', '메뉴 설정', G5_ADMIN_URL . '/menu_list.php', ''),
|
||||
array('100990', 'DB관리', G5_DB_URL, '')
|
||||
);
|
||||
|
||||
?>
|
||||
|
|
@ -5,4 +5,3 @@ $menu['menu200'] = array (
|
|||
array('200800', '접속자집계', G5_ADMIN_URL . '/visit_list.php', ''),
|
||||
array('200820', '접속자로그삭제', G5_ADMIN_URL . '/visit_delete.php', '')
|
||||
);
|
||||
?>
|
||||
|
|
@ -5,4 +5,3 @@ $menu['menu300'] = array (
|
|||
array('300200', '게시판그룹관리', '' . G5_ADMIN_URL . '/boardgroup_list.php', 'bbs_group'),
|
||||
array('300600', '내용관리', G5_ADMIN_URL . '/contentlist.php', 'scf_contents', 1),
|
||||
);
|
||||
?>
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
<?php
|
||||
$menu['menu900'] = array(
|
||||
array('900000', '기타관리', G5_ADMIN_URL . '/session_file_delete.php', ''),
|
||||
array('900100', '세션파일 일괄삭제',G5_ADMIN_URL.'/session_file_delete.php', 'cf_session', 1),
|
||||
array('900200', '캐시파일 일괄삭제',G5_ADMIN_URL.'/cache_file_delete.php', 'cf_cache', 1),
|
||||
array('900300', '홈페이지 상세관리',G5_ADMIN_URL.'/config_form.php', 'cf_thumbnail', 1)
|
||||
array('900100', '홈페이지 상세관리', G5_ADMIN_URL . '/config_form.php', 'cf_thumbnail', 1),
|
||||
array('900200', '세션파일 일괄삭제', G5_ADMIN_URL . '/session_file_delete.php', 'cf_session', 1),
|
||||
array('900300', '캐시파일 일괄삭제', G5_ADMIN_URL . '/cache_file_delete.php', 'cf_cache', 1)
|
||||
);
|
||||
?>
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
?>
|
||||
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -11,4 +11,3 @@ if($error)
|
|||
$token = get_admin_token();
|
||||
|
||||
die(json_encode(array('error' => '', 'token' => $token, 'url' => '')));
|
||||
?>
|
||||
|
|
@ -17,7 +17,8 @@
|
|||
|
||||
</div>
|
||||
|
||||
<form name="fboardcopy" id="fboardcopy" action="./board_copy_update.php" onsubmit="return fboardcopy_check(this);" method="post">
|
||||
<form name="fboardcopy" id="fboardcopy" action="./board_copy_update.php" onsubmit="return fboardcopy_check(this);"
|
||||
method="post">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>" id="bo_table">
|
||||
<input type="hidden" name="token" value="">
|
||||
|
||||
|
|
@ -33,12 +34,14 @@
|
|||
<th scope="col"><label for="target_table">복사 테이블명<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php echo help('영문자, 숫자, _ 만 가능 (공백없이)'); ?>
|
||||
<input type="text" name="target_table" id="target_table" required class="required alnum_ frm_input" maxlength="20">
|
||||
<input type="text" name="target_table" id="target_table" required class="required alnum_ frm_input"
|
||||
maxlength="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="target_subject">게시판 제목<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="target_subject" value="[복사본] <?php echo $board['bo_subject'] ?>" id="target_subject" required class="required frm_input full" maxlength="120"></td>
|
||||
<td><input type="text" name="target_subject" value="[복사본] <?php echo $board['bo_subject'] ?>"
|
||||
id="target_subject" required class="required frm_input full" maxlength="120"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">복사 유형</th>
|
||||
|
|
@ -63,8 +66,7 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
function fboardcopy_check(f)
|
||||
{
|
||||
function fboardcopy_check(f) {
|
||||
if (f.bo_table.value == f.target_table.value) {
|
||||
alert("원본 테이블명과 복사할 테이블명이 달라야 합니다.");
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -136,7 +136,8 @@ $copy_file = 0;
|
|||
if ($copy_case == 'schema_data_both') {
|
||||
$d = dir(G5_DATA_PATH . '/file/' . $bo_table);
|
||||
while ($entry = $d->read()) {
|
||||
if ($entry == '.' || $entry == '..') continue;
|
||||
if ($entry == '.' || $entry == '..')
|
||||
continue;
|
||||
|
||||
// 김선용 201007 :
|
||||
if (is_dir(G5_DATA_PATH . '/file/' . $bo_table . '/' . $entry)) {
|
||||
|
|
@ -144,14 +145,14 @@ if ($copy_case == 'schema_data_both') {
|
|||
@mkdir(G5_DATA_PATH . '/file/' . $target_table . '/' . $entry, G5_DIR_PERMISSION);
|
||||
@chmod(G5_DATA_PATH . '/file/' . $target_table . '/' . $entry, G5_DIR_PERMISSION);
|
||||
while ($entry2 = $dd->read()) {
|
||||
if ($entry2 == '.' || $entry2 == '..') continue;
|
||||
if ($entry2 == '.' || $entry2 == '..')
|
||||
continue;
|
||||
@copy(G5_DATA_PATH . '/file/' . $bo_table . '/' . $entry . '/' . $entry2, G5_DATA_PATH . '/file/' . $target_table . '/' . $entry . '/' . $entry2);
|
||||
@chmod(G5_DATA_PATH . '/file/' . $target_table . '/' . $entry . '/' . $entry2, G5_DIR_PERMISSION);
|
||||
$copy_file++;
|
||||
}
|
||||
$dd->close();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
@copy(G5_DATA_PATH . '/file/' . $bo_table . '/' . $entry, G5_DATA_PATH . '/file/' . $target_table . '/' . $entry);
|
||||
@chmod(G5_DATA_PATH . '/file/' . $target_table . '/' . $entry, G5_DIR_PERMISSION);
|
||||
$copy_file++;
|
||||
|
|
@ -202,4 +203,3 @@ delete_cache_latest($target_table);
|
|||
echo "<script>opener.document.location.reload();</script>";
|
||||
|
||||
alert("복사에 성공 했습니다.", './board_copy.php?bo_table=' . $bo_table . '&' . $qstr);
|
||||
?>
|
||||
|
|
@ -1,11 +1,15 @@
|
|||
<?php
|
||||
// board_delete.php , boardgroup_delete.php 에서 include 하는 파일
|
||||
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_BOARD_DELETE_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
if (!defined('_BOARD_DELETE_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
// $tmp_bo_table 에는 $bo_table 값을 넘겨주어야 함
|
||||
if (!$tmp_bo_table) { return; }
|
||||
if (!$tmp_bo_table) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 게시판 1개는 삭제 불가 (게시판 복사를 위해서)
|
||||
//$row = sql_fetch(" select count(*) as cnt from $g5['board_table'] ");
|
||||
|
|
@ -30,4 +34,3 @@ delete_cache_latest($tmp_bo_table);
|
|||
|
||||
// 게시판 폴더 전체 삭제
|
||||
rm_rf(G5_DATA_PATH . '/file/' . $tmp_bo_table);
|
||||
?>
|
||||
|
|
@ -147,7 +147,8 @@ $pg_anchor = '<ul class="anchor">
|
|||
|
||||
?>
|
||||
|
||||
<form name="fboardform" id="fboardform" action="./board_form_update.php" onsubmit="return fboardform_submit(this)" method="post" enctype="multipart/form-data">
|
||||
<form name="fboardform" id="fboardform" action="./board_form_update.php" onsubmit="return fboardform_submit(this)"
|
||||
method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||
|
|
@ -196,11 +197,14 @@ $pg_anchor = '<ul class="anchor">
|
|||
<tr>
|
||||
<th scope="row"><label for="bo_table">TABLE<?php echo $sound_only ?></label></th>
|
||||
<td colspan="2">
|
||||
<input type="text" name="bo_table" value="<?php echo $board['bo_table'] ?>" id="bo_table" <?php echo $required ?> <?php echo $readonly ?> class="frm_input <?php echo $reaonly ?> <?php echo $required ?> <?php echo $required_valid ?>" maxlength="20">
|
||||
<input type="text" name="bo_table" value="<?php echo $board['bo_table'] ?>" id="bo_table" <?php echo $required ?> <?php echo $readonly ?>
|
||||
class="frm_input <?php echo $reaonly ?> <?php echo $required ?> <?php echo $required_valid ?>"
|
||||
maxlength="20">
|
||||
<?php if ($w == '') { ?>
|
||||
영문자, 숫자, _ 만 가능 (공백없이 20자 이내)
|
||||
<?php } else { ?>
|
||||
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $board['bo_table'] ?>" class="btn_frmline">게시판 바로가기</a>
|
||||
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $board['bo_table'] ?>"
|
||||
class="btn_frmline">게시판 바로가기</a>
|
||||
<a href="./board_list.php" class="btn_frmline">목록으로</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
|
|
@ -209,7 +213,10 @@ $pg_anchor = '<ul class="anchor">
|
|||
<th scope="row"><label for="gr_id">그룹<strong class="sound_only">필수</strong></label></th>
|
||||
<td colspan="2">
|
||||
<?php echo get_group_select('gr_id', $board['gr_id'], 'required'); ?>
|
||||
<?php if ($w=='u') { ?><a href="javascript:document.location.href='./board_list.php?sfl=a.gr_id&stx='+document.fboardform.gr_id.value;" class="btn_frmline">동일그룹 게시판목록</a><?php } ?></td>
|
||||
<?php if ($w == 'u') { ?><a
|
||||
href="javascript:document.location.href='./board_list.php?sfl=a.gr_id&stx='+document.fboardform.gr_id.value;"
|
||||
class="btn_frmline">동일그룹 게시판목록</a><?php } ?>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -224,14 +231,16 @@ $pg_anchor = '<ul class="anchor">
|
|||
<tr>
|
||||
<th scope="row"><label for="bo_subject">게시판 제목<strong class="sound_only">필수</strong></label></th>
|
||||
<td colspan="2">
|
||||
<input type="text" name="bo_subject" value="<?php echo get_text($board['bo_subject']) ?>" id="bo_subject" required class="required frm_input" size="80" maxlength="120">
|
||||
<input type="text" name="bo_subject" value="<?php echo get_text($board['bo_subject']) ?>" id="bo_subject"
|
||||
required class="required frm_input" size="80" maxlength="120">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_category_list">분류</label></th>
|
||||
<td>
|
||||
<?php echo help('분류와 분류 사이는 | 로 구분하세요. (예: 질문|답변) 첫자로 #은 입력하지 마세요. (예: #질문|#답변 [X])') ?>
|
||||
<input type="text" name="bo_category_list" value="<?php echo get_text($board['bo_category_list']) ?>" id="bo_category_list" class="frm_input" size="70">
|
||||
<input type="text" name="bo_category_list" value="<?php echo get_text($board['bo_category_list']) ?>"
|
||||
id="bo_category_list" class="frm_input" size="70">
|
||||
<input type="checkbox" name="bo_use_category" value="1" id="bo_use_category" <?php echo $board['bo_use_category'] ? 'checked' : ''; ?>>
|
||||
<label for="bo_use_category">사용</label>
|
||||
</td>
|
||||
|
|
@ -399,7 +408,8 @@ $pg_anchor = '<ul class="anchor">
|
|||
<th scope="row"><label for="bo_upload_count">파일 업로드 개수<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php echo help('게시물 한건당 업로드 할 수 있는 파일의 최대 개수 (0 은 파일첨부 사용하지 않음)') ?>
|
||||
<input type="text" name="bo_upload_count" value="<?php echo $board['bo_upload_count'] ?>" id="bo_upload_count" required class="required numeric frm_input" size="4">
|
||||
<input type="text" name="bo_upload_count" value="<?php echo $board['bo_upload_count'] ?>"
|
||||
id="bo_upload_count" required class="required numeric frm_input" size="4">
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_upload_count" value="1" id="chk_grp_upload_count">
|
||||
|
|
@ -412,7 +422,8 @@ $pg_anchor = '<ul class="anchor">
|
|||
<th scope="row"><label for="bo_upload_size">파일 업로드 용량<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php echo help('최대 ' . ini_get("upload_max_filesize") . ' 이하 업로드 가능, 1 MB = 1,048,576 bytes') ?>
|
||||
업로드 파일 한개당 <input type="text" name="bo_upload_size" value="<?php echo $board['bo_upload_size'] ?>" id="bo_upload_size" required class="required numeric frm_input" size="10"> bytes 이하
|
||||
업로드 파일 한개당 <input type="text" name="bo_upload_size" value="<?php echo $board['bo_upload_size'] ?>"
|
||||
id="bo_upload_size" required class="required numeric frm_input" size="10"> bytes 이하
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_upload_size" value="1" id="chk_grp_upload_size">
|
||||
|
|
@ -455,7 +466,8 @@ $pg_anchor = '<ul class="anchor">
|
|||
<tr>
|
||||
<th scope="row"><label for="bo_include_head">상단 파일 경로</label></th>
|
||||
<td>
|
||||
<input type="text" name="bo_include_head" value="<?php echo $board['bo_include_head'] ?>" id="bo_include_head" class="frm_input" size="50">
|
||||
<input type="text" name="bo_include_head" value="<?php echo $board['bo_include_head'] ?>"
|
||||
id="bo_include_head" class="frm_input" size="50">
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_include_head" value="1" id="chk_grp_include_head">
|
||||
|
|
@ -467,7 +479,8 @@ $pg_anchor = '<ul class="anchor">
|
|||
<tr>
|
||||
<th scope="row"><label for="bo_include_tail">하단 파일 경로</label></th>
|
||||
<td>
|
||||
<input type="text" name="bo_include_tail" value="<?php echo $board['bo_include_tail'] ?>" id="bo_include_tail" class="frm_input" size="50">
|
||||
<input type="text" name="bo_include_tail" value="<?php echo $board['bo_include_tail'] ?>"
|
||||
id="bo_include_tail" class="frm_input" size="50">
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_include_tail" value="1" id="chk_grp_include_tail">
|
||||
|
|
@ -492,7 +505,8 @@ $pg_anchor = '<ul class="anchor">
|
|||
<tr>
|
||||
<th scope="row"><label for="bo_insert_content">글쓰기 기본 내용</label></th>
|
||||
<td>
|
||||
<textarea id="bo_insert_content" name="bo_insert_content" rows="5"><?php echo $board['bo_insert_content'] ?></textarea>
|
||||
<textarea id="bo_insert_content" name="bo_insert_content"
|
||||
rows="5"><?php echo $board['bo_insert_content'] ?></textarea>
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_insert_content" value="1" id="chk_grp_insert_content">
|
||||
|
|
@ -505,7 +519,8 @@ $pg_anchor = '<ul class="anchor">
|
|||
<tr>
|
||||
<th scope="row"><label for="bo_page_rows">페이지당 목록 수<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<input type="text" name="bo_page_rows" value="<?php echo $board['bo_page_rows'] ?>" id="bo_page_rows" required class="required numeric frm_input" size="4">
|
||||
<input type="text" name="bo_page_rows" value="<?php echo $board['bo_page_rows'] ?>" id="bo_page_rows"
|
||||
required class="required numeric frm_input" size="4">
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_page_rows" value="1" id="chk_grp_page_rows">
|
||||
|
|
@ -519,7 +534,8 @@ $pg_anchor = '<ul class="anchor">
|
|||
<th scope="row"><label for="bo_image_width">이미지 폭 크기<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php echo help('일반 게시판에서 출력되는 이미지의 폭 크기') ?>
|
||||
<input type="text" name="bo_image_width" value="<?php echo $board['bo_image_width'] ?>" id="bo_image_width" required class="required numeric frm_input" size="4"> 픽셀
|
||||
<input type="text" name="bo_image_width" value="<?php echo $board['bo_image_width'] ?>"
|
||||
id="bo_image_width" required class="required numeric frm_input" size="4"> 픽셀
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_image_width" value="1" id="chk_grp_image_width">
|
||||
|
|
@ -533,7 +549,8 @@ $pg_anchor = '<ul class="anchor">
|
|||
<th scope="row"><label for="bo_gallery_height">로그접기 세로기준<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<?php echo help('자비란 형태의 게시판에서만 적용됩니다.') ?>
|
||||
<input type="text" name="bo_gallery_height" value="<?php echo $board['bo_gallery_height'] ?>" id="bo_gallery_height" required class="required numeric frm_input" size="4"> 픽셀
|
||||
<input type="text" name="bo_gallery_height" value="<?php echo $board['bo_gallery_height'] ?>"
|
||||
id="bo_gallery_height" required class="required numeric frm_input" size="4"> 픽셀
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_gallery_height" value="1" id="chk_grp_gallery_height">
|
||||
|
|
@ -549,12 +566,15 @@ $pg_anchor = '<ul class="anchor">
|
|||
<?php echo help('리스트에서 기본으로 정렬에 사용할 필드를 선택합니다. "기본"으로 사용하지 않으시는 경우 속도가 느려질 수 있습니다.') ?>
|
||||
<select id="bo_sort_field" name="bo_sort_field">
|
||||
<option value="" <?php echo get_selected($board['bo_sort_field'], ""); ?>>wr_num, wr_reply : 기본</option>
|
||||
<option value="wr_datetime asc" <?php echo get_selected($board['bo_sort_field'], "wr_datetime asc"); ?>>wr_datetime asc : 날짜 이전것 부터</option>
|
||||
<option value="wr_datetime asc" <?php echo get_selected($board['bo_sort_field'], "wr_datetime asc"); ?>>
|
||||
wr_datetime asc : 날짜 이전것 부터</option>
|
||||
<option value="wr_datetime desc" <?php echo get_selected($board['bo_sort_field'], "wr_datetime desc"); ?>>wr_datetime desc : 날짜 최근것 부터</option>
|
||||
<option value="wr_hit asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_hit asc, wr_num, wr_reply"); ?>>wr_hit asc : 조회수 낮은것 부터</option>
|
||||
<option value="wr_hit desc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_hit desc, wr_num, wr_reply"); ?>>wr_hit desc : 조회수 높은것 부터</option>
|
||||
<option value="wr_last asc" <?php echo get_selected($board['bo_sort_field'], "wr_last asc"); ?>>wr_last asc : 최근글 이전것 부터</option>
|
||||
<option value="wr_last desc" <?php echo get_selected($board['bo_sort_field'], "wr_last desc"); ?>>wr_last desc : 최근글 최근것 부터</option>
|
||||
<option value="wr_last asc" <?php echo get_selected($board['bo_sort_field'], "wr_last asc"); ?>>wr_last
|
||||
asc : 최근글 이전것 부터</option>
|
||||
<option value="wr_last desc" <?php echo get_selected($board['bo_sort_field'], "wr_last desc"); ?>>
|
||||
wr_last desc : 최근글 최근것 부터</option>
|
||||
<option value="wr_comment asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_comment asc, wr_num, wr_reply"); ?>>wr_comment asc : 댓글수 낮은것 부터</option>
|
||||
<option value="wr_comment desc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_comment desc, wr_num, wr_reply"); ?>>wr_comment desc : 댓글수 높은것 부터</option>
|
||||
<option value="wr_good asc, wr_num, wr_reply" <?php echo get_selected($board['bo_sort_field'], "wr_good asc, wr_num, wr_reply"); ?>>wr_good asc : 추천수 낮은것 부터</option>
|
||||
|
|
@ -598,9 +618,11 @@ $pg_anchor = '<ul class="anchor">
|
|||
<th scope="row">여분필드<?php echo $i ?></th>
|
||||
<td class="td_extra">
|
||||
<label for="bo_<?php echo $i ?>_subj">여분필드 <?php echo $i ?> 제목</label>
|
||||
<input type="text" name="bo_<?php echo $i ?>_subj" id="bo_<?php echo $i ?>_subj" value="<?php echo get_text($board['bo_'.$i.'_subj']) ?>" class="frm_input">
|
||||
<input type="text" name="bo_<?php echo $i ?>_subj" id="bo_<?php echo $i ?>_subj"
|
||||
value="<?php echo get_text($board['bo_' . $i . '_subj']) ?>" class="frm_input">
|
||||
<label for="bo_<?php echo $i ?>">여분필드 <?php echo $i ?> 값</label>
|
||||
<input type="text" name="bo_<?php echo $i ?>" value="<?php echo get_text($board['bo_'.$i]) ?>" id="bo_<?php echo $i ?>" class="frm_input">
|
||||
<input type="text" name="bo_<?php echo $i ?>" value="<?php echo get_text($board['bo_' . $i]) ?>"
|
||||
id="bo_<?php echo $i ?>" class="frm_input">
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_<?php echo $i ?>" value="1" id="chk_grp_<?php echo $i ?>">
|
||||
|
|
@ -674,8 +696,7 @@ function set_point(f) {
|
|||
}
|
||||
}
|
||||
|
||||
function fboardform_submit(f)
|
||||
{
|
||||
function fboardform_submit(f) {
|
||||
<?php echo get_editor_js("bo_content_head"); ?>
|
||||
<?php echo get_editor_js("bo_content_tail"); ?>
|
||||
<?php echo get_editor_js("bo_mobile_content_head"); ?>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,9 @@ $total_count = $row['cnt'];
|
|||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1;
|
||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
||||
|
|
@ -56,7 +58,10 @@ $colspan = 11;
|
|||
|
||||
<style>
|
||||
td input[type="text"],
|
||||
td select {display:block; width:100%;}
|
||||
td select {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
|
|
@ -81,7 +86,8 @@ td select {display:block; width:100%;}
|
|||
<br />
|
||||
|
||||
|
||||
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
|
||||
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);"
|
||||
method="post">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
|
|
@ -126,18 +132,21 @@ td select {display:block; width:100%;}
|
|||
<?php if ($is_admin == 'super') { ?>
|
||||
<?php echo get_group_select("gr_id[$i]", $row['gr_id']) ?>
|
||||
<?php } else { ?>
|
||||
<input type="hidden" name="gr_id[<?php echo $i ?>]" value="<?php echo $row['gr_id'] ?>"><?php echo $row['gr_subject'] ?>
|
||||
<input type="hidden" name="gr_id[<?php echo $i ?>]"
|
||||
value="<?php echo $row['gr_id'] ?>"><?php echo $row['gr_subject'] ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" name="board_table[<?php echo $i ?>]" value="<?php echo $row['bo_table'] ?>">
|
||||
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $row['bo_table'] ?>"><?php echo $row['bo_table'] ?></a>
|
||||
<a
|
||||
href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $row['bo_table'] ?>"><?php echo $row['bo_table'] ?></a>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo get_skin_select('board', 'bo_skin_' . $i, "bo_skin[$i]", $row['bo_skin']); ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="bo_subject[<?php echo $i ?>]" value="<?php echo get_text($row['bo_subject']) ?>" id="bo_subject_<?php echo $i ?>" required class="required frm_input bo_subject full_input" size="25">
|
||||
<input type="text" name="bo_subject[<?php echo $i ?>]" value="<?php echo get_text($row['bo_subject']) ?>"
|
||||
id="bo_subject_<?php echo $i ?>" required class="required frm_input bo_subject full_input" size="25">
|
||||
</td>
|
||||
<td>
|
||||
<?php echo get_member_level_select('bo_list_level[' . $i . ']', 1, 10, $row['bo_list_level']) ?>
|
||||
|
|
@ -188,8 +197,7 @@ td select {display:block; width:100%;}
|
|||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&page='); ?>
|
||||
|
||||
<script>
|
||||
function fboardlist_submit(f)
|
||||
{
|
||||
function fboardlist_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert(document.pressed + " 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -65,4 +65,3 @@ if ($_POST['act_button'] == "선택수정") {
|
|||
}
|
||||
|
||||
goto_url('./board_list.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -45,7 +45,8 @@ if(is_dir($dir)) {
|
|||
}
|
||||
?>
|
||||
|
||||
<div class="btn_confirm01 btn_confirm"><a href="./board_form.php?w=u&bo_table=<?php echo $bo_table; ?>&<?php echo $qstr; ?>">게시판 수정으로 돌아가기</a></div>
|
||||
<div class="btn_confirm01 btn_confirm"><a
|
||||
href="./board_form.php?w=u&bo_table=<?php echo $bo_table; ?>&<?php echo $qstr; ?>">게시판 수정으로 돌아가기</a></div>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ include_once('./_common.php');
|
|||
|
||||
auth_check($auth[$sub_menu], 'w');
|
||||
|
||||
if ($is_admin != 'super' && $w == '') alert('최고관리자만 접근 가능합니다.');
|
||||
if ($is_admin != 'super' && $w == '')
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
|
||||
$html_title = '게시판그룹';
|
||||
$gr_id_attr = '';
|
||||
|
|
@ -18,8 +19,7 @@ if ($w == '') {
|
|||
$gr_id_attr = 'readonly';
|
||||
$gr = sql_fetch(" select * from {$g5['group_table']} where gr_id = '$gr_id' ");
|
||||
$html_title .= ' 수정';
|
||||
}
|
||||
else
|
||||
} else
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||
|
||||
if (!isset($group['gr_device'])) {
|
||||
|
|
@ -38,7 +38,8 @@ include_once('./admin.head.php');
|
|||
</p>
|
||||
</div>
|
||||
|
||||
<form name="fboardgroup" id="fboardgroup" action="./boardgroup_form_update.php" onsubmit="return fboardgroup_check(this);" method="post" autocomplete="off">
|
||||
<form name="fboardgroup" id="fboardgroup" action="./boardgroup_form_update.php"
|
||||
onsubmit="return fboardgroup_check(this);" method="post" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||
|
|
@ -68,7 +69,8 @@ include_once('./admin.head.php');
|
|||
<tr>
|
||||
<th scope="row"><label for="gr_subject">그룹 제목<strong class="sound_only"> 필수</strong></label></th>
|
||||
<td>
|
||||
<input type="text" name="gr_subject" value="<?php echo get_text($group['gr_subject']) ?>" id="gr_subject" required class="required frm_input" size="80">
|
||||
<input type="text" name="gr_subject" value="<?php echo get_text($group['gr_subject']) ?>" id="gr_subject"
|
||||
required class="required frm_input" size="80">
|
||||
<?php
|
||||
if ($w == 'u')
|
||||
echo '<a href="./board_form.php?gr_id=' . $gr_id . '" class="btn_frmline">게시판생성</a>';
|
||||
|
|
@ -80,9 +82,11 @@ include_once('./admin.head.php');
|
|||
<th scope="row">여분필드<?php echo $i ?></th>
|
||||
<td class="td_extra">
|
||||
<label for="gr_<?php echo $i ?>_subj">여분필드 <?php echo $i ?> 제목</label>
|
||||
<input type="text" name="gr_<?php echo $i ?>_subj" value="<?php echo get_text($group['gr_'.$i.'_subj']) ?>" id="gr_<?php echo $i ?>_subj" class="frm_input">
|
||||
<input type="text" name="gr_<?php echo $i ?>_subj" value="<?php echo get_text($group['gr_' . $i . '_subj']) ?>"
|
||||
id="gr_<?php echo $i ?>_subj" class="frm_input">
|
||||
<label for="gr_<?php echo $i ?>">여분필드 <?php echo $i ?> 내용</label>
|
||||
<input type="text" name="gr_<?php echo $i ?>" value="<?php echo $gr['gr_'.$i] ?>" id="gr_<?php echo $i ?>" class="frm_input">
|
||||
<input type="text" name="gr_<?php echo $i ?>" value="<?php echo $gr['gr_' . $i] ?>" id="gr_<?php echo $i ?>"
|
||||
class="frm_input">
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
|
@ -101,8 +105,7 @@ include_once('./admin.head.php');
|
|||
</form>
|
||||
|
||||
<script>
|
||||
function fboardgroup_check(f)
|
||||
{
|
||||
function fboardgroup_check(f) {
|
||||
f.action = './boardgroup_form_update.php';
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,14 +7,16 @@ if ($w == 'u')
|
|||
|
||||
auth_check($auth[$sub_menu], 'w');
|
||||
|
||||
if ($is_admin != 'super' && $w == '') alert('최고관리자만 접근 가능합니다.');
|
||||
if ($is_admin != 'super' && $w == '')
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
|
||||
check_admin_token();
|
||||
|
||||
if (!preg_match("/^([A-Za-z0-9_]{1,10})$/", $_POST['gr_id']))
|
||||
alert('그룹 ID는 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (10자 이내)');
|
||||
|
||||
if (!$gr_subject) alert('그룹 제목을 입력하세요.');
|
||||
if (!$gr_subject)
|
||||
alert('그룹 제목을 입력하세요.');
|
||||
|
||||
$sql_common = " gr_subject = '{$_POST['gr_subject']}',
|
||||
gr_device = '{$_POST['gr_device']}',
|
||||
|
|
|
|||
|
|
@ -44,7 +44,8 @@ $total_count = $row['cnt'];
|
|||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1)
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
||||
|
|
@ -78,7 +79,8 @@ $colspan = 10;
|
|||
|
||||
<br />
|
||||
|
||||
<form name="fboardgrouplist" id="fboardgrouplist" action="./boardgroup_list_update.php" onsubmit="return fboardgrouplist_submit(this);" method="post">
|
||||
<form name="fboardgrouplist" id="fboardgrouplist" action="./boardgroup_list_update.php"
|
||||
onsubmit="return fboardgrouplist_submit(this);" method="post">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
|
|
@ -116,8 +118,7 @@ $colspan = 10;
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
// 접근회원수
|
||||
$sql1 = " select count(*) as cnt from {$g5['group_member_table']} where gr_id = '{$row['gr_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
|
@ -138,18 +139,24 @@ $colspan = 10;
|
|||
</td>
|
||||
<td class="td_grid"><?php echo $row['gr_id'] ?></td>
|
||||
<td class="td_input">
|
||||
<input type="text" name="gr_subject[<?php echo $i ?>]" value="<?php echo get_text($row['gr_subject']) ?>" id="gr_subject_<?php echo $i ?>" class="frm_input full">
|
||||
<input type="text" name="gr_subject[<?php echo $i ?>]" value="<?php echo get_text($row['gr_subject']) ?>"
|
||||
id="gr_subject_<?php echo $i ?>" class="frm_input full">
|
||||
</td>
|
||||
<td class="td_mng td_input">
|
||||
<?php if ($is_admin == 'super') { ?>
|
||||
<input type="text" name="gr_admin[<?php echo $i ?>]" value="<?php echo $row['gr_admin'] ?>" id="gr_admin_<?php echo $i ?>" class="frm_input full" size="10" maxlength="20">
|
||||
<input type="text" name="gr_admin[<?php echo $i ?>]" value="<?php echo $row['gr_admin'] ?>"
|
||||
id="gr_admin_<?php echo $i ?>" class="frm_input full" size="10" maxlength="20">
|
||||
<?php } else { ?>
|
||||
<input type="hidden" name="gr_admin[<?php echo $i ?>]" value="<?php echo $row['gr_admin'] ?>"><?php echo $row['gr_admin'] ?>
|
||||
<input type="hidden" name="gr_admin[<?php echo $i ?>]"
|
||||
value="<?php echo $row['gr_admin'] ?>"><?php echo $row['gr_admin'] ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="td_numsmall"><a href="./board_list.php?sfl=a.gr_id&stx=<?php echo $row['gr_id'] ?>"><?php echo $row2['cnt'] ?></a></td>
|
||||
<td class="td_numsmall"><a
|
||||
href="./board_list.php?sfl=a.gr_id&stx=<?php echo $row['gr_id'] ?>"><?php echo $row2['cnt'] ?></a>
|
||||
</td>
|
||||
<td class="td_chk">
|
||||
<input type="text" name="gr_order[<?php echo $i ?>]" value="<?php echo $row['gr_order'] ?>" id="gr_order_<?php echo $i ?>" class="frm_input full" size="2">
|
||||
<input type="text" name="gr_order[<?php echo $i ?>]" value="<?php echo $row['gr_order'] ?>"
|
||||
id="gr_order_<?php echo $i ?>" class="frm_input full" size="2">
|
||||
</td>
|
||||
<td class="td_mng">
|
||||
<select name="gr_device[<?php echo $i ?>]" id="gr_device_<?php echo $i ?>" class="full">
|
||||
|
|
@ -198,8 +205,7 @@ echo $pagelist;
|
|||
?>
|
||||
|
||||
<script>
|
||||
function fboardgrouplist_submit(f)
|
||||
{
|
||||
function fboardgrouplist_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert(document.pressed + " 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@ $count = count($_POST['chk']);
|
|||
if (!$count)
|
||||
alert($_POST['act_button'] . '할 게시판그룹을 1개이상 선택해 주세요.');
|
||||
|
||||
for ($i=0; $i<$count; $i++)
|
||||
{
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$k = $_POST['chk'][$i];
|
||||
$gr_id = $_POST['group_id'][$k];
|
||||
|
||||
|
|
@ -44,4 +43,3 @@ for ($i=0; $i<$count; $i++)
|
|||
}
|
||||
|
||||
goto_url('./boardgroup_list.php?' . $qstr);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -14,11 +14,13 @@ include_once('./admin.head.php');
|
|||
$colspan = 4;
|
||||
?>
|
||||
|
||||
<form name="fboardgroupmember_form" id="fboardgroupmember_form" action="./boardgroupmember_update.php" onsubmit="return boardgroupmember_form_check(this)" method="post">
|
||||
<form name="fboardgroupmember_form" id="fboardgroupmember_form" action="./boardgroupmember_update.php"
|
||||
onsubmit="return boardgroupmember_form_check(this)" method="post">
|
||||
<input type="hidden" name="mb_id" value="<?php echo $mb['mb_id'] ?>" id="mb_id">
|
||||
<input type="hidden" name="token" value="" id="token">
|
||||
<div class="local_cmd01 local_cmd">
|
||||
<p>아이디 <b><?php echo $mb['mb_id'] ?></b>, 이름 <b><?php echo get_text($mb['mb_name']); ?></b>, 닉네임 <b><?php echo $mb['mb_nick'] ?></b></p>
|
||||
<p>아이디 <b><?php echo $mb['mb_id'] ?></b>, 이름 <b><?php echo get_text($mb['mb_name']); ?></b>, 닉네임
|
||||
<b><?php echo $mb['mb_nick'] ?></b></p>
|
||||
<label for="gr_id">그룹지정</label>
|
||||
<select name="gr_id" id="gr_id">
|
||||
<option value="">접근가능 그룹을 선택하세요.</option>
|
||||
|
|
@ -40,7 +42,8 @@ $colspan = 4;
|
|||
</div>
|
||||
</form>
|
||||
|
||||
<form name="fboardgroupmember" id="fboardgroupmember" action="./boardgroupmember_update.php" onsubmit="return fboardgroupmember_submit(this);" method="post">
|
||||
<form name="fboardgroupmember" id="fboardgroupmember" action="./boardgroupmember_update.php"
|
||||
onsubmit="return fboardgroupmember_submit(this);" method="post">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst ?>" id="sst">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod ?>" id="sod">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>" id="sfl">
|
||||
|
|
@ -80,7 +83,9 @@ $colspan = 4;
|
|||
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo $row['gr_subject'] ?> 그룹</label>
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $row['gm_id'] ?>" id="chk_<?php echo $i ?>">
|
||||
</td>
|
||||
<td class="td_grid"><a href="<?php echo G5_BBS_URL; ?>/group.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo $row['gr_id'] ?></a></td>
|
||||
<td class="td_grid"><a
|
||||
href="<?php echo G5_BBS_URL; ?>/group.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo $row['gr_id'] ?></a>
|
||||
</td>
|
||||
<td class="td_category"><?php echo $row['gr_subject'] ?></td>
|
||||
<td class="td_datetime"><?php echo $row['gm_datetime'] ?></td>
|
||||
</tr>
|
||||
|
|
@ -101,8 +106,7 @@ $colspan = 4;
|
|||
</form>
|
||||
|
||||
<script>
|
||||
function fboardgroupmember_submit(f)
|
||||
{
|
||||
function fboardgroupmember_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
|
|
@ -111,8 +115,7 @@ function fboardgroupmember_submit(f)
|
|||
return true;
|
||||
}
|
||||
|
||||
function boardgroupmember_form_check(f)
|
||||
{
|
||||
function boardgroupmember_form_check(f) {
|
||||
if (f.gr_id.value == '') {
|
||||
alert('접근가능 그룹을 선택하세요.');
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@ $total_count = $row['cnt'];
|
|||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1)
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
|
|
@ -66,7 +67,8 @@ $colspan = 7;
|
|||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
|
||||
<form name="fboardgroupmember" id="fboardgroupmember" action="./boardgroupmember_update.php" onsubmit="return fboardgroupmember_submit(this);" method="post">
|
||||
<form name="fboardgroupmember" id="fboardgroupmember" action="./boardgroupmember_update.php"
|
||||
onsubmit="return fboardgroupmember_submit(this);" method="post">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
|
|
@ -95,8 +97,7 @@ $colspan = 7;
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
// 접근가능한 그룹수
|
||||
$sql2 = " select count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
|
@ -123,8 +124,7 @@ $colspan = 7;
|
|||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
{
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
|
|
@ -140,8 +140,7 @@ $colspan = 7;
|
|||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&gr_id=$gr_id&page="); ?>
|
||||
|
||||
<script>
|
||||
function fboardgroupmember_submit(f)
|
||||
{
|
||||
function fboardgroupmember_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ include_once('./_common.php');
|
|||
|
||||
sql_query(" ALTER TABLE {$g5['group_member_table']} CHANGE `gm_id` `gm_id` INT( 11 ) DEFAULT '0' NOT NULL AUTO_INCREMENT ", false);
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
if ($w == '') {
|
||||
auth_check($auth[$sub_menu], 'w');
|
||||
|
||||
$mb = get_member($mb_id);
|
||||
|
|
@ -25,9 +24,7 @@ if ($w == '')
|
|||
$row = sql_fetch($sql);
|
||||
if ($row['cnt']) {
|
||||
alert('이미 등록되어 있는 자료입니다.');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
check_admin_token();
|
||||
|
||||
$sql = " insert into {$g5['group_member_table']}
|
||||
|
|
@ -36,9 +33,7 @@ if ($w == '')
|
|||
gm_datetime = '" . G5_TIME_YMDHIS . "' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
else if ($w == 'd' || $w == 'ld')
|
||||
{
|
||||
} else if ($w == 'd' || $w == 'ld') {
|
||||
auth_check($auth[$sub_menu], 'd');
|
||||
|
||||
$count = count($_POST['chk']);
|
||||
|
|
|
|||
|
|
@ -72,4 +72,3 @@ if(($total_count - $cnt) == 0 || $total_count == 0)
|
|||
echo '<div class="check_processing"></div><p>변환완료</p>';
|
||||
else
|
||||
echo '<p>총 ' . number_format($total_count) . '건 중 ' . number_format($cnt) . '건 변환완료<br><br>접속로그를 추가로 변환하시려면 아래 업데이트 버튼을 클릭해 주세요.</p><button type="button" id="run_update">업데이트</button>';
|
||||
?>
|
||||
|
|
@ -21,4 +21,3 @@ $browscap->cacheFilename = 'browscap_cache.php';
|
|||
$browscap->updateCache();
|
||||
|
||||
die('');
|
||||
?>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$sub_menu = '900200';
|
||||
$sub_menu = '900300';
|
||||
include_once('./_common.php');
|
||||
|
||||
if ($is_admin != 'super')
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@ if (is_array($files)) {
|
|||
foreach ($files as $gcaptcha_file) {
|
||||
$modification_time = filemtime($gcaptcha_file); // 파일접근시간
|
||||
|
||||
if ($modification_time > $before_time) continue;
|
||||
if ($modification_time > $before_time)
|
||||
continue;
|
||||
|
||||
$cnt++;
|
||||
unlink($gcaptcha_file);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$sub_menu = "900300";
|
||||
$sub_menu = "900100";
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$sub_menu = "900300";
|
||||
$sub_menu = "900100";
|
||||
include_once('./_common.php');
|
||||
|
||||
check_demo();
|
||||
|
|
@ -156,4 +156,3 @@ sql_query($sql);
|
|||
//sql_query(" OPTIMIZE TABLE `$g5['config_table']` ");
|
||||
|
||||
goto_url('./config_form.php', false);
|
||||
?>
|
||||
|
|
@ -36,8 +36,7 @@ if(!sql_query(" select co_skin from {$g5['content_table']} limit 1 ", false)) {
|
|||
$html_title = "내용";
|
||||
$g5['title'] = $html_title . ' 관리';
|
||||
|
||||
if ($w == "u")
|
||||
{
|
||||
if ($w == "u") {
|
||||
$html_title .= " 수정";
|
||||
$readonly = " readonly";
|
||||
|
||||
|
|
@ -45,9 +44,7 @@ if ($w == "u")
|
|||
$co = sql_fetch($sql);
|
||||
if (!$co['co_id'])
|
||||
alert('등록된 자료가 없습니다.');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$html_title .= ' 입력';
|
||||
$co['co_html'] = 2;
|
||||
$co['co_skin'] = 'basic';
|
||||
|
|
@ -57,7 +54,8 @@ else
|
|||
include_once(G5_ADMIN_PATH . '/admin.head.php');
|
||||
?>
|
||||
|
||||
<form name="frmcontentform" action="./contentformupdate.php" onsubmit="return frmcontentform_check(this);" method="post" enctype="MULTIPART/FORM-DATA" >
|
||||
<form name="frmcontentform" action="./contentformupdate.php" onsubmit="return frmcontentform_check(this);" method="post"
|
||||
enctype="MULTIPART/FORM-DATA">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="co_html" value="1">
|
||||
<input type="hidden" name="token" value="">
|
||||
|
|
@ -75,12 +73,14 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||
<td>
|
||||
<?php echo help('20자 이내의 영문자, 숫자, _ 만 가능합니다.'); ?>
|
||||
<input type="text" value="<?php echo $co['co_id']; ?>" name="co_id" id="co_id" required <?php echo $readonly; ?> class="required <?php echo $readonly; ?> frm_input" size="20" maxlength="20">
|
||||
<?php if ($w == 'u') { ?><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=<?php echo $co_id; ?>" target="_blank" class="btn_frmline">내용확인</a><?php } ?>
|
||||
<?php if ($w == 'u') { ?><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=<?php echo $co_id; ?>"
|
||||
target="_blank" class="btn_frmline">내용확인</a><?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="co_subject">제목</label></th>
|
||||
<td><input type="text" name="co_subject" value="<?php echo htmlspecialchars2($co['co_subject']); ?>" id="co_subject" required class="frm_input required" size="90"></td>
|
||||
<td><input type="text" name="co_subject" value="<?php echo htmlspecialchars2($co['co_subject']); ?>"
|
||||
id="co_subject" required class="frm_input required" size="90"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">내용</th>
|
||||
|
|
@ -106,14 +106,16 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||
<th scope="row"><label for="co_include_head">상단 파일 경로</label></th>
|
||||
<td>
|
||||
<?php echo help("설정값이 없으면 기본 상단 파일을 사용합니다."); ?>
|
||||
<input type="text" name="co_include_head" value="<?php echo $co['co_include_head']; ?>" id="co_include_head" class="frm_input" size="60">
|
||||
<input type="text" name="co_include_head" value="<?php echo $co['co_include_head']; ?>" id="co_include_head"
|
||||
class="frm_input" size="60">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="co_include_tail">하단 파일 경로</label></th>
|
||||
<td>
|
||||
<?php echo help("설정값이 없으면 기본 하단 파일을 사용합니다."); ?>
|
||||
<input type="text" name="co_include_tail" value="<?php echo $co['co_include_tail']; ?>" id="co_include_tail" class="frm_input" size="60">
|
||||
<input type="text" name="co_include_tail" value="<?php echo $co['co_include_tail']; ?>" id="co_include_tail"
|
||||
class="frm_input" size="60">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -180,8 +182,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||
</form>
|
||||
|
||||
<script>
|
||||
function frmcontentform_check(f)
|
||||
{
|
||||
function frmcontentform_check(f) {
|
||||
errmsg = "";
|
||||
errfld = "";
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,10 @@ check_admin_token();
|
|||
@mkdir(G5_DATA_PATH . "/content", G5_DIR_PERMISSION);
|
||||
@chmod(G5_DATA_PATH . "/content", G5_DIR_PERMISSION);
|
||||
|
||||
if ($co_himg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_h");
|
||||
if ($co_timg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_t");
|
||||
if ($co_himg_del)
|
||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_h");
|
||||
if ($co_timg_del)
|
||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_t");
|
||||
|
||||
$error_msg = '';
|
||||
|
||||
|
|
@ -40,10 +42,10 @@ $sql_common = " co_include_head = '$co_include_head',
|
|||
co_skin = '$co_skin',
|
||||
co_mobile_skin = '$co_mobile_skin' ";
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
if ($w == "") {
|
||||
//if(eregi("[^a-z0-9_]", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
|
||||
if(preg_match("/[^a-z0-9_]/i", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
|
||||
if (preg_match("/[^a-z0-9_]/i", $co_id))
|
||||
alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
|
||||
|
||||
$sql = " select co_id from {$g5['content_table']} where co_id = '$co_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
|
@ -54,16 +56,12 @@ if ($w == "")
|
|||
set co_id = '$co_id',
|
||||
$sql_common ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
} else if ($w == "u") {
|
||||
$sql = " update {$g5['content_table']}
|
||||
set $sql_common
|
||||
where co_id = '$co_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
} else if ($w == "d") {
|
||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_h");
|
||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_t");
|
||||
|
||||
|
|
@ -71,16 +69,13 @@ else if ($w == "d")
|
|||
sql_query($sql);
|
||||
}
|
||||
|
||||
if ($w == "" || $w == "u")
|
||||
{
|
||||
if ($_FILES['co_himg']['name'])
|
||||
{
|
||||
if ($w == "" || $w == "u") {
|
||||
if ($_FILES['co_himg']['name']) {
|
||||
$dest_path = G5_DATA_PATH . "/content/" . $co_id . "_h";
|
||||
@move_uploaded_file($_FILES['co_himg']['tmp_name'], $dest_path);
|
||||
@chmod($dest_path, G5_FILE_PERMISSION);
|
||||
}
|
||||
if ($_FILES['co_timg']['name'])
|
||||
{
|
||||
if ($_FILES['co_timg']['name']) {
|
||||
$dest_path = G5_DATA_PATH . "/content/" . $co_id . "_t";
|
||||
@move_uploaded_file($_FILES['co_timg']['tmp_name'], $dest_path);
|
||||
@chmod($dest_path, G5_FILE_PERMISSION);
|
||||
|
|
@ -91,9 +86,6 @@ if ($w == "" || $w == "u")
|
|||
} else {
|
||||
goto_url("./contentform.php?w=u&co_id=$co_id");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
goto_url("./contentlist.php");
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -42,7 +42,9 @@ $total_count = $row['cnt'];
|
|||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1;
|
||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = "select * $sql_common order by co_id limit $from_record, {$config['cf_page_rows']} ";
|
||||
|
|
@ -80,12 +82,16 @@ $result = sql_query($sql);
|
|||
<td class="td_id"><?php echo $row['co_id']; ?></td>
|
||||
<td><?php echo htmlspecialchars2($row['co_subject']); ?></td>
|
||||
<td>
|
||||
<a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=<?php echo $row['co_id']; ?>" target="_blank"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span> 보기</a>
|
||||
<a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=<?php echo $row['co_id']; ?>" target="_blank"><span
|
||||
class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span> 보기</a>
|
||||
</td>
|
||||
<td class="td_mng">
|
||||
<a href="./contentform.php?w=u&co_id=<?php echo $row['co_id']; ?>"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>수정</a>
|
||||
<a href="./contentform.php?w=u&co_id=<?php echo $row['co_id']; ?>"><span
|
||||
class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>수정</a>
|
||||
|
||||
<a href="./contentformupdate.php?w=d&co_id=<?php echo $row['co_id']; ?>" onclick="return delete_confirm(this);"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>삭제</a>
|
||||
<a href="./contentformupdate.php?w=d&co_id=<?php echo $row['co_id']; ?>"
|
||||
onclick="return delete_confirm(this);"><span
|
||||
class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>삭제</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
|
@ -102,4 +108,3 @@ $result = sql_query($sql);
|
|||
|
||||
<?php
|
||||
include_once(G5_ADMIN_PATH . '/admin.tail.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -233,8 +233,8 @@ $editor_list = array();
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
외부경로 <input type="text" name="cs_value[<?= $css_index ?>]" value="<?= $de['logo']['cs_value'] ?>"
|
||||
size="50" />
|
||||
외부경로 <input type="text" name="cs_value[<?= $css_index ?>]"
|
||||
value="<?= $de['logo']['cs_value'] ?>" size="50" />
|
||||
</td>
|
||||
</tr <?php $css_index++; ?>>
|
||||
|
||||
|
|
@ -295,9 +295,11 @@ $editor_list = array();
|
|||
|
||||
<option value="right top" <?= $de['background']['cs_etc_4'] == 'right top' ? "selected" : "" ?>>오른쪽 상단
|
||||
</option>
|
||||
<option value="right middle" <?= $de['background']['cs_etc_4'] == 'right middle' ? "selected" : "" ?>>오른쪽 중단
|
||||
<option value="right middle" <?= $de['background']['cs_etc_4'] == 'right middle' ? "selected" : "" ?>>오른쪽
|
||||
중단
|
||||
</option>
|
||||
<option value="right bottom" <?= $de['background']['cs_etc_4'] == 'right bottom' ? "selected" : "" ?>>오른쪽 하단
|
||||
<option value="right bottom" <?= $de['background']['cs_etc_4'] == 'right bottom' ? "selected" : "" ?>>오른쪽
|
||||
하단
|
||||
</option>
|
||||
</select>
|
||||
|
||||
|
|
@ -307,7 +309,8 @@ $editor_list = array();
|
|||
<option value="">원본크기</option>
|
||||
<option value="contain" <?= $de['background']['cs_etc_5'] == 'contain' ? "selected" : "" ?>>맞춤</option>
|
||||
<option value="cover" <?= $de['background']['cs_etc_5'] == 'cover' ? "selected" : "" ?>>꽉참</option>
|
||||
<option value="100% 100%" <?= $de['background']['cs_etc_5'] == '100% 100%' ? "selected" : "" ?>>늘이기</option>
|
||||
<option value="100% 100%" <?= $de['background']['cs_etc_5'] == '100% 100%' ? "selected" : "" ?>>늘이기
|
||||
</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
|
@ -365,9 +368,11 @@ $editor_list = array();
|
|||
|
||||
<option value="center top" <?= $de['m_background']['cs_etc_4'] == 'center top' ? "selected" : "" ?>>중간 상단
|
||||
</option>
|
||||
<option value="center middle" <?= $de['m_background']['cs_etc_4'] == 'center middle' ? "selected" : "" ?>>중간
|
||||
<option value="center middle" <?= $de['m_background']['cs_etc_4'] == 'center middle' ? "selected" : "" ?>>
|
||||
중간
|
||||
중단</option>
|
||||
<option value="center bottom" <?= $de['m_background']['cs_etc_4'] == 'center bottom' ? "selected" : "" ?>>중간
|
||||
<option value="center bottom" <?= $de['m_background']['cs_etc_4'] == 'center bottom' ? "selected" : "" ?>>
|
||||
중간
|
||||
하단</option>
|
||||
|
||||
<option value="right top" <?= $de['m_background']['cs_etc_4'] == 'right top' ? "selected" : "" ?>>오른쪽 상단
|
||||
|
|
@ -498,10 +503,10 @@ $editor_list = array();
|
|||
value="<?= $de['menu_icon']['cs_etc_1'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
|
||||
|
||||
그라데이션
|
||||
0% <input type="text" name="cs_etc_2[<?= $css_index ?>]" value="<?php echo $de['menu_icon']['cs_etc_2'] ?>"
|
||||
class="colorpicker" size="30" maxlength="255" placeholder="#색상코드" /><input type="number"
|
||||
name="cs_etc_3[<?= $css_index ?>]" value="<?= $de['menu_icon']['cs_etc_3'] ?>" placeholder="0" title="투명도"
|
||||
style="width:45px;" />%
|
||||
0% <input type="text" name="cs_etc_2[<?= $css_index ?>]"
|
||||
value="<?php echo $de['menu_icon']['cs_etc_2'] ?>" class="colorpicker" size="30" maxlength="255"
|
||||
placeholder="#색상코드" /><input type="number" name="cs_etc_3[<?= $css_index ?>]"
|
||||
value="<?= $de['menu_icon']['cs_etc_3'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
|
||||
~
|
||||
100% <input type="text" name="cs_etc_4[<?= $css_index ?>]"
|
||||
value="<?php echo $de['menu_icon']['cs_etc_4'] ?>" class="colorpicker" size="30" maxlength="255"
|
||||
|
|
@ -643,9 +648,11 @@ $editor_list = array();
|
|||
배경위치
|
||||
<select name="cs_etc_4[<?= $css_index ?>]">
|
||||
<option value="">왼쪽 상단</option>
|
||||
<option value="left middle" <?= $de['intro_background']['cs_etc_4'] == 'left middle' ? "selected" : "" ?>>왼쪽
|
||||
<option value="left middle" <?= $de['intro_background']['cs_etc_4'] == 'left middle' ? "selected" : "" ?>>
|
||||
왼쪽
|
||||
중단</option>
|
||||
<option value="left bottom" <?= $de['intro_background']['cs_etc_4'] == 'left bottom' ? "selected" : "" ?>>왼쪽
|
||||
<option value="left bottom" <?= $de['intro_background']['cs_etc_4'] == 'left bottom' ? "selected" : "" ?>>
|
||||
왼쪽
|
||||
하단</option>
|
||||
|
||||
<option value="center top" <?= $de['intro_background']['cs_etc_4'] == 'center top' ? "selected" : "" ?>>중간
|
||||
|
|
@ -653,7 +660,8 @@ $editor_list = array();
|
|||
<option value="center middle" <?= $de['intro_background']['cs_etc_4'] == 'center middle' ? "selected" : "" ?>>중간 중단</option>
|
||||
<option value="center bottom" <?= $de['intro_background']['cs_etc_4'] == 'center bottom' ? "selected" : "" ?>>중간 하단</option>
|
||||
|
||||
<option value="right top" <?= $de['intro_background']['cs_etc_4'] == 'right top' ? "selected" : "" ?>>오른쪽 상단
|
||||
<option value="right top" <?= $de['intro_background']['cs_etc_4'] == 'right top' ? "selected" : "" ?>>오른쪽
|
||||
상단
|
||||
</option>
|
||||
<option value="right middle" <?= $de['intro_background']['cs_etc_4'] == 'right middle' ? "selected" : "" ?>>
|
||||
오른쪽 중단</option>
|
||||
|
|
@ -692,8 +700,8 @@ $editor_list = array();
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
외부경로 <input type="text" name="cs_value[<?= $css_index ?>]" value="<?= $de['intro']['cs_value'] ?>"
|
||||
size="50" />
|
||||
외부경로 <input type="text" name="cs_value[<?= $css_index ?>]"
|
||||
value="<?= $de['intro']['cs_value'] ?>" size="50" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -701,7 +709,8 @@ $editor_list = array();
|
|||
안내문 내용
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="cs_etc_1[<?= $css_index ?>]" value="<?= $de['intro']['cs_etc_1'] ?>" size="100" />
|
||||
<input type="text" name="cs_etc_1[<?= $css_index ?>]" value="<?= $de['intro']['cs_etc_1'] ?>"
|
||||
size="100" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -714,11 +723,11 @@ $editor_list = array();
|
|||
placeholder="#색상코드" /><input type="number" name="cs_etc_3[<?= $css_index ?>]"
|
||||
value="<?= $de['intro']['cs_etc_3'] ?>" placeholder="0" title="투명도" style="width:45px;" />%
|
||||
|
||||
글자크기 <input type="text" name="cs_etc_4[<?= $css_index ?>]" value="<?= $de['intro']['cs_etc_4'] ?>"
|
||||
size="5" /> px
|
||||
글자크기 <input type="text" name="cs_etc_4[<?= $css_index ?>]"
|
||||
value="<?= $de['intro']['cs_etc_4'] ?>" size="5" /> px
|
||||
|
||||
글자모양 <input type="text" name="cs_etc_5[<?= $css_index ?>]" value="<?= $de['intro']['cs_etc_5'] ?>"
|
||||
size="30">
|
||||
글자모양 <input type="text" name="cs_etc_5[<?= $css_index ?>]"
|
||||
value="<?= $de['intro']['cs_etc_5'] ?>" size="30">
|
||||
</td>
|
||||
</tr <?php $css_index++; ?>>
|
||||
</tbody>
|
||||
|
|
@ -1060,14 +1069,14 @@ $editor_list = array();
|
|||
좌측상단 <input type="text" name="cs_etc_9[<?= $css_index ?>]" value="<?= $de['board_notice']['cs_etc_9'] ?>"
|
||||
size="3" /> px
|
||||
|
||||
우측상단 <input type="text" name="cs_etc_10[<?= $css_index ?>]" value="<?= $de['board_notice']['cs_etc_10'] ?>"
|
||||
size="3" /> px
|
||||
우측상단 <input type="text" name="cs_etc_10[<?= $css_index ?>]"
|
||||
value="<?= $de['board_notice']['cs_etc_10'] ?>" size="3" /> px
|
||||
|
||||
우측하단 <input type="text" name="cs_etc_11[<?= $css_index ?>]" value="<?= $de['board_notice']['cs_etc_11'] ?>"
|
||||
size="3" /> px
|
||||
우측하단 <input type="text" name="cs_etc_11[<?= $css_index ?>]"
|
||||
value="<?= $de['board_notice']['cs_etc_11'] ?>" size="3" /> px
|
||||
|
||||
좌측하단 <input type="text" name="cs_etc_12[<?= $css_index ?>]" value="<?= $de['board_notice']['cs_etc_12'] ?>"
|
||||
size="3" /> px
|
||||
좌측하단 <input type="text" name="cs_etc_12[<?= $css_index ?>]"
|
||||
value="<?= $de['board_notice']['cs_etc_12'] ?>" size="3" /> px
|
||||
</td>
|
||||
</tr <?php $css_index++; ?>>
|
||||
<tr>
|
||||
|
|
@ -1480,7 +1489,8 @@ $editor_list = array();
|
|||
<option value="left bottom" <?= $de['mmb_contain_bak']['cs_etc_4'] == 'left bottom' ? "selected" : "" ?>>왼쪽
|
||||
하단</option>
|
||||
|
||||
<option value="center top" <?= $de['mmb_contain_bak']['cs_etc_4'] == 'center top' ? "selected" : "" ?>>중간 상단
|
||||
<option value="center top" <?= $de['mmb_contain_bak']['cs_etc_4'] == 'center top' ? "selected" : "" ?>>중간
|
||||
상단
|
||||
</option>
|
||||
<option value="center middle" <?= $de['mmb_contain_bak']['cs_etc_4'] == 'center middle' ? "selected" : "" ?>>중간 중단</option>
|
||||
<option value="center bottom" <?= $de['mmb_contain_bak']['cs_etc_4'] == 'center bottom' ? "selected" : "" ?>>중간 하단</option>
|
||||
|
|
@ -1497,7 +1507,8 @@ $editor_list = array();
|
|||
배경크기
|
||||
<select name="cs_etc_5[<?= $css_index ?>]">
|
||||
<option value="">원본크기</option>
|
||||
<option value="contain" <?= $de['mmb_contain_bak']['cs_etc_5'] == 'contain' ? "selected" : "" ?>>맞춤</option>
|
||||
<option value="contain" <?= $de['mmb_contain_bak']['cs_etc_5'] == 'contain' ? "selected" : "" ?>>맞춤
|
||||
</option>
|
||||
<option value="cover" <?= $de['mmb_contain_bak']['cs_etc_5'] == 'cover' ? "selected" : "" ?>>꽉참</option>
|
||||
<option value="100% 100%" <?= $de['mmb_contain_bak']['cs_etc_5'] == '100% 100%' ? "selected" : "" ?>>늘이기
|
||||
</option>
|
||||
|
|
|
|||
|
|
@ -124,7 +124,8 @@ if ($css['intro'][5])
|
|||
|
||||
@media all and (min-width: <?= ($tab_width + 1) ?>px) {
|
||||
.admin-preview-box,
|
||||
html.single:before { <?php
|
||||
html.single:before {
|
||||
<?php
|
||||
if ($css['background'][0])
|
||||
echo "background-image:url('{$css['background'][0]}'); ";
|
||||
if ($css['background'][1])
|
||||
|
|
@ -140,7 +141,8 @@ if ($css['background'][5])
|
|||
|
||||
@media all and (max-width: <?= $tab_width ?>px) {
|
||||
.admin-preview-box,
|
||||
html.single:before { <?php
|
||||
html.single:before {
|
||||
<?php
|
||||
if ($css['m_background'][0])
|
||||
echo "background-image:url('{$css['m_background'][0]}'); ";
|
||||
if ($css['m_background'][1])
|
||||
|
|
@ -230,7 +232,8 @@ if ($css['menu_tooltip'][8])
|
|||
echo "font-family:{$css['menu_tooltip'][9]}, sans-serif; "; ?>}
|
||||
|
||||
@media all and (min-width: <?= ($tab_width + 1) ?>px) {
|
||||
#header { <?php
|
||||
#header {
|
||||
<?php
|
||||
switch ($css['use_header'][0]) {
|
||||
case "": // 좌측 배치
|
||||
echo "top:0; bottom:0; left:20px; ";
|
||||
|
|
@ -246,7 +249,8 @@ switch ($css['use_header'][0]) {
|
|||
break;
|
||||
}
|
||||
?>}
|
||||
#header .gnbWrap { <?php
|
||||
#header .gnbWrap {
|
||||
<?php
|
||||
switch ($css['use_header'][0]) {
|
||||
case "": // 좌측 배치
|
||||
echo "top:50%; left:0; transform:translateY(-50%); -webkit-transform:translateY(-50%); ";
|
||||
|
|
@ -262,7 +266,8 @@ switch ($css['use_header'][0]) {
|
|||
break;
|
||||
}
|
||||
?>}
|
||||
#header .gnbWrap li { <?php
|
||||
#header .gnbWrap li {
|
||||
<?php
|
||||
switch ($css['use_header'][0]) {
|
||||
case "": // 좌측 배치
|
||||
echo " ";
|
||||
|
|
@ -278,7 +283,8 @@ switch ($css['use_header'][0]) {
|
|||
break;
|
||||
}
|
||||
?>}
|
||||
#header .gnbWrap li.line { <?php
|
||||
#header .gnbWrap li.line {
|
||||
<?php
|
||||
switch ($css['use_header'][0]) {
|
||||
case "": // 좌측 배치
|
||||
echo "display:block; position:relative; height:.5em; ";
|
||||
|
|
@ -294,7 +300,8 @@ switch ($css['use_header'][0]) {
|
|||
break;
|
||||
}
|
||||
?>}
|
||||
#header .gnbWrap .tooltips { <?php
|
||||
#header .gnbWrap .tooltips {
|
||||
<?php
|
||||
switch ($css['use_header'][0]) {
|
||||
case "": // 좌측 배치
|
||||
echo "margin-left:.5em; left:80%; top:50%; transform:translateY(-50%); -webkit-transform:translateY(-50%); ";
|
||||
|
|
@ -310,7 +317,8 @@ switch ($css['use_header'][0]) {
|
|||
break;
|
||||
}
|
||||
?>}
|
||||
#header .gnbWrap a:hover .tooltips { <?php
|
||||
#header .gnbWrap a:hover .tooltips {
|
||||
<?php
|
||||
switch ($css['use_header'][0]) {
|
||||
case "": // 좌측 배치
|
||||
echo "left:100%; ";
|
||||
|
|
@ -327,13 +335,15 @@ switch ($css['use_header'][0]) {
|
|||
}
|
||||
?>}
|
||||
|
||||
#header .gnbWrap .icons { <?php
|
||||
#header .gnbWrap .icons {
|
||||
<?php
|
||||
if ($css['menu_icon'][10])
|
||||
echo "color:" . hex2rgba($css['menu_icon'][10], $css['menu_icon'][11]) . "; ";
|
||||
if ($css['menu_icon'][13] == 'diamond')
|
||||
echo "height:3.3em; ";
|
||||
?>}
|
||||
#header .gnbWrap .icons:before { <?php
|
||||
#header .gnbWrap .icons:before {
|
||||
<?php
|
||||
switch ($css['menu_icon'][13]) {
|
||||
case "diamond":
|
||||
echo "top:50%; left:50%; right:auto; bottom:auto; width:2.1em; height:2.1em; margin:-1.05em 0 0 -1.05em; transform:rotate(-45deg); -webkit-transform:rotate(-45deg); ";
|
||||
|
|
@ -356,7 +366,8 @@ if ($css['menu_icon'][8])
|
|||
if ($css['menu_icon'][9])
|
||||
echo "border-width:{$css['menu_icon'][9]}px; ";
|
||||
?>}
|
||||
#header .gnbWrap .tooltips { <?php
|
||||
#header .gnbWrap .tooltips {
|
||||
<?php
|
||||
if ($css['menu_tooltip'][0])
|
||||
echo "background-color:" . hex2rgba($css['menu_tooltip'][0], $css['menu_tooltip'][1]) . "; ";
|
||||
if ($css['menu_tooltip'][2])
|
||||
|
|
@ -374,21 +385,25 @@ if ($css['menu_tooltip'][8])
|
|||
?>}
|
||||
}
|
||||
@media all and (max-width: <?= $tab_width ?>px) {
|
||||
#mo_header { <?php
|
||||
#mo_header {
|
||||
<?php
|
||||
if ($css['menu_tooltip'][0])
|
||||
echo "background-color:" . hex2rgba($css['menu_tooltip'][0], $css['menu_tooltip'][1]) . "; ";
|
||||
if ($css['menu_tooltip'][2])
|
||||
echo "color:" . hex2rgba($css['menu_tooltip'][2], $css['menu_tooltip'][3]) . "; ";
|
||||
?>}
|
||||
#mo_header .gnbWrap a { <?php
|
||||
#mo_header .gnbWrap a {
|
||||
<?php
|
||||
if ($css['menu_tooltip'][2])
|
||||
echo "color:" . hex2rgba($css['menu_tooltip'][2], $css['menu_tooltip'][3]) . "; ";
|
||||
?>}
|
||||
#mo_header .gnbWrap li.line { <?php
|
||||
#mo_header .gnbWrap li.line {
|
||||
<?php
|
||||
if ($css['menu_tooltip'][2])
|
||||
echo "background-color:" . hex2rgba($css['menu_tooltip'][2], $css['menu_tooltip'][3]) . "; ";
|
||||
?>}
|
||||
body.open-gnb .control-mobile-menu { <?php
|
||||
body.open-gnb .control-mobile-menu {
|
||||
<?php
|
||||
if ($css['menu_tooltip'][2])
|
||||
echo "color:" . hex2rgba($css['menu_tooltip'][2], $css['menu_tooltip'][3]) . "; ";
|
||||
?>}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ include_once('./_common.php');
|
|||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link media="all" type="text/css" rel="stylesheet"
|
||||
href="<?= G5_CSS_URL ?>/default.css?v=<?= $config['cf_css_version'] ?>">
|
||||
<link media="all" type="text/css" rel="stylesheet" href="<?= G5_CSS_URL ?>/style.css?v=<?= $config['cf_css_version'] ?>">
|
||||
<link media="all" type="text/css" rel="stylesheet"
|
||||
href="<?= G5_CSS_URL ?>/style.css?v=<?= $config['cf_css_version'] ?>">
|
||||
<link media="all" type="text/css" rel="stylesheet"
|
||||
href="<?= G5_URL ?>/adm/css/guide.css?v=<?= $config['cf_css_version'] ?>">
|
||||
<link media="all" type="text/css" rel="stylesheet"
|
||||
|
|
|
|||
|
|
@ -1,20 +1,21 @@
|
|||
<?php
|
||||
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
check_site_auth($is_member);
|
||||
$begin_time = get_microtime();
|
||||
|
||||
if (!isset($g5['title'])) {
|
||||
$g5['title'] = $config['cf_title'];
|
||||
$g5_head_title = $g5['title'];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$g5_head_title = $g5['title']; // 상태바에 표시될 제목
|
||||
$g5_head_title .= " | " . $config['cf_title'];
|
||||
}
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
|
|
@ -59,4 +60,5 @@ if(!defined('G5_IS_ADMIN'))
|
|||
echo $config['cf_add_script'];
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -2,8 +2,5 @@
|
|||
include_once('./_common.php');
|
||||
|
||||
goto_url('./site_config_form.php');
|
||||
?>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -26,4 +26,3 @@ if ($url)
|
|||
goto_url("{$url}?$qstr&w=u&mb_id=$mb_id");
|
||||
else
|
||||
goto_url("./member_list.php?$qstr");
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ include_once('./_common.php');
|
|||
|
||||
auth_check($auth[$sub_menu], 'w');
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
if ($w == '') {
|
||||
$required_mb_id = 'required';
|
||||
$required_mb_id_class = 'required alnum_';
|
||||
$required_mb_password = 'required';
|
||||
|
|
@ -15,9 +14,7 @@ if ($w == '')
|
|||
$mb['mb_open'] = 1;
|
||||
$mb['mb_level'] = $config['cf_register_level'];
|
||||
$html_title = '추가';
|
||||
}
|
||||
else if ($w == 'u')
|
||||
{
|
||||
} else if ($w == 'u') {
|
||||
$mb = get_member($mb_id);
|
||||
if (!$mb['mb_id'])
|
||||
alert('존재하지 않는 회원자료입니다.');
|
||||
|
|
@ -52,8 +49,7 @@ else if ($w == 'u')
|
|||
$mb['mb_8'] = get_text($mb['mb_8']);
|
||||
$mb['mb_9'] = get_text($mb['mb_9']);
|
||||
$mb['mb_10'] = get_text($mb['mb_10']);
|
||||
}
|
||||
else
|
||||
} else
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||
|
||||
// 본인확인방법
|
||||
|
|
@ -131,8 +127,10 @@ if(!isset($mb['mb_email_certify2'])) {
|
|||
sql_query(" ALTER TABLE {$g5['member_table']} ADD `mb_email_certify2` varchar(255) NOT NULL DEFAULT '' AFTER `mb_email_certify` ", false);
|
||||
}
|
||||
|
||||
if ($mb['mb_intercept_date']) $g5['title'] = "차단된 ";
|
||||
else $g5['title'] .= "";
|
||||
if ($mb['mb_intercept_date'])
|
||||
$g5['title'] = "차단된 ";
|
||||
else
|
||||
$g5['title'] .= "";
|
||||
$g5['title'] .= '회원 ' . $html_title;
|
||||
include_once('./admin.head.php');
|
||||
|
||||
|
|
@ -140,7 +138,8 @@ include_once('./admin.head.php');
|
|||
add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||
?>
|
||||
|
||||
<form name="fmember" id="fmember" action="./member_form_update.php" onsubmit="return fmember_submit(this);" method="post" enctype="multipart/form-data">
|
||||
<form name="fmember" id="fmember" action="./member_form_update.php" onsubmit="return fmember_submit(this);"
|
||||
method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||
|
|
@ -162,23 +161,29 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||
<tr>
|
||||
<th scope="row"><label for="mb_id">아이디<?php echo $sound_only ?></label></th>
|
||||
<td>
|
||||
<input type="text" name="mb_id" value="<?php echo $mb['mb_id'] ?>" id="mb_id" <?php echo $required_mb_id ?> class="frm_input <?php echo $required_mb_id_class ?>" size="15" minlength="3" maxlength="20">
|
||||
<?php if ($w=='u'){ ?><a href="./boardgroupmember_form.php?mb_id=<?php echo $mb['mb_id'] ?>">접근가능그룹보기</a><?php } ?>
|
||||
<input type="text" name="mb_id" value="<?php echo $mb['mb_id'] ?>" id="mb_id" <?php echo $required_mb_id ?>
|
||||
class="frm_input <?php echo $required_mb_id_class ?>" size="15" minlength="3" maxlength="20">
|
||||
<?php if ($w == 'u') { ?><a
|
||||
href="./boardgroupmember_form.php?mb_id=<?php echo $mb['mb_id'] ?>">접근가능그룹보기</a><?php } ?>
|
||||
</td>
|
||||
<th scope="row"><label for="mb_password">비밀번호<?php echo $sound_only ?></label></th>
|
||||
<td><input type="password" name="mb_password" id="mb_password" <?php echo $required_mb_password ?> class="frm_input <?php echo $required_mb_password ?>" size="15" maxlength="20"></td>
|
||||
<td><input type="password" name="mb_password" id="mb_password" <?php echo $required_mb_password ?>
|
||||
class="frm_input <?php echo $required_mb_password ?>" size="15" maxlength="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_name">닉네임<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="mb_name" value="<?php echo $mb['mb_name'] ?>" id="mb_name" required class="required frm_input" size="15" minlength="2" maxlength="20"></td>
|
||||
<td><input type="text" name="mb_name" value="<?php echo $mb['mb_name'] ?>" id="mb_name" required
|
||||
class="required frm_input" size="15" minlength="2" maxlength="20"></td>
|
||||
<th scope="row"><label for="mb_level">회원 권한</label></th>
|
||||
<td><?php echo get_member_level_select('mb_level', 1, $member['mb_level'], $mb['mb_level']) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_email">E-mail<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="mb_email" value="<?php echo $mb['mb_email'] ?>" id="mb_email" maxlength="100" required class="required frm_input email" size="30"></td>
|
||||
<td><input type="text" name="mb_email" value="<?php echo $mb['mb_email'] ?>" id="mb_email" maxlength="100"
|
||||
required class="required frm_input email" size="30"></td>
|
||||
<th scope="row"><label for="mb_birth">생년<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="mb_birth" value="<?php echo $mb['mb_birth'] ?>" id="mb_birth" maxlength="100" class="frm_input" size="5"></td>
|
||||
<td><input type="text" name="mb_birth" value="<?php echo $mb['mb_birth'] ?>" id="mb_birth" maxlength="100"
|
||||
class="frm_input" size="5"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_open">정보 공개</label></th>
|
||||
|
|
@ -224,21 +229,26 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||
<?php if ($config['cf_use_recommend']) { // 추천인 사용 ?>
|
||||
<tr>
|
||||
<th scope="row">추천인</th>
|
||||
<td colspan="3"><?php echo ($mb['mb_recommend'] ? get_text($mb['mb_recommend']) : '없음'); // 081022 : CSRF 보안 결함으로 인한 코드 수정 ?></td>
|
||||
<td colspan="3">
|
||||
<?php echo ($mb['mb_recommend'] ? get_text($mb['mb_recommend']) : '없음'); // 081022 : CSRF 보안 결함으로 인한 코드 수정 ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_leave_date">탈퇴일자</label></th>
|
||||
<td>
|
||||
<input type="text" name="mb_leave_date" value="<?php echo $mb['mb_leave_date'] ?>" id="mb_leave_date" class="frm_input" maxlength="8">
|
||||
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_leave_date_set_today" onclick="if (this.form.mb_leave_date.value==this.form.mb_leave_date.defaultValue) {
|
||||
<input type="text" name="mb_leave_date" value="<?php echo $mb['mb_leave_date'] ?>" id="mb_leave_date"
|
||||
class="frm_input" maxlength="8">
|
||||
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_leave_date_set_today"
|
||||
onclick="if (this.form.mb_leave_date.value==this.form.mb_leave_date.defaultValue) {
|
||||
this.form.mb_leave_date.value=this.value; } else { this.form.mb_leave_date.value=this.form.mb_leave_date.defaultValue; }">
|
||||
<label for="mb_leave_date_set_today">탈퇴일을 오늘로 지정</label>
|
||||
</td>
|
||||
<th scope="row">접근차단일자</th>
|
||||
<td>
|
||||
<input type="text" name="mb_intercept_date" value="<?php echo $mb['mb_intercept_date'] ?>" id="mb_intercept_date" class="frm_input" maxlength="8">
|
||||
<input type="text" name="mb_intercept_date" value="<?php echo $mb['mb_intercept_date'] ?>"
|
||||
id="mb_intercept_date" class="frm_input" maxlength="8">
|
||||
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_intercept_date_set_today" onclick="if
|
||||
(this.form.mb_intercept_date.value==this.form.mb_intercept_date.defaultValue) { this.form.mb_intercept_date.value=this.value; } else {
|
||||
this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
||||
|
|
@ -249,7 +259,8 @@ this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
|||
<?php for ($i = 1; $i <= 10; $i++) { ?>
|
||||
<tr style="display: none;">
|
||||
<th scope="row"><label for="mb_<?php echo $i ?>">여분 필드 <?php echo $i ?></label></th>
|
||||
<td colspan="3"><input type="text" name="mb_<?php echo $i ?>" value="<?php echo $mb['mb_'.$i] ?>" id="mb_<?php echo $i ?>" class="frm_input" size="30" maxlength="255"></td>
|
||||
<td colspan="3"><input type="text" name="mb_<?php echo $i ?>" value="<?php echo $mb['mb_' . $i] ?>"
|
||||
id="mb_<?php echo $i ?>" class="frm_input" size="30" maxlength="255"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
|
|
@ -267,8 +278,7 @@ this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
|||
</form>
|
||||
|
||||
<script>
|
||||
function fmember_submit(f)
|
||||
{
|
||||
function fmember_submit(f) {
|
||||
if (!f.mb_icon.value.match(/\.gif$/i) && f.mb_icon.value) {
|
||||
alert('아이콘은 gif 파일만 가능합니다.');
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -68,8 +68,7 @@ $sql_common = " mb_name = '{$_POST['mb_name']}',
|
|||
mb_9 = '{$_POST['mb_9']}',
|
||||
mb_10 = '{$_POST['mb_10']}' ";
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
if ($w == '') {
|
||||
$mb = get_member($mb_id);
|
||||
if ($mb['mb_id'])
|
||||
alert('이미 존재하는 회원아이디입니다.\\nID : ' . $mb['mb_id'] . '\\n이름 : ' . $mb['mb_name'] . '\\n닉네임 : ' . $mb['mb_nick'] . '\\n메일 : ' . $mb['mb_email']);
|
||||
|
|
@ -87,9 +86,7 @@ if ($w == '')
|
|||
alert('이미 존재하는 이메일입니다.\\nID : ' . $row['mb_id'] . '\\n이름 : ' . $row['mb_name'] . '\\n닉네임 : ' . $row['mb_nick'] . '\\n메일 : ' . $row['mb_email']);
|
||||
|
||||
sql_query(" insert into {$g5['member_table']} set mb_id = '{$mb_id}', mb_password = '" . get_encrypt_string($mb_password) . "', mb_datetime = '" . G5_TIME_YMDHIS . "', mb_ip = '{$_SERVER['REMOTE_ADDR']}', mb_email_certify = '" . G5_TIME_YMDHIS . "', {$sql_common} ");
|
||||
}
|
||||
else if ($w == 'u')
|
||||
{
|
||||
} else if ($w == 'u') {
|
||||
$mb = get_member($mb_id);
|
||||
if (!$mb['mb_id'])
|
||||
alert('존재하지 않는 회원자료입니다.');
|
||||
|
|
@ -159,9 +156,7 @@ else if ($w == 'u')
|
|||
{$sql_certify}
|
||||
where mb_id = '{$mb_id}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else
|
||||
} else
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||
|
||||
goto_url('./member_form.php?'.$qstr.'&w=u&mb_id='.$mb_id, false);
|
||||
?>
|
||||
goto_url('./member_form.php?' . $qstr . '&w=u&mb_id=' . $mb_id);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@ $total_count = $row['cnt'];
|
|||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1)
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
// 탈퇴회원수
|
||||
|
|
@ -70,8 +71,10 @@ $colspan = 10;
|
|||
<div class="local_ov01 local_ov">
|
||||
<?php echo $listall ?>
|
||||
총회원수 <?php echo number_format($total_count) ?>명 중,
|
||||
<a href="?sst=mb_intercept_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>">차단 <?php echo number_format($intercept_count) ?></a>명,
|
||||
<a href="?sst=mb_leave_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>">탈퇴 <?php echo number_format($leave_count) ?></a>명
|
||||
<a href="?sst=mb_intercept_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>">차단
|
||||
<?php echo number_format($intercept_count) ?></a>명,
|
||||
<a href="?sst=mb_leave_date&sod=desc&sfl=<?php echo $sfl ?>&stx=<?php echo $stx ?>">탈퇴
|
||||
<?php echo number_format($leave_count) ?></a>명
|
||||
</div>
|
||||
|
||||
<div class="local_desc01 local_desc">
|
||||
|
|
@ -97,7 +100,8 @@ $colspan = 10;
|
|||
</form>
|
||||
<br />
|
||||
|
||||
<form name="fmemberlist" id="fmemberlist" action="./member_list_update.php" onsubmit="return fmemberlist_submit(this);" method="post">
|
||||
<form name="fmemberlist" id="fmemberlist" action="./member_list_update.php" onsubmit="return fmemberlist_submit(this);"
|
||||
method="post">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
|
|
@ -137,8 +141,7 @@ $colspan = 10;
|
|||
if ($row['mb_leave_date']) {
|
||||
$mb_id = $mb_id;
|
||||
$leave_msg = '<span class="mb_leave_msg">탈퇴함</span>';
|
||||
}
|
||||
else if ($row['mb_intercept_date']) {
|
||||
} else if ($row['mb_intercept_date']) {
|
||||
$mb_id = $mb_id;
|
||||
$intercept_msg = '<span class="mb_intercept_msg">차단됨</span>';
|
||||
$intercept_title = '차단해제';
|
||||
|
|
@ -150,7 +153,8 @@ $colspan = 10;
|
|||
|
||||
<tr class="<?php echo $bg; ?>">
|
||||
<td>
|
||||
<input type="hidden" name="mb_id[<?php echo $i ?>]" value="<?php echo $row['mb_id'] ?>" id="mb_id_<?php echo $i ?>">
|
||||
<input type="hidden" name="mb_id[<?php echo $i ?>]" value="<?php echo $row['mb_id'] ?>"
|
||||
id="mb_id_<?php echo $i ?>">
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
|
||||
</td>
|
||||
|
||||
|
|
@ -158,8 +162,10 @@ $colspan = 10;
|
|||
<td><?php echo get_text($row['mb_name']); ?></td>
|
||||
<td>
|
||||
<?php
|
||||
if ($leave_msg || $intercept_msg) echo $leave_msg.' '.$intercept_msg;
|
||||
else echo "정상";
|
||||
if ($leave_msg || $intercept_msg)
|
||||
echo $leave_msg . ' ' . $intercept_msg;
|
||||
else
|
||||
echo "정상";
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
|
|
@ -199,8 +205,7 @@ $colspan = 10;
|
|||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?' . $qstr . '&page='); ?>
|
||||
|
||||
<script>
|
||||
function fmemberlist_submit(f)
|
||||
{
|
||||
function fmemberlist_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert(document.pressed + " 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@ auth_check($auth[$sub_menu], "d");
|
|||
check_admin_token();
|
||||
|
||||
$msg = "";
|
||||
for ($i=0; $i<count($chk); $i++)
|
||||
{
|
||||
for ($i = 0; $i < count($chk); $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = $_POST['chk'][$i];
|
||||
|
||||
|
|
@ -34,4 +33,3 @@ if ($msg)
|
|||
echo "<script type='text/javascript'> alert('$msg'); </script>";
|
||||
|
||||
goto_url("./member_list.php?$qstr");
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@ auth_check($auth[$sub_menu], 'w');
|
|||
|
||||
if ($_POST['act_button'] == "선택수정") {
|
||||
|
||||
for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
{
|
||||
for ($i = 0; $i < count($_POST['chk']); $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = $_POST['chk'][$i];
|
||||
|
||||
|
|
@ -40,8 +39,7 @@ if ($_POST['act_button'] == "선택수정") {
|
|||
|
||||
} else if ($_POST['act_button'] == "선택삭제") {
|
||||
|
||||
for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
{
|
||||
for ($i = 0; $i < count($_POST['chk']); $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = $_POST['chk'][$i];
|
||||
|
||||
|
|
@ -62,8 +60,7 @@ if ($_POST['act_button'] == "선택수정") {
|
|||
}
|
||||
} else if ($_POST['act_button'] == "완전삭제") {
|
||||
|
||||
for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
{
|
||||
for ($i = 0; $i < count($_POST['chk']); $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = $_POST['chk'][$i];
|
||||
|
||||
|
|
@ -89,4 +86,3 @@ if ($msg)
|
|||
alert($msg);
|
||||
|
||||
goto_url('./member_list.php?' . $qstr);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@ if($new == 'new' || !$code) {
|
|||
}
|
||||
?>
|
||||
<style>
|
||||
body{min-width:100%;}
|
||||
body {
|
||||
min-width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="menu_frm" class="new_win">
|
||||
|
|
@ -71,8 +73,7 @@ $(function() {
|
|||
});
|
||||
});
|
||||
|
||||
function add_menu_list(name, link, code)
|
||||
{
|
||||
function add_menu_list(name, link, code) {
|
||||
var $menulist = $("#menulist", opener.document);
|
||||
var ms = new Date().getTime();
|
||||
var sub_menu_class;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,8 @@ if($sql) {
|
|||
<td class="td_mngsmall">
|
||||
<input type="hidden" name="subject[]" value="<?php echo preg_replace('/[\'\"]/', '', $row['subject']); ?>">
|
||||
<input type="hidden" name="link[]" value="<?php echo $link; ?>">
|
||||
<button type="button" class="add_select"><span class="sound_only"><?php echo $row['subject']; ?> </span>선택</button>
|
||||
<button type="button" class="add_select"><span class="sound_only"><?php echo $row['subject']; ?>
|
||||
</span>선택</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
$sub_menu = "100400";
|
||||
include_once('./_common.php');
|
||||
|
||||
if ($is_admin != 'super') alert('최고관리자만 접근 가능합니다.');
|
||||
if ($is_admin != 'super')
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
|
||||
|
||||
$sql = " select * from {$g5['menu_table']} order by me_order*1, me_id ";
|
||||
|
|
@ -17,14 +18,17 @@ $colspan = 8;
|
|||
<p><strong>주의!</strong> 메뉴설정 작업 후 반드시 <strong>확인</strong>을 누르셔야 저장됩니다.</p>
|
||||
</div>
|
||||
<div class="local_desc01 local_desc">
|
||||
<p>아이콘 항목에 사용할 구글 아이콘 이름을 입력해주세요. ( ex. <span style="color:red"><span class="material-icons"><strong>home</strong></span></span> ▶ <strong>home</strong> 만 입력하기 )</p>
|
||||
<p>아이콘 항목에 사용할 구글 아이콘 이름을 입력해주세요. ( ex. <span style="color:red"><span
|
||||
class="material-icons"><strong>home</strong></span></span> ▶ <strong>home</strong> 만 입력하기 )</p>
|
||||
</div>
|
||||
|
||||
<form name="fmenulist" id="fmenulist" method="post" action="./menu_list_update.php" onsubmit="return fmenulist_submit(this);" enctype="multipart/form-data">
|
||||
<form name="fmenulist" id="fmenulist" method="post" action="./menu_list_update.php"
|
||||
onsubmit="return fmenulist_submit(this);" enctype="multipart/form-data">
|
||||
<input type="hidden" name="token" value="">
|
||||
|
||||
<div class="btn_confirm">
|
||||
<a href="https://fonts.google.com/icons?icon.query=house&icon.set=Material+Icons" target="_blank" class="btn ty3" title="구글 아이콘 목록 보기"><span class="material-icons">app_registration</span></a>
|
||||
<a href="https://fonts.google.com/icons?icon.query=house&icon.set=Material+Icons" target="_blank" class="btn ty3"
|
||||
title="구글 아이콘 목록 보기"><span class="material-icons">app_registration</span></a>
|
||||
<button type="button" onclick="return add_menu();" class="ty2"><span class="material-icons">add</span></button>
|
||||
<div class="btn">
|
||||
<span class="material-icons">save</span>
|
||||
|
|
@ -71,21 +75,25 @@ $colspan = 8;
|
|||
$replace = array('"', ''');
|
||||
$me_name = str_replace($search, $replace, $row['me_name']);
|
||||
?>
|
||||
<tr class="<?php echo $bg; ?> menu_list menu_group_<?php echo substr($row['me_code'], 0, 2); ?>" data-name="<?php echo $me_name; ?>">
|
||||
<tr class="<?php echo $bg; ?> menu_list menu_group_<?php echo substr($row['me_code'], 0, 2); ?>"
|
||||
data-name="<?php echo $me_name; ?>">
|
||||
|
||||
<td class="td_category<?php echo $sub_menu_class; ?>">
|
||||
<input type="hidden" name="code[]" value="<?php echo substr($row['me_code'], 0, 2) ?>" />
|
||||
<input type="hidden" name="me_level[]" value="<?php echo $row['me_level'] ?>" />
|
||||
<input type="text" name="me_name[]" value="<?php echo $me_name; ?>" required class="required frm_input full_input" />
|
||||
<input type="text" name="me_name[]" value="<?php echo $me_name; ?>" required
|
||||
class="required frm_input full_input" />
|
||||
</td>
|
||||
<td>
|
||||
<i class="material-icons"><?= $row['me_icon'] ?></i>
|
||||
</td>
|
||||
<td class="txt-left">
|
||||
<input type="text" name="me_icon[]" value="<?php echo get_text($row['me_icon']) ?>" class=" frm_input full_input" />
|
||||
<input type="text" name="me_icon[]" value="<?php echo get_text($row['me_icon']) ?>"
|
||||
class=" frm_input full_input" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="me_link[]" value="<?php echo $row['me_link'] ?>" id="me_link_<?php echo $i; ?>" class="frm_input full_input" />
|
||||
<input type="text" name="me_link[]" value="<?php echo $row['me_link'] ?>" id="me_link_<?php echo $i; ?>"
|
||||
class="frm_input full_input" />
|
||||
</td>
|
||||
<td class="td_mng">
|
||||
<select name="me_target[]" class=" frm_input full_input">
|
||||
|
|
@ -94,7 +102,8 @@ $colspan = 8;
|
|||
</select>
|
||||
</td>
|
||||
<td class="td_num order">
|
||||
<input type="text" name="me_order[]" value="<?php echo $row['me_order'] ?>" id="me_order_<?php echo $i; ?>" class="frm_input full_input">
|
||||
<input type="text" name="me_order[]" value="<?php echo $row['me_order'] ?>" id="me_order_<?php echo $i; ?>"
|
||||
class="frm_input full_input">
|
||||
</td>
|
||||
|
||||
<td class="td_mng">
|
||||
|
|
@ -147,8 +156,7 @@ $(function() {
|
|||
});
|
||||
});
|
||||
|
||||
function add_menu()
|
||||
{
|
||||
function add_menu() {
|
||||
var max_code = base_convert(0, 10, 36);
|
||||
$("#menulist tr.menu_list").each(function () {
|
||||
var me_code = $(this).find("input[name='code[]']").val().substr(0, 2);
|
||||
|
|
@ -161,8 +169,7 @@ function add_menu()
|
|||
return false;
|
||||
}
|
||||
|
||||
function add_submenu(code)
|
||||
{
|
||||
function add_submenu(code) {
|
||||
var url = "./menu_form.php?code=" + code;
|
||||
window.open(url, "add_menu", "left=100,top=100,width=550,height=650,scrollbars=yes,resizable=yes");
|
||||
return false;
|
||||
|
|
@ -179,8 +186,7 @@ function base_convert(number, frombase, tobase) {
|
|||
.toString(tobase | 0);
|
||||
}
|
||||
|
||||
function fmenulist_submit(f)
|
||||
{
|
||||
function fmenulist_submit(f) {
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -67,4 +67,3 @@ for ($i=0; $i<$count; $i++) {
|
|||
}
|
||||
|
||||
goto_url('./menu_list.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,5 @@ $sub_menu = "100500";
|
|||
include_once('./_common.php');
|
||||
|
||||
check_demo();
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
phpinfo();
|
||||
?>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$sub_menu = "900100";
|
||||
$sub_menu = "900200";
|
||||
include_once("./_common.php");
|
||||
|
||||
if ($is_admin != "super")
|
||||
|
|
@ -31,8 +31,10 @@ include_once("./admin.head.php");
|
|||
echo $list_tag_st;
|
||||
while ($file = readdir($dir)) {
|
||||
|
||||
if (!strstr($file,'sess_')) continue;
|
||||
if (strpos($file,'sess_')!=0) continue;
|
||||
if (!strstr($file, 'sess_'))
|
||||
continue;
|
||||
if (strpos($file, 'sess_') != 0)
|
||||
continue;
|
||||
|
||||
$session_file = G5_DATA_PATH . '/session/' . $file;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@ $main_co = sql_fetch($sql);
|
|||
?>
|
||||
|
||||
|
||||
<form name="fviewerform" id="fviewerform" method="post" onsubmit="return fviewerform_submit(this);" enctype="multipart/form-data">
|
||||
<form name="fviewerform" id="fviewerform" method="post" onsubmit="return fviewerform_submit(this);"
|
||||
enctype="multipart/form-data">
|
||||
<input type="hidden" name="token" value="" id="token">
|
||||
<div class="btn_confirm">
|
||||
<div class="btn">
|
||||
|
|
@ -49,8 +50,7 @@ $main_co = sql_fetch($sql);
|
|||
</form>
|
||||
|
||||
<script>
|
||||
function fviewerform_submit(f)
|
||||
{
|
||||
function fviewerform_submit(f) {
|
||||
f.action = "./viewer_form_update.php";
|
||||
|
||||
<?php echo get_editor_js('main_content'); ?>
|
||||
|
|
@ -61,4 +61,3 @@ function fviewerform_submit(f)
|
|||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,4 @@ if(!$main_co['co_id']) {
|
|||
sql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
goto_url('./viewer_form.php', false);
|
||||
?>
|
||||
goto_url('./viewer_form.php');
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit;
|
||||
|
||||
include_once(G5_LIB_PATH . '/visit.lib.php');
|
||||
include_once('./admin.head.php');
|
||||
include_once(G5_PLUGIN_PATH . '/jquery-ui/datepicker.php');
|
||||
|
||||
if (empty($fr_date) || ! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date) ) $fr_date = G5_TIME_YMD;
|
||||
if (empty($to_date) || ! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $to_date) ) $to_date = G5_TIME_YMD;
|
||||
if (empty($fr_date) || !preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date))
|
||||
$fr_date = G5_TIME_YMD;
|
||||
if (empty($to_date) || !preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $to_date))
|
||||
$to_date = G5_TIME_YMD;
|
||||
|
||||
$file_data = basename($_SERVER['PHP_SELF']);
|
||||
|
||||
|
|
@ -19,28 +22,40 @@ $query_string = $qstr ? '?'.$qstr : '';
|
|||
<form name="fsearch" id="fsearch" class="local_sch01 local_sch" method="get">
|
||||
<div class="sch_last">
|
||||
<strong>기간별검색</strong>
|
||||
<input type="text" name="fr_date" value="<?php echo $fr_date ?>" id="fr_date" class="frm_input" size="11" maxlength="10">
|
||||
<input type="text" name="fr_date" value="<?php echo $fr_date ?>" id="fr_date" class="frm_input" size="11"
|
||||
maxlength="10">
|
||||
<label for="fr_date" class="sound_only">시작일</label>
|
||||
~
|
||||
<input type="text" name="to_date" value="<?php echo $to_date ?>" id="to_date" class="frm_input" size="11" maxlength="10">
|
||||
<input type="text" name="to_date" value="<?php echo $to_date ?>" id="to_date" class="frm_input" size="11"
|
||||
maxlength="10">
|
||||
<label for="to_date" class="sound_only">종료일</label>
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</div>
|
||||
</form>
|
||||
<br />
|
||||
<ul class="anchor">
|
||||
<li <?=$file_data == 'visit_list.php' ? "class='on'": ""?>><a href="./visit_list.php<?php echo $query_string ?>">접속자</a></li>
|
||||
<li <?=$file_data == 'visit_domain.php' ? "class='on'": ""?>><a href="./visit_domain.php<?php echo $query_string ?>">도메인</a></li>
|
||||
<li <?=$file_data == 'visit_browser.php' ? "class='on'": ""?>><a href="./visit_browser.php<?php echo $query_string ?>">브라우저</a></li>
|
||||
<li <?=$file_data == 'visit_os.php' ? "class='on'": ""?>><a href="./visit_os.php<?php echo $query_string ?>">운영체제</a></li>
|
||||
<li <?= $file_data == 'visit_list.php' ? "class='on'" : "" ?>><a href="./visit_list.php<?php echo $query_string ?>">접속자</a>
|
||||
</li>
|
||||
<li <?= $file_data == 'visit_domain.php' ? "class='on'" : "" ?>><a
|
||||
href="./visit_domain.php<?php echo $query_string ?>">도메인</a></li>
|
||||
<li <?= $file_data == 'visit_browser.php' ? "class='on'" : "" ?>><a
|
||||
href="./visit_browser.php<?php echo $query_string ?>">브라우저</a></li>
|
||||
<li <?= $file_data == 'visit_os.php' ? "class='on'" : "" ?>><a href="./visit_os.php<?php echo $query_string ?>">운영체제</a>
|
||||
</li>
|
||||
<?php if (version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE) { ?>
|
||||
<li <?=$file_data == 'visit_device.php' ? "class='on'": ""?>><a href="./visit_device.php<?php echo $query_string ?>">접속기기</a></li>
|
||||
<li <?= $file_data == 'visit_device.php' ? "class='on'" : "" ?>><a
|
||||
href="./visit_device.php<?php echo $query_string ?>">접속기기</a></li>
|
||||
<?php } ?>
|
||||
<li <?=$file_data == 'visit_hour.php' ? "class='on'": ""?>><a href="./visit_hour.php<?php echo $query_string ?>">시간</a></li>
|
||||
<li <?=$file_data == 'visit_week.php' ? "class='on'": ""?>><a href="./visit_week.php<?php echo $query_string ?>">요일</a></li>
|
||||
<li <?=$file_data == 'visit_date.php' ? "class='on'": ""?>><a href="./visit_date.php<?php echo $query_string ?>">일</a></li>
|
||||
<li <?=$file_data == 'visit_month.php' ? "class='on'": ""?>><a href="./visit_month.php<?php echo $query_string ?>">월</a></li>
|
||||
<li <?=$file_data == 'visit_year.php' ? "class='on'": ""?>><a href="./visit_year.php<?php echo $query_string ?>">년</a></li>
|
||||
<li <?= $file_data == 'visit_hour.php' ? "class='on'" : "" ?>><a href="./visit_hour.php<?php echo $query_string ?>">시간</a>
|
||||
</li>
|
||||
<li <?= $file_data == 'visit_week.php' ? "class='on'" : "" ?>><a href="./visit_week.php<?php echo $query_string ?>">요일</a>
|
||||
</li>
|
||||
<li <?= $file_data == 'visit_date.php' ? "class='on'" : "" ?>><a href="./visit_date.php<?php echo $query_string ?>">일</a>
|
||||
</li>
|
||||
<li <?= $file_data == 'visit_month.php' ? "class='on'" : "" ?>><a href="./visit_month.php<?php echo $query_string ?>">월</a>
|
||||
</li>
|
||||
<li <?= $file_data == 'visit_year.php' ? "class='on'" : "" ?>><a href="./visit_year.php<?php echo $query_string ?>">년</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
|
|
@ -48,8 +63,7 @@ $(function(){
|
|||
$("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" });
|
||||
});
|
||||
|
||||
function fvisit_submit(act)
|
||||
{
|
||||
function fvisit_submit(act) {
|
||||
var f = document.fvisit;
|
||||
f.action = act;
|
||||
f.submit();
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ while ($row=sql_fetch_array($result)) {
|
|||
|
||||
$arr[$s]++;
|
||||
|
||||
if ($arr[$s] > $max) $max = $arr[$s];
|
||||
if ($arr[$s] > $max)
|
||||
$max = $arr[$s];
|
||||
|
||||
$sum_count++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ $result = sql_query($sql);
|
|||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$arr[$row['vs_date']] = $row['cnt'];
|
||||
|
||||
if ($row['cnt'] > $max) $max = $row['cnt'];
|
||||
if ($row['cnt'] > $max)
|
||||
$max = $row['cnt'];
|
||||
|
||||
$sum_count += $row['cnt'];
|
||||
}
|
||||
|
|
@ -60,7 +61,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||
?>
|
||||
|
||||
<tr class="<?php echo $bg; ?>">
|
||||
<td class="td_category"><a href="./visit_list.php?fr_date=<?php echo $key ?>&to_date=<?php echo $key ?>"><?php echo $key ?></a></td>
|
||||
<td class="td_category"><a
|
||||
href="./visit_list.php?fr_date=<?php echo $key ?>&to_date=<?php echo $key ?>"><?php echo $key ?></a>
|
||||
</td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?php echo $s_rate ?>%"></span>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ $now_year = (int)substr(G5_TIME_YMD, 0, 4);
|
|||
접속자 로그를 삭제할 년도와 방법을 선택해주십시오.
|
||||
</div>
|
||||
|
||||
<form name="fvisitdelete" class="local_sch02 local_sch" method="post" action="./visit_delete_update.php" onsubmit="return form_submit(this);">
|
||||
<form name="fvisitdelete" class="local_sch02 local_sch" method="post" action="./visit_delete_update.php"
|
||||
onsubmit="return form_submit(this);">
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
|
|
@ -86,8 +87,7 @@ $now_year = (int)substr(G5_TIME_YMD, 0, 4);
|
|||
</form>
|
||||
|
||||
<script>
|
||||
function form_submit(f)
|
||||
{
|
||||
function form_submit(f) {
|
||||
var year = $("#year").val();
|
||||
var month = $("#month").val();
|
||||
var method = $("#method").val();
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ while ($row=sql_fetch_array($result)) {
|
|||
|
||||
$arr[$s]++;
|
||||
|
||||
if ($arr[$s] > $max) $max = $arr[$s];
|
||||
if ($arr[$s] > $max)
|
||||
$max = $arr[$s];
|
||||
|
||||
$sum_count++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ while ($row=sql_fetch_array($result)) {
|
|||
$s = preg_replace("/^(www\.|search\.|dirsearch\.|dir\.search\.|dir\.|kr\.search\.|myhome\.)(.*)/", "\\2", $s);
|
||||
$arr[$s]++;
|
||||
|
||||
if ($arr[$s] > $max) $max = $arr[$s];
|
||||
if ($arr[$s] > $max)
|
||||
$max = $arr[$s];
|
||||
|
||||
$sum_count++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@ $result = sql_query($sql);
|
|||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$arr[$row['vi_hour']] = $row['cnt'];
|
||||
|
||||
if ($row['cnt'] > $max) $max = $row['cnt'];
|
||||
if ($row['cnt'] > $max)
|
||||
$max = $row['cnt'];
|
||||
|
||||
$sum_count += $row['cnt'];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ $total_count = $row['cnt'];
|
|||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1)
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
|
|
@ -83,8 +84,12 @@ $result = sql_query($sql);
|
|||
else
|
||||
$ip = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", G5_IP_DISPLAY, $row['vi_ip']);
|
||||
|
||||
if ($brow == '기타') { $brow = '<span title="'.get_text($row['vi_agent']).'">'.$brow.'</span>'; }
|
||||
if ($os == '기타') { $os = '<span title="'.get_text($row['vi_agent']).'">'.$os.'</span>'; }
|
||||
if ($brow == '기타') {
|
||||
$brow = '<span title="' . get_text($row['vi_agent']) . '">' . $brow . '</span>';
|
||||
}
|
||||
if ($os == '기타') {
|
||||
$os = '<span title="' . get_text($row['vi_agent']) . '">' . $os . '</span>';
|
||||
}
|
||||
|
||||
$bg = 'bg' . ($i % 2);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@ $result = sql_query($sql);
|
|||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$arr[$row['vs_month']] = $row['cnt'];
|
||||
|
||||
if ($row['cnt'] > $max) $max = $row['cnt'];
|
||||
if ($row['cnt'] > $max)
|
||||
$max = $row['cnt'];
|
||||
|
||||
$sum_count += $row['cnt'];
|
||||
}
|
||||
|
|
@ -61,7 +62,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||
?>
|
||||
|
||||
<tr class="<?php echo $bg; ?>">
|
||||
<td class="td_category"><a href="./visit_date.php?fr_date=<?php echo $key ?>-01&to_date=<?php echo $key ?>-31"><?php echo $key ?></a></td>
|
||||
<td class="td_category"><a
|
||||
href="./visit_date.php?fr_date=<?php echo $key ?>-01&to_date=<?php echo $key ?>-31"><?php echo $key ?></a>
|
||||
</td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?php echo $s_rate ?>%"></span>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ while ($row=sql_fetch_array($result)) {
|
|||
|
||||
$arr[$s]++;
|
||||
|
||||
if ($arr[$s] > $max) $max = $arr[$s];
|
||||
if ($arr[$s] > $max)
|
||||
$max = $arr[$s];
|
||||
|
||||
$sum_count++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'">처음</a>'; //페이지 처
|
|||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1)
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
|
|
@ -103,15 +104,20 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'">처음</a>'; //페이지 처
|
|||
$bg = 'bg' . ($i % 2);
|
||||
?>
|
||||
<tr class="<?php echo $bg; ?>">
|
||||
<td class="td_id"><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?sfl=vi_ip&stx=<?php echo $ip; ?>"><?php echo $ip; ?></a></td>
|
||||
<td class="td_id"><a
|
||||
href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?sfl=vi_ip&stx=<?php echo $ip; ?>"><?php echo $ip; ?></a>
|
||||
</td>
|
||||
<td><?php echo $link . $title; ?></a></td>
|
||||
<td class="td_idsmall td_category1"><?php echo $brow; ?></td>
|
||||
<td class="td_idsmall td_category3"><?php echo $os; ?></td>
|
||||
<td class="td_idsmall td_category2"><?php echo $device; ?></td>
|
||||
<td class="td_datetime"><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?sfl=vi_date&stx=<?php echo $row['vi_date']; ?>"><?php echo $row['vi_date']; ?></a> <?php echo $row['vi_time']; ?></td>
|
||||
<td class="td_datetime"><a
|
||||
href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?sfl=vi_date&stx=<?php echo $row['vi_date']; ?>"><?php echo $row['vi_date']; ?></a>
|
||||
<?php echo $row['vi_time']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($i == 0) echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>'; ?>
|
||||
<?php if ($i == 0)
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>'; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
@ -138,8 +144,7 @@ $(function(){
|
|||
}
|
||||
});
|
||||
|
||||
function fvisit_submit(f)
|
||||
{
|
||||
function fvisit_submit(f) {
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@ $result = sql_query($sql);
|
|||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$arr[$row['vs_year']] = $row['cnt'];
|
||||
|
||||
if ($row['cnt'] > $max) $max = $row['cnt'];
|
||||
if ($row['cnt'] > $max)
|
||||
$max = $row['cnt'];
|
||||
|
||||
$sum_count += $row['cnt'];
|
||||
}
|
||||
|
|
@ -61,7 +62,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||
?>
|
||||
|
||||
<tr class="<?php echo $bg; ?>">
|
||||
<td class="td_category"><a href="./visit_month.php?fr_date=<?php echo $key ?>-01-01&to_date=<?php echo $key ?>-12-31"><?php echo $key ?></a></td>
|
||||
<td class="td_category"><a
|
||||
href="./visit_month.php?fr_date=<?php echo $key ?>-01-01&to_date=<?php echo $key ?>-12-31"><?php echo $key ?></a>
|
||||
</td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?php echo $s_rate ?>%"></span>
|
||||
|
|
|
|||
|
|
@ -203,8 +203,6 @@ $(document).ready(function(){
|
|||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
?>
|
||||
|
|
@ -1,3 +1,2 @@
|
|||
<?php
|
||||
include_once('../common.php');
|
||||
?>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_PATH . '/_head.php');
|
||||
?>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_PATH . '/head.sub.php');
|
||||
?>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_PATH . '/_tail.php');
|
||||
?>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
include_once(G5_PATH . '/tail.sub.php');
|
||||
?>
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (!$is_member) die('0');
|
||||
if (!$is_member)
|
||||
die('0');
|
||||
|
||||
$uid = trim($_REQUEST['uid']);
|
||||
$subject = trim($_REQUEST['subject']);
|
||||
|
|
@ -17,4 +18,3 @@ if ($subject && $content) {
|
|||
echo autosave_count($member['mb_id']);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
include_once("./_common.php");
|
||||
|
||||
if (!$is_member) die("0");
|
||||
if (!$is_member)
|
||||
die("0");
|
||||
|
||||
$as_id = (int) $_REQUEST['as_id'];
|
||||
|
||||
|
|
@ -12,4 +13,3 @@ if (!$result) {
|
|||
}
|
||||
|
||||
echo autosave_count($member['mb_id']);
|
||||
?>
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (!$is_member) die('');
|
||||
if (!$is_member)
|
||||
die('');
|
||||
|
||||
$sql = " select as_id, as_uid, as_subject, as_datetime from {$g5['autosave_table']} where mb_id = '{$member['mb_id']}' order by as_id desc ";
|
||||
$result = sql_query($sql);
|
||||
|
|
@ -18,4 +19,3 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||
echo "</item>\n";
|
||||
}
|
||||
echo "</list>";
|
||||
?>
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
if (!$is_member) die('');
|
||||
if (!$is_member)
|
||||
die('');
|
||||
|
||||
$as_id = (int) $_REQUEST['as_id'];
|
||||
|
||||
|
|
@ -15,4 +16,3 @@ echo "<item>\n";
|
|||
echo "<subject><![CDATA[{$subject}]]></subject>\n";
|
||||
echo "<content><![CDATA[{$content}]]></content>\n";
|
||||
echo "</item>\n";
|
||||
?>
|
||||
|
|
@ -11,4 +11,3 @@ $token = _token();
|
|||
set_session($ss_name, $token);
|
||||
|
||||
die(json_encode(array('token' => $token)));
|
||||
?>
|
||||
|
|
@ -28,4 +28,3 @@ for ($i=0; $i<count($filter); $i++) {
|
|||
}
|
||||
|
||||
die("{\"subject\":\"$subj\",\"content\":\"$cont\"}");
|
||||
?>
|
||||
|
|
@ -7,10 +7,13 @@ $mb_id = trim($_POST['reg_mb_id']);
|
|||
|
||||
set_session('ss_check_mb_email', '');
|
||||
|
||||
if ($msg = empty_mb_email($mb_email)) die($msg);
|
||||
if ($msg = valid_mb_email($mb_email)) die($msg);
|
||||
if ($msg = prohibit_mb_email($mb_email)) die($msg);
|
||||
if ($msg = exist_mb_email($mb_email, $mb_id)) die($msg);
|
||||
if ($msg = empty_mb_email($mb_email))
|
||||
die($msg);
|
||||
if ($msg = valid_mb_email($mb_email))
|
||||
die($msg);
|
||||
if ($msg = prohibit_mb_email($mb_email))
|
||||
die($msg);
|
||||
if ($msg = exist_mb_email($mb_email, $mb_id))
|
||||
die($msg);
|
||||
|
||||
set_session('ss_check_mb_email', $mb_email);
|
||||
?>
|
||||
|
|
@ -5,6 +5,6 @@ include_once(G5_LIB_PATH.'/register.lib.php');
|
|||
$mb_hp = trim($_POST['reg_mb_hp']);
|
||||
$mb_id = trim($_POST['reg_mb_id']);
|
||||
|
||||
if ($msg = valid_mb_hp($mb_hp)) die($msg);
|
||||
if ($msg = valid_mb_hp($mb_hp))
|
||||
die($msg);
|
||||
//if ($msg = exist_mb_hp($mb_hp, $mb_id)) die($msg);
|
||||
?>
|
||||
|
|
@ -6,11 +6,15 @@ $mb_id = trim($_POST['reg_mb_id']);
|
|||
|
||||
set_session('ss_check_mb_id', '');
|
||||
|
||||
if ($msg = empty_mb_id($mb_id)) die($msg);
|
||||
if ($msg = valid_mb_id($mb_id)) die($msg);
|
||||
if ($msg = count_mb_id($mb_id)) die($msg);
|
||||
if ($msg = exist_mb_id($mb_id)) die($msg);
|
||||
if ($msg = reserve_mb_id($mb_id)) die($msg);
|
||||
if ($msg = empty_mb_id($mb_id))
|
||||
die($msg);
|
||||
if ($msg = valid_mb_id($mb_id))
|
||||
die($msg);
|
||||
if ($msg = count_mb_id($mb_id))
|
||||
die($msg);
|
||||
if ($msg = exist_mb_id($mb_id))
|
||||
die($msg);
|
||||
if ($msg = reserve_mb_id($mb_id))
|
||||
die($msg);
|
||||
|
||||
set_session('ss_check_mb_id', $mb_id);
|
||||
?>
|
||||
|
|
@ -7,11 +7,15 @@ $mb_id = trim($_POST['reg_mb_id']);
|
|||
|
||||
set_session('ss_check_mb_nick', '');
|
||||
|
||||
if ($msg = empty_mb_nick($mb_nick)) die($msg);
|
||||
if ($msg = valid_mb_nick($mb_nick)) die($msg);
|
||||
if ($msg = count_mb_nick($mb_nick)) die($msg);
|
||||
if ($msg = exist_mb_nick($mb_nick, $mb_id)) die($msg);
|
||||
if ($msg = reserve_mb_nick($mb_nick)) die($msg);
|
||||
if ($msg = empty_mb_nick($mb_nick))
|
||||
die($msg);
|
||||
if ($msg = valid_mb_nick($mb_nick))
|
||||
die($msg);
|
||||
if ($msg = count_mb_nick($mb_nick))
|
||||
die($msg);
|
||||
if ($msg = exist_mb_nick($mb_nick, $mb_id))
|
||||
die($msg);
|
||||
if ($msg = reserve_mb_nick($mb_nick))
|
||||
die($msg);
|
||||
|
||||
set_session('ss_check_mb_nick', $mb_nick);
|
||||
?>
|
||||
|
|
@ -10,4 +10,3 @@ if ($msg = valid_mb_id($mb_recommend)) {
|
|||
if (!($msg = exist_mb_id($mb_recommend))) {
|
||||
die("입력하신 추천인은 존재하지 않는 아이디 입니다.");
|
||||
}
|
||||
?>
|
||||
|
|
@ -31,7 +31,8 @@ include_once(G5_PATH.'/head.sub.php');
|
|||
$msg2 = str_replace("\\n", "<br>", $msg);
|
||||
|
||||
$url = clean_xss_tags($url);
|
||||
if (!$url) $url = clean_xss_tags($_SERVER['HTTP_REFERER']);
|
||||
if (!$url)
|
||||
$url = clean_xss_tags($_SERVER['HTTP_REFERER']);
|
||||
|
||||
$url = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", $url);
|
||||
|
||||
|
|
|
|||
|
|
@ -81,13 +81,11 @@ if (isset($wr_id) && $wr_id) {
|
|||
;
|
||||
} else {
|
||||
// 비밀글이라면
|
||||
if (strstr($write['wr_option'], "secret"))
|
||||
{
|
||||
if (strstr($write['wr_option'], "secret")) {
|
||||
// 회원이 비밀글을 올리고 관리자가 답변글을 올렸을 경우
|
||||
// 회원이 관리자가 올린 답변글을 바로 볼 수 없던 오류를 수정
|
||||
$is_owner = false;
|
||||
if ($write['wr_reply'] && $member['mb_id'])
|
||||
{
|
||||
if ($write['wr_reply'] && $member['mb_id']) {
|
||||
$sql = " select mb_id from {$write_table}
|
||||
where wr_num = '{$write['wr_num']}'
|
||||
and wr_reply = ''
|
||||
|
|
@ -99,8 +97,7 @@ if (isset($wr_id) && $wr_id) {
|
|||
|
||||
$ss_name = 'ss_secret_' . $bo_table . '_' . $write['wr_num'];
|
||||
|
||||
if (!$is_owner)
|
||||
{
|
||||
if (!$is_owner) {
|
||||
//$ss_name = "ss_secret_{$bo_table}_{$wr_id}";
|
||||
// 한번 읽은 게시물의 번호는 세션에 저장되어 있고 같은 게시물을 읽을 경우는 다시 비밀번호를 묻지 않습니다.
|
||||
// 이 게시물이 저장된 게시물이 아니면서 관리자가 아니라면
|
||||
|
|
@ -115,8 +112,7 @@ if (isset($wr_id) && $wr_id) {
|
|||
|
||||
// 한번 읽은글은 브라우저를 닫기전까지는 카운트를 증가시키지 않음
|
||||
$ss_name = 'ss_view_' . $bo_table . '_' . $wr_id;
|
||||
if (!get_session($ss_name))
|
||||
{
|
||||
if (!get_session($ss_name)) {
|
||||
sql_query(" update {$write_table} set wr_hit = wr_hit + 1 where wr_id = '{$wr_id}' ");
|
||||
|
||||
// 자신의 글이면 통과
|
||||
|
|
@ -169,7 +165,8 @@ if (isset($wr_id) && $wr_id) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!isset($page) || (isset($page) && $page == 0)) $page = 1;
|
||||
if (!isset($page) || (isset($page) && $page == 0))
|
||||
$page = 1;
|
||||
|
||||
$g5['title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']) . ' ' . $page . ' 페이지';
|
||||
}
|
||||
|
|
@ -244,4 +241,3 @@ include_once(G5_BBS_PATH.'/board_tail.php');
|
|||
echo "\n<!-- 사용스킨 : " . (G5_IS_MOBILE ? $board['bo_mobile_skin'] : $board['bo_skin']) . " -->\n";
|
||||
|
||||
include_once(G5_PATH . '/tail.sub.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G5_BBS_PATH . '/_head.php');
|
||||
@include($board['bo_include_head']);
|
||||
?>
|
||||
|
|
@ -18,4 +18,3 @@ if($_POST['btn_submit'] == '선택삭제') {
|
|||
} else {
|
||||
alert('올바른 방법으로 이용해 주세요.');
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
@include($board['bo_include_tail']);
|
||||
include_once(G5_BBS_PATH . '/_tail.php');
|
||||
?>
|
||||
|
|
@ -121,7 +121,8 @@ if ($profile['ad_use_rank']) {
|
|||
<option value=""><?= $config['cf_side_title'] ?>선택</option>
|
||||
<?php for ($i = 0; $i < count($ch_si); $i++) { ?>
|
||||
<option value="<?= $ch_si[$i]['id'] ?>" <?php echo get_selected($_GET['s_side'], $ch_si[$i]['id']); ?>>
|
||||
<?= $ch_si[$i]['name'] ?></option>
|
||||
<?= $ch_si[$i]['name'] ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php } ?>
|
||||
|
|
@ -132,7 +133,8 @@ if ($profile['ad_use_rank']) {
|
|||
<option value=""><?= $config['cf_class_title'] ?>선택</option>
|
||||
<?php for ($i = 0; $i < count($ch_cl); $i++) { ?>
|
||||
<option value="<?= $ch_cl[$i]['id'] ?>" <?php echo get_selected($_GET['s_class'], $ch_cl[$i]['id']); ?>>
|
||||
<?= $ch_cl[$i]['name'] ?></option>
|
||||
<?= $ch_cl[$i]['name'] ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php } ?>
|
||||
|
|
@ -247,7 +249,8 @@ if ($profile['ad_use_rank']) {
|
|||
<option value=""><?= $config['cf_side_title'] ?>선택</option>
|
||||
<?php for ($k = 0; $k < count($ch_si); $k++) { ?>
|
||||
<option value="<?= $ch_si[$k]['id'] ?>" <?php echo get_selected($row['ch_side'], $ch_si[$k]['id']); ?>>
|
||||
<?= $ch_si[$k]['name'] ?></option>
|
||||
<?= $ch_si[$k]['name'] ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
|
|
@ -258,7 +261,8 @@ if ($profile['ad_use_rank']) {
|
|||
<option value=""><?= $config['cf_class_title'] ?>선택</option>
|
||||
<?php for ($k = 0; $k < count($ch_cl); $k++) { ?>
|
||||
<option value="<?= $ch_cl[$k]['id'] ?>" <?php echo get_selected($row['ch_class'], $ch_cl[$k]['id']); ?>>
|
||||
<?= $ch_cl[$k]['name'] ?></option>
|
||||
<?= $ch_cl[$k]['name'] ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,5 @@ if (confirm(conf)) {
|
|||
<a href="<?php echo $url3; ?>">돌아가기</a>
|
||||
</article>
|
||||
</noscript>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH . '/tail.sub.php');
|
||||
?>
|
||||
|
|
@ -87,4 +87,3 @@ if (is_include_path_check($co['co_include_tail']))
|
|||
@include_once($co['co_include_tail']);
|
||||
else
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -35,4 +35,3 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||
include_once($connect_skin_path . '/current_connect.skin.php');
|
||||
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 최고관리자일 때만 실행
|
||||
if ($config['cf_admin'] != $member['mb_id'] || $is_admin != 'super')
|
||||
|
|
@ -45,8 +46,7 @@ if($config['cf_leave_day'] > 0) {
|
|||
where (TO_DAYS('" . G5_TIME_YMDHIS . "') - TO_DAYS(mb_leave_date)) > '{$config['cf_leave_day']}'
|
||||
and mb_memo not regexp '^[0-9]{8}.*삭제함' ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result))
|
||||
{
|
||||
while ($row = sql_fetch_array($result)) {
|
||||
// 회원자료 삭제
|
||||
member_delete($row['mb_id']);
|
||||
}
|
||||
|
|
@ -66,4 +66,3 @@ if($captcha_mp3 && is_array($captcha_mp3)) {
|
|||
if (isset($config['cf_optimize_date'])) {
|
||||
sql_query(" update {$g5['config_table']} set cf_optimize_date = '" . G5_TIME_YMD . "' ");
|
||||
}
|
||||
?>
|
||||
|
|
@ -36,7 +36,8 @@ else if ($is_admin == 'group') { // 그룹관리자
|
|||
}
|
||||
|
||||
$len = strlen($write['wr_reply']);
|
||||
if ($len < 0) $len = 0;
|
||||
if ($len < 0)
|
||||
$len = 0;
|
||||
$reply = substr($write['wr_reply'], 0, $len);
|
||||
|
||||
// 원글만 구한다.
|
||||
|
|
@ -68,11 +69,9 @@ if ($row['cnt'] >= $board['bo_count_delete'] && !$is_admin)
|
|||
//$sql = " select wr_id, mb_id, wr_comment from $write_table where wr_parent = '$write['wr_id']' order by wr_id ";
|
||||
$sql = " select wr_id, mb_id, wr_is_comment, wr_content from $write_table where wr_parent = '{$write['wr_id']}' order by wr_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row = sql_fetch_array($result))
|
||||
{
|
||||
while ($row = sql_fetch_array($result)) {
|
||||
// 원글이라면
|
||||
if (!$row['wr_is_comment'])
|
||||
{
|
||||
if (!$row['wr_is_comment']) {
|
||||
// 원글 포인트 삭제
|
||||
if (!delete_point($row['mb_id'], $bo_table, $row['wr_id'], '쓰기'))
|
||||
insert_point($row['mb_id'], $board['bo_write_point'] * (-1), "{$board['bo_subject']} {$row['wr_id']} 글삭제");
|
||||
|
|
@ -95,9 +94,7 @@ while ($row = sql_fetch_array($result))
|
|||
sql_query(" delete from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
$count_write++;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
// 코멘트 포인트 삭제
|
||||
if (!delete_point($row['mb_id'], $bo_table, $row['wr_id'], '댓글'))
|
||||
insert_point($row['mb_id'], $board['bo_comment_point'] * (-1), "{$board['bo_subject']} {$write['wr_id']}-{$row['wr_id']} 댓글삭제");
|
||||
|
|
@ -136,4 +133,3 @@ if ($count_write > 0 || $count_comment > 0)
|
|||
delete_cache_latest($bo_table);
|
||||
|
||||
goto_url('./board.php?bo_table=' . $bo_table . '&page=' . $page . $qstr);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_'))
|
||||
exit; // 개별 페이지 접근 불가
|
||||
|
||||
if (!$is_admin)
|
||||
alert('접근 권한이 없습니다.', G5_URL);
|
||||
|
|
@ -25,8 +26,7 @@ if($chk_count > (G5_IS_MOBILE ? $board['bo_mobile_page_rows'] : $board['bo_page_
|
|||
@include_once($board_skin_path . '/delete_all.skin.php');
|
||||
|
||||
// 거꾸로 읽는 이유는 답변글부터 삭제가 되어야 하기 때문임
|
||||
for ($i=$chk_count-1; $i>=0; $i--)
|
||||
{
|
||||
for ($i = $chk_count - 1; $i >= 0; $i--) {
|
||||
$write = sql_fetch(" select * from $write_table where wr_id = '$tmp_array[$i]' ");
|
||||
|
||||
if ($is_admin == 'super') // 최고관리자 통과
|
||||
|
|
@ -40,11 +40,9 @@ for ($i=$chk_count-1; $i>=0; $i--)
|
|||
;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
else
|
||||
} else
|
||||
continue;
|
||||
}
|
||||
else if ($is_admin == 'board') // 게시판관리자이면
|
||||
} else if ($is_admin == 'board') // 게시판관리자이면
|
||||
{
|
||||
$mb = get_member($write['mb_id']);
|
||||
if ($member['mb_id'] == $board['bo_admin']) // 자신이 관리하는 게시판인가?
|
||||
|
|
@ -54,20 +52,18 @@ for ($i=$chk_count-1; $i>=0; $i--)
|
|||
continue;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
else if ($member['mb_id'] && $member['mb_id'] == $write['mb_id']) // 자신의 글이라면
|
||||
} else if ($member['mb_id'] && $member['mb_id'] == $write['mb_id']) // 자신의 글이라면
|
||||
{
|
||||
;
|
||||
}
|
||||
else if ($wr_password && !$write['mb_id'] && check_password($wr_password, $write['wr_password'])) // 비밀번호가 같다면
|
||||
} else if ($wr_password && !$write['mb_id'] && check_password($wr_password, $write['wr_password'])) // 비밀번호가 같다면
|
||||
{
|
||||
;
|
||||
}
|
||||
else
|
||||
} else
|
||||
continue; // 나머지는 삭제 불가
|
||||
|
||||
$len = strlen($write['wr_reply']);
|
||||
if ($len < 0) $len = 0;
|
||||
if ($len < 0)
|
||||
$len = 0;
|
||||
$reply = substr($write['wr_reply'], 0, $len);
|
||||
|
||||
// 원글만 구한다.
|
||||
|
|
@ -84,11 +80,9 @@ for ($i=$chk_count-1; $i>=0; $i--)
|
|||
//$sql = " select wr_id, mb_id, wr_comment from {$write_table} where wr_parent = '{$write['wr_id']}' order by wr_id ";
|
||||
$sql = " select wr_id, mb_id, wr_is_comment, wr_content from $write_table where wr_parent = '{$write['wr_id']}' order by wr_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row = sql_fetch_array($result))
|
||||
{
|
||||
while ($row = sql_fetch_array($result)) {
|
||||
// 원글이라면
|
||||
if (!$row['wr_is_comment'])
|
||||
{
|
||||
if (!$row['wr_is_comment']) {
|
||||
// 원글 포인트 삭제
|
||||
if (!delete_point($row['mb_id'], $bo_table, $row['wr_id'], '쓰기'))
|
||||
insert_point($row['mb_id'], $board['bo_write_point'] * (-1), "{$board['bo_subject']} {$row['wr_id']} 글 삭제");
|
||||
|
|
@ -113,9 +107,7 @@ for ($i=$chk_count-1; $i>=0; $i--)
|
|||
sql_query(" delete from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
$count_write++;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
// 코멘트 포인트 삭제
|
||||
if (!delete_point($row['mb_id'], $bo_table, $row['wr_id'], '댓글'))
|
||||
insert_point($row['mb_id'], $board['bo_comment_point'] * (-1), "{$board['bo_subject']} {$write['wr_id']}-{$row['wr_id']} 댓글삭제");
|
||||
|
|
@ -157,4 +149,3 @@ if ($count_write > 0 || $count_comment > 0)
|
|||
delete_cache_latest($bo_table);
|
||||
|
||||
goto_url('./board.php?bo_table=' . $bo_table . '&page=' . $page . $qstr);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -45,7 +45,8 @@ else if ($is_admin == 'group') { // 그룹관리자
|
|||
}
|
||||
|
||||
$len = strlen($write['wr_comment_reply']);
|
||||
if ($len < 0) $len = 0;
|
||||
if ($len < 0)
|
||||
$len = 0;
|
||||
$comment_reply = substr($write['wr_comment_reply'], 0, $len);
|
||||
|
||||
$sql = " select count(*) as cnt from {$write_table}
|
||||
|
|
@ -85,4 +86,3 @@ sql_query(" delete from {$g5['board_new_table']} where bo_table = '{$bo_table}'
|
|||
delete_cache_latest($bo_table);
|
||||
|
||||
goto_url('./board.php?bo_table=' . $bo_table . '&wr_id=' . $write['wr_parent'] . '&page=' . $page . $qstr);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -51,8 +51,7 @@ if (!is_file($filepath) || !file_exists($filepath))
|
|||
|
||||
// 이미 다운로드 받은 파일인지를 검사한 후 게시물당 한번만 포인트를 차감하도록 수정
|
||||
$ss_name = 'ss_down_' . $bo_table . '_' . $wr_id;
|
||||
if (!get_session($ss_name))
|
||||
{
|
||||
if (!get_session($ss_name)) {
|
||||
// 자신의 글이라면 통과
|
||||
// 관리자인 경우 통과
|
||||
if (($write['mb_id'] && $write['mb_id'] == $member['mb_id']) || $is_admin)
|
||||
|
|
@ -119,4 +118,3 @@ while(!feof($fp)) {
|
|||
}
|
||||
fclose($fp);
|
||||
flush();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -12,19 +12,14 @@ if (!$row['mb_id'])
|
|||
// 인증 링크는 한번만 처리가 되게 한다.
|
||||
sql_query(" update {$g5['member_table']} set mb_email_certify2 = '' where mb_id = '$mb_id' ");
|
||||
|
||||
if ($mb_md5)
|
||||
{
|
||||
if ($mb_md5 == $row['mb_email_certify2'])
|
||||
{
|
||||
if ($mb_md5) {
|
||||
if ($mb_md5 == $row['mb_email_certify2']) {
|
||||
sql_query(" update {$g5['member_table']} set mb_email_certify = '" . G5_TIME_YMDHIS . "' where mb_id = '{$mb_id}' ");
|
||||
|
||||
alert("메일인증 처리를 완료 하였습니다.\\n\\n지금부터 {$mb_id} 아이디로 로그인 가능합니다.", G5_URL);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
alert('메일인증 요청 정보가 올바르지 않습니다.', G5_URL);
|
||||
}
|
||||
}
|
||||
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.', G5_URL);
|
||||
?>
|
||||
|
|
@ -16,4 +16,3 @@ if ($mb_md5) {
|
|||
}
|
||||
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.', G5_URL);
|
||||
?>
|
||||
|
|
@ -10,10 +10,10 @@ if( !isset($g5['faq_table']) || !isset($g5['faq_master_table']) ){
|
|||
$faq_master_list = array();
|
||||
$sql = " select * from {$g5['faq_master_table']} order by fm_order,fm_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result))
|
||||
{
|
||||
while ($row = sql_fetch_array($result)) {
|
||||
$key = $row['fm_id'];
|
||||
if (!$fm_id) $fm_id = $key;
|
||||
if (!$fm_id)
|
||||
$fm_id = $key;
|
||||
$faq_master_list[$key] = $row;
|
||||
}
|
||||
|
||||
|
|
@ -61,7 +61,9 @@ if(is_file($skin_file)) {
|
|||
$sql_search = " and ( INSTR(fa_subject, '$stx') > 0 or INSTR(fa_content, '$stx') > 0 ) ";
|
||||
}
|
||||
|
||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1;
|
||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
|
||||
$page_rows = G5_IS_MOBILE ? $config['cf_mobile_page_rows'] : $config['cf_page_rows'];
|
||||
|
||||
|
|
@ -95,4 +97,3 @@ if(is_file($skin_file)) {
|
|||
}
|
||||
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ if (!$is_member && $config['cf_formmail_is_member'])
|
|||
if ($is_member && !$member['mb_open'] && $is_admin != "super" && $member['mb_id'] != $mb_id)
|
||||
alert_close('자신의 정보를 공개하지 않으면 다른분에게 메일을 보낼 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
|
||||
|
||||
if ($mb_id)
|
||||
{
|
||||
if ($mb_id) {
|
||||
$mb = get_member($mb_id);
|
||||
if (!$mb['mb_id'])
|
||||
alert_close('회원정보가 존재하지 않습니다.\\n\\n탈퇴한 회원일 수 있습니다.');
|
||||
|
|
@ -51,4 +50,3 @@ $type_checked[$type] = 'checked';
|
|||
include_once($member_skin_path . '/formmail.skin.php');
|
||||
|
||||
include_once(G5_PATH . '/tail.sub.php');
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -37,8 +37,7 @@ if ($type == 2) {
|
|||
if ($type) {
|
||||
$current_url = G5_URL;
|
||||
$mail_content = '<!doctype html><html lang="ko"><head><meta charset="utf-8"><title>메일보내기</title><link rel="stylesheet" href="' . $current_url . '/style.css"></head><body>' . $content . '</body></html>';
|
||||
}
|
||||
else
|
||||
} else
|
||||
$mail_content = $content;
|
||||
|
||||
mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file);
|
||||
|
|
@ -57,4 +56,3 @@ include_once(G5_PATH.'/head.sub.php');
|
|||
alert_close('메일을 정상적으로 발송하였습니다.');
|
||||
|
||||
include_once(G5_PATH . '/tail.sub.php');
|
||||
?>
|
||||
|
|
@ -14,8 +14,7 @@ if($_POST['js'] == "on") {
|
|||
exit;
|
||||
}
|
||||
|
||||
if (!$is_member)
|
||||
{
|
||||
if (!$is_member) {
|
||||
$error = '회원만 가능합니다.';
|
||||
print_result($error, $count);
|
||||
}
|
||||
|
|
@ -37,8 +36,7 @@ if($_POST['js'] == "on") {
|
|||
print_result($error, $count);
|
||||
}
|
||||
|
||||
if ($good == 'good' || $good == 'nogood')
|
||||
{
|
||||
if ($good == 'good' || $good == 'nogood') {
|
||||
if ($write['mb_id'] == $member['mb_id']) {
|
||||
$error = '자신의 글에는 추천 또는 비추천 하실 수 없습니다.';
|
||||
print_result($error, $count);
|
||||
|
|
@ -60,8 +58,7 @@ if($_POST['js'] == "on") {
|
|||
and mb_id = '{$member['mb_id']}'
|
||||
and bg_flag in ('good', 'nogood') ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['bg_flag'])
|
||||
{
|
||||
if ($row['bg_flag']) {
|
||||
if ($row['bg_flag'] == 'good')
|
||||
$status = '추천';
|
||||
else
|
||||
|
|
@ -69,9 +66,7 @@ if($_POST['js'] == "on") {
|
|||
|
||||
$error = "이미 $status 하신 글 입니다.";
|
||||
print_result($error, $count);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
// 추천(찬성), 비추천(반대) 카운트 증가
|
||||
sql_query(" update {$g5['write_prefix']}{$bo_table} set wr_{$good} = wr_{$good} + 1 where wr_id = '{$wr_id}' ");
|
||||
// 내역 생성
|
||||
|
|
@ -88,8 +83,7 @@ if($_POST['js'] == "on") {
|
|||
} else {
|
||||
include_once(G5_PATH . '/head.sub.php');
|
||||
|
||||
if (!$is_member)
|
||||
{
|
||||
if (!$is_member) {
|
||||
$href = './login.php?' . $qstr . '&url=' . urlencode('./board.php?bo_table=' . $bo_table . '&wr_id=' . $wr_id);
|
||||
|
||||
alert('회원만 가능합니다.', $href);
|
||||
|
|
@ -106,8 +100,7 @@ if($_POST['js'] == "on") {
|
|||
if (!$row['cnt'])
|
||||
alert('존재하는 게시판이 아닙니다.');
|
||||
|
||||
if ($good == 'good' || $good == 'nogood')
|
||||
{
|
||||
if ($good == 'good' || $good == 'nogood') {
|
||||
if ($write['mb_id'] == $member['mb_id'])
|
||||
alert('자신의 글에는 추천 또는 비추천 하실 수 없습니다.');
|
||||
|
||||
|
|
@ -123,17 +116,14 @@ if($_POST['js'] == "on") {
|
|||
and mb_id = '{$member['mb_id']}'
|
||||
and bg_flag in ('good', 'nogood') ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['bg_flag'])
|
||||
{
|
||||
if ($row['bg_flag']) {
|
||||
if ($row['bg_flag'] == 'good')
|
||||
$status = '추천';
|
||||
else
|
||||
$status = '비추천';
|
||||
|
||||
alert("이미 $status 하신 글 입니다.");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
// 추천(찬성), 비추천(반대) 카운트 증가
|
||||
sql_query(" update {$g5['write_prefix']}{$bo_table} set wr_{$good} = wr_{$good} + 1 where wr_id = '{$wr_id}' ");
|
||||
// 내역 생성
|
||||
|
|
@ -152,4 +142,3 @@ if($_POST['js'] == "on") {
|
|||
}
|
||||
|
||||
@include_once($board_skin_path . '/good.tail.skin.php');
|
||||
?>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue