diff --git a/adm/admin.head.php b/adm/admin.head.php index 158d24f49..579dc48bc 100644 --- a/adm/admin.head.php +++ b/adm/admin.head.php @@ -100,7 +100,7 @@ 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) || $index)) + if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2) || isset($index))) $current_class = " gnb_1depth_on"; echo "
  • "; echo $href1 . $menu['menu'.$key][0][1] . $href2; diff --git a/adm/auth_list.php b/adm/auth_list.php index f9421ec56..77e7f3444 100644 --- a/adm/auth_list.php +++ b/adm/auth_list.php @@ -10,7 +10,7 @@ $token = get_token(); $sql_common = " from {$g4['auth_table']} a left join {$g4['member_table']} b on (a.mb_id=b.mb_id) "; $sql_search = " where (1) "; -if ($stx) { +if (isset($stx)) { $sql_search .= " and ( "; switch ($sfl) { default : @@ -147,7 +147,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER[' document.fsearch.sfl.value = "'.$sfl.'";'.PHP_EOL; if (strstr($sfl, 'mb_id')) diff --git a/adm/board_list.php b/adm/board_list.php index b14e530b7..183fa514a 100644 --- a/adm/board_list.php +++ b/adm/board_list.php @@ -19,7 +19,7 @@ if ($is_admin != "super") { $sql_search .= " and (a.gr_id = b.gr_id and b.gr_admin = '{$member['mb_id']}') "; } -if ($stx) { +if (isset($stx)) { $sql_search .= " and ( "; switch ($sfl) { case "bo_table" : @@ -212,7 +212,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER[' document.fsearch.sfl.value = "'.$sfl.'";'; ?> diff --git a/adm/boardgroup_list.php b/adm/boardgroup_list.php index 36d367037..de79ae505 100644 --- a/adm/boardgroup_list.php +++ b/adm/boardgroup_list.php @@ -12,7 +12,7 @@ $sql_search = " where (1) "; if ($is_admin != 'super') $sql_search .= " and (gr_admin = '{$member['mb_id']}') "; -if ($stx) { +if (isset($stx)) { $sql_search .= " and ( "; switch ($sfl) { case "gr_id" : @@ -178,7 +178,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER[' document.fsearch.sfl.value = "'.$sfl.'";'; ?> diff --git a/adm/boardgroupmember_list.php b/adm/boardgroupmember_list.php index 36c0749ae..a541a3d7f 100644 --- a/adm/boardgroupmember_list.php +++ b/adm/boardgroupmember_list.php @@ -14,7 +14,7 @@ $sql_common = " from {$g4['group_member_table']} a $sql_search = " where gr_id = '{$gr_id}' "; // 회원아이디로 검색되지 않던 오류를 수정 -if ($stx) { +if (isset($stx)) { $sql_search .= " and ( "; switch ($sfl) { default : @@ -127,7 +127,7 @@ if ($pagelist) {?> document.fsearch.sfl.value = "'.$sfl.'";'; ?> diff --git a/adm/member_list.php b/adm/member_list.php index 2ba210b3c..22fe44179 100644 --- a/adm/member_list.php +++ b/adm/member_list.php @@ -9,7 +9,7 @@ $token = get_token(); $sql_common = " from {$g4['member_table']} "; $sql_search = " where (1) "; -if ($stx) { +if (isset($stx)) { $sql_search .= " and ( "; switch ($sfl) { case 'mb_point' : @@ -32,7 +32,7 @@ if ($stx) { if ($is_admin != 'super') $sql_search .= " and mb_level <= '{$member['mb_level']}' "; -if (!$sst) { +if (!isset($sst)) { $sst = "mb_datetime"; $sod = "desc"; } @@ -48,7 +48,7 @@ $total_count = $row['cnt']; $rows = $config['cf_page_rows']; $total_page = ceil($total_count / $rows); // 전체 페이지 계산 -if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지) +if (!isset($page)) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $rows; // 시작 열을 구함 // 탈퇴회원수 @@ -70,7 +70,7 @@ $row = sql_fetch($sql); $intercept_count = $row['cnt']; $listall = ""; -if ($sfl || $stx) // 검색일 때만 처음 버튼을 보여줌 +if (isset($sfl) || isset(isset($stx))) // 검색일 때만 처음 버튼을 보여줌 $listall = '전체목록'; $g4['title'] = '회원관리'; @@ -116,7 +116,7 @@ var list_delete_php = 'member_list_delete.php'; - + @@ -127,7 +127,7 @@ var list_delete_php = 'member_list_delete.php'; -
    + @@ -217,8 +217,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { - - + + @@ -250,7 +250,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, '?'.$qstr. document.fsearch.sfl.value = \''.$sfl.'\';'; ?>
    diff --git a/adm/point_list.php b/adm/point_list.php index 0370922d6..f6fd909c1 100644 --- a/adm/point_list.php +++ b/adm/point_list.php @@ -9,7 +9,7 @@ $token = get_token(); $sql_common = " from {$g4['point_table']} "; $sql_search = " where (1) "; -if ($stx) { +if (isset($stx)) { $sql_search .= " and ( "; switch ($sfl) { case 'mb_id' : @@ -51,7 +51,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 $listall = '전체목록'; if ($sfl == 'mb_id' && $stx) - $mb = get_member($stx); + $mb = get_member(isset($stx)); $g4['title'] = '포인트관리'; include_once ('./admin.head.php'); @@ -181,7 +181,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER[ document.fsearch.sfl.value = \''.$sfl.'\';'.PHP_EOL; if (strstr($sfl, 'mb_id')) diff --git a/adm/poll_list.php b/adm/poll_list.php index d88b2904e..e69c397dc 100644 --- a/adm/poll_list.php +++ b/adm/poll_list.php @@ -9,7 +9,7 @@ $token = get_token(); $sql_common = " from {$g4['poll_table']} "; $sql_search = " where (1) "; -if ($stx) { +if (isset($stx)) { $sql_search .= " and ( "; switch ($sfl) { default : @@ -123,7 +123,7 @@ if ($pagelist) {?> document.fsearch.sfl.value = \''.$sfl.'\';'.PHP_EOL; ?> diff --git a/adm/popular_list.php b/adm/popular_list.php index 574f71f98..35592e1eb 100644 --- a/adm/popular_list.php +++ b/adm/popular_list.php @@ -17,7 +17,7 @@ if (is_array($_POST['chk'])) { $sql_common = " from {$g4['popular_table']} a "; $sql_search = " where (1) "; -if ($stx) { +if (isset($stx)) { $sql_search .= " and ( "; switch ($sfl) { case "pp_word" : @@ -58,7 +58,7 @@ $sql = " select * limit {$from_record}, {$rows} "; $result = sql_query($sql); -if ($stx) +if (isset($stx)) $listall = '전체목록'; $g4['title'] = '인기검색어관리'; @@ -146,7 +146,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER[ document.fsearch.sfl.value = \''.$sfl.'\';'; ?> diff --git a/adm/popular_rank.php b/adm/popular_rank.php index 5c8fc7ce9..0829e9ea5 100644 --- a/adm/popular_rank.php +++ b/adm/popular_rank.php @@ -102,7 +102,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER[ document.fsearch.sfl.value = '$sfl';"; ?>