From ee75b32b3cbfd8f52cbeb8738782dae563d5b479 Mon Sep 17 00:00:00 2001 From: Kkigomi <112419763+kkigomi@users.noreply.github.com> Date: Thu, 19 Oct 2023 11:27:18 +0900 Subject: [PATCH] =?UTF-8?q?adm/index.php=20=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=EC=97=90=20=EC=BB=A8=ED=85=90=EC=B8=A0=EB=A5=BC=20=EC=82=BD?= =?UTF-8?q?=EC=9E=85=ED=95=A0=20=EC=88=98=20=EC=9E=88=EB=8A=94=20Hook=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=20(#283)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 코드 포맷 * adm/index.php 페이지에 컨텐츠를 삽입할 수 있는 Hook 추가 - adm_index_addtional_content_before - adm_index_addtional_content_after --- adm/index.php | 76 +++++++++++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/adm/index.php b/adm/index.php index 2ca6feacc..cd6eeebff 100644 --- a/adm/index.php +++ b/adm/index.php @@ -3,8 +3,10 @@ $sub_menu = '100000'; require_once './_common.php'; @require_once './safe_check.php'; + if (function_exists('social_log_file_delete')) { - social_log_file_delete(86400); //소셜로그인 디버그 파일 24시간 지난것은 삭제 + //소셜로그인 디버그 파일 24시간 지난것은 삭제 + social_log_file_delete(86400); } $g5['title'] = '관리자메인'; @@ -14,8 +16,12 @@ $new_member_rows = 5; $new_point_rows = 5; $new_write_rows = 5; -if (! auth_check_menu($auth, '200100', 'r', true)) { +$addtional_content_before = run_replace('adm_index_addtional_content_before', '', $is_admin, $auth, $member); +if ($addtional_content_before) { + echo $addtional_content_before; +} +if (!auth_check_menu($auth, '200100', 'r', true)) { $sql_common = " from {$g5['member_table']} "; $sql_search = " where (1) "; @@ -31,7 +37,7 @@ if (! auth_check_menu($auth, '200100', 'r', true)) { $sql_order = " order by {$sst} {$sod} "; - $sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} "; + $sql = " SELECT count(*) as cnt {$sql_common} {$sql_search} {$sql_order} "; $row = sql_fetch($sql); $total_count = $row['cnt']; @@ -41,11 +47,11 @@ if (! auth_check_menu($auth, '200100', 'r', true)) { $leave_count = $row['cnt']; // 차단회원수 - $sql = " select count(*) as cnt {$sql_common} {$sql_search} and mb_intercept_date <> '' {$sql_order} "; + $sql = " SELECT count(*) as cnt {$sql_common} {$sql_search} and mb_intercept_date <> '' {$sql_order} "; $row = sql_fetch($sql); $intercept_count = $row['cnt']; - $sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$new_member_rows} "; + $sql = " SELECT * {$sql_common} {$sql_search} {$sql_order} limit {$new_member_rows} "; $result = sql_query($sql); $colspan = 12; @@ -78,7 +84,7 @@ if (! auth_check_menu($auth, '200100', 'r', true)) { + ?> @@ -115,7 +121,7 @@ if (! auth_check_menu($auth, '200100', 'r', true)) { - 자료가 없습니다.'; @@ -128,18 +134,17 @@ if (! auth_check_menu($auth, '200100', 'r', true)) {
회원 전체보기
- - + ?> @@ -223,7 +228,7 @@ if (! auth_check_menu($auth, '300100', 'r', true)) { - 자료가 없습니다.'; @@ -239,19 +244,19 @@ if (! auth_check_menu($auth, '300100', 'r', true)) { '; $link2 = ''; } - ?> + ?> @@ -307,7 +312,7 @@ if (! auth_check_menu($auth, '200200', 'r', true)) { - -