diff --git a/adm/_common.php b/adm/_common.php index 5933037da..0803ce978 100644 --- a/adm/_common.php +++ b/adm/_common.php @@ -2,4 +2,5 @@ $g4_path = ".."; // common.php 의 상대 경로 include_once ($g4_path.'/common.php'); include_once($g4['admin_path'].'/admin.lib.php'); -?> +$admin_index = false; +?> \ No newline at end of file diff --git a/adm/admin.head.php b/adm/admin.head.php index fceeafb0a..557db0522 100644 --- a/adm/admin.head.php +++ b/adm/admin.head.php @@ -100,13 +100,13 @@ function textarea_size(fld, size) $href2 = ''; } $current_class = ""; - if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2) || defined('_ADMIN_INDEX_'))) + if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2) || $admin_index)) $current_class = " gnb_1depth_on"; echo "
  • "; echo $href1 . $menu['menu'.$key][0][1] . $href2; echo print_menu1('menu'.$key, 1); echo "
  • "; - if ($current_class || !_ADMIN_INDEX_) $current_class = ""; // 클래스 반복부여 방지 + if ($current_class || !$admin_index) $current_class = ""; // 클래스 반복부여 방지 } ?> diff --git a/adm/auth_list.php b/adm/auth_list.php index 2630e0036..f9421ec56 100644 --- a/adm/auth_list.php +++ b/adm/auth_list.php @@ -31,9 +31,9 @@ $sql = " select count(*) as cnt {$sql_search} {$sql_order} "; $row = sql_fetch($sql); -$total_count = $row[cnt]; +$total_count = $row['cnt']; -$rows = $config[cf_page_rows]; +$rows = $config['cf_page_rows']; $total_page = ceil($total_count / $rows); // 전체 페이지 계산 if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $rows; // 시작 열을 구함 @@ -135,7 +135,7 @@ if ($i==0)
    diff --git a/adm/board_form.php b/adm/board_form.php index c5ea0ae28..462b5aad3 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -13,7 +13,7 @@ function b_draw($pos, $color='red') { $sql = " select count(*) as cnt from {$g4['group_table']} "; $row = sql_fetch($sql); -if (!$row[cnt]) +if (!$row['cnt']) alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php'); $html_title = '게시판'; @@ -22,28 +22,28 @@ if ($w == '') { $bo_table_attr = 'class="required alnum_"'; - $board[bo_count_delete] = 1; - $board[bo_count_modify] = 1; - $board[bo_read_point] = $config[cf_read_point]; - $board[bo_write_point] = $config[cf_write_point]; - $board[bo_comment_point] = $config[cf_comment_point]; - $board[bo_download_point] = $config[cf_download_point]; + $board['bo_count_delete'] = 1; + $board['bo_count_modify'] = 1; + $board['bo_read_point'] = $config['cf_read_point']; + $board['bo_write_point'] = $config['cf_write_point']; + $board['bo_comment_point'] = $config['cf_comment_point']; + $board['bo_download_point'] = $config['cf_download_point']; - $board[bo_gallery_cols] = 4; - $board[bo_table_width] = 97; - $board[bo_page_rows] = $config[cf_page_rows]; - $board[bo_subject_len] = 60; - $board[bo_new] = 24; - $board[bo_hot] = 100; - $board[bo_image_width] = 600; - $board[bo_upload_count] = 2; - $board[bo_upload_size] = 1048576; - $board[bo_reply_order] = 1; - $board[bo_use_search] = 1; + $board['bo_gallery_cols'] = 4; + $board['bo_table_width'] = 97; + $board['bo_page_rows'] = $config['cf_page_rows']; + $board['bo_subject_len'] = 60; + $board['bo_new'] = 24; + $board['bo_hot'] = 100; + $board['bo_image_width'] = 600; + $board['bo_upload_count'] = 2; + $board['bo_upload_size'] = 1048576; + $board['bo_reply_order'] = 1; + $board['bo_use_search'] = 1; $board['bo_skin'] = 'basic'; $board['gr_id'] = $gr_id; $board['bo_disable_tags'] = 'script|iframe'; - $board[bo_use_secret] = 0; + $board['bo_use_secret'] = 0; } else if ($w == 'u') { $html_title .= ' 수정'; @@ -323,7 +323,7 @@ include_once ('./admin.head.php');
    diff --git a/adm/config_form.php b/adm/config_form.php index 057ee1db1..11b3e003a 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -48,67 +48,67 @@ include_once ('./admin.head.php'); - > 사용 + > 사용 - 점 + - 점 + - 자리만 표시 + 자리만 표시 - 수정하면 일 동안 바꿀 수 없음 + 수정하면 일 동안 바꿀 수 없음 - 수정하면 일 동안 바꿀 수 없음 + 수정하면 일 동안 바꿀 수 없음 - 일 + - 일 + - 일 + - 일 + - 분 + - 라인 + 라인 @@ -125,7 +125,7 @@ include_once ('./admin.head.php'); - 라인 + 라인 @@ -156,7 +156,7 @@ include_once ('./admin.head.php'); - > 남김 + > 남김 @@ -182,15 +182,15 @@ include_once ('./admin.head.php'); - 점 + - 점 + - 점 + - 점 + @@ -204,7 +204,7 @@ include_once ('./admin.head.php'); - 건 단위로 검색 + 건 단위로 검색 @@ -214,9 +214,9 @@ include_once ('./admin.head.php'); - 초 지난후 가능 + 초 지난후 가능 - 페이지씩 표시 + 페이지씩 표시 @@ -272,48 +272,48 @@ include_once ('./admin.head.php'); 홈페이지 입력 - > - > + > + > 주소 입력 - > - > + > + > 전화번호 입력 - > - > + > + > 핸드폰 입력 - > - > + > + > 서명 입력 - > - > + > + > 자기소개 입력 - > - > + > + > - + - 점 + - 일 후 자동 삭제 + 일 후 자동 삭제 @@ -324,28 +324,28 @@ include_once ('./admin.head.php');