From c2dbb749207fe50367e81126358f8393faa086d6 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 5 Jun 2020 17:51:23 +0900 Subject: [PATCH 1/4] =?UTF-8?q?hook=20class=20filters=20=EB=A9=94=EC=86=8C?= =?UTF-8?q?=EB=93=9C=EC=97=90=EC=84=9C=20=EC=A4=91=EC=B2=A9=EC=9D=B4=20?= =?UTF-8?q?=EC=95=88=EB=90=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Hook/hook.extends.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Hook/hook.extends.class.php b/lib/Hook/hook.extends.class.php index fd8b7cb82..47e9e4348 100644 --- a/lib/Hook/hook.extends.class.php +++ b/lib/Hook/hook.extends.class.php @@ -87,6 +87,9 @@ Class GML_Hook extends Hook { foreach ($filters as $priority) { foreach ($priority as $filter) { + if( isset($args[0]) ){ + $args[0] = $value; + } $replace = $that->runAction($filter, $args); if( ! is_null($replace) ) { From 8c49fbafb8cf904aceb5fb2b328f95053d1cc01f Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 10 Jun 2020 10:48:56 +0900 Subject: [PATCH 2/4] =?UTF-8?q?5.4.2.6=20=ED=8C=A8=EC=B9=98=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=9E=98=EB=AA=BB=20=EC=88=98=EC=A0=95=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=BA=A1=EC=B1=A0=20mp3=EA=B0=80=20=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=EB=90=98=EC=A7=80=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/kcaptcha/kcaptcha_mp3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/kcaptcha/kcaptcha_mp3.php b/plugin/kcaptcha/kcaptcha_mp3.php index 0d87b5a8c..48b3744fe 100644 --- a/plugin/kcaptcha/kcaptcha_mp3.php +++ b/plugin/kcaptcha/kcaptcha_mp3.php @@ -37,7 +37,7 @@ function make_mp3() set_session("ss_captcha_save", $number); - return G5_URL.'/'.$mp3_file; + return G5_DATA_URL.'/'.$mp3_file; } echo make_mp3(); From 8aaafeddf67ccb81363995d7650238cb78db0539 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 10 Jun 2020 11:34:07 +0900 Subject: [PATCH 3/4] =?UTF-8?q?5.4=20=EB=B2=84=EC=A0=84=20=ED=9A=8C?= =?UTF-8?q?=EC=9B=90=ED=83=88=ED=87=B4=EC=99=80=20=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=EA=B6=8C=ED=95=9C=EC=84=A4=EC=A0=95=EC=97=90=20=EC=9D=B4?= =?UTF-8?q?=EB=B2=A4=ED=8A=B8=20HOOK=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/auth_list_delete.php | 2 ++ adm/auth_update.php | 2 ++ lib/common.lib.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/adm/auth_list_delete.php b/adm/auth_list_delete.php index 0327c1889..c378d75ec 100644 --- a/adm/auth_list_delete.php +++ b/adm/auth_list_delete.php @@ -28,6 +28,8 @@ for ($i=0; $i<$count; $i++) $sql = " delete from {$g5['auth_table']} where mb_id = '".$mb_id."' and au_menu = '".$au_menu."' "; sql_query($sql); + + run_event('adm_auth_delete_member', $mb_id, $au_menu); } goto_url('./auth_list.php?'.$qstr); diff --git a/adm/auth_update.php b/adm/auth_update.php index 1e2bc15a8..4b0a58fef 100644 --- a/adm/auth_update.php +++ b/adm/auth_update.php @@ -43,5 +43,7 @@ if( str_replace('-', '', G5_TIME_YMD) !== get_session('adm_auth_update') ){ set_session('adm_auth_update', str_replace('-', '', G5_TIME_YMD)); } +run_event('adm_auth_update', $mb); + goto_url('./auth_list.php?'.$qstr); ?> diff --git a/lib/common.lib.php b/lib/common.lib.php index 28d11c731..da968e569 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -3150,6 +3150,8 @@ function member_delete($mb_id) // 프로필 이미지 삭제 @unlink(G5_DATA_PATH.'/member_image/'.substr($mb_id,0,2).'/'.$mb_id.'.gif'); + + run_event('member_delete_after', $mb_id); } // 이메일 주소 추출 From 5aa60540fa136c0207612dc199946833682b2403 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 11 Jun 2020 11:18:22 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=EB=B2=84=EC=A0=84=205.4.2.7=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.php b/config.php index 52ce9e104..5d688bfda 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,7 @@ ********************/ define('G5_VERSION', '그누보드5'); -define('G5_GNUBOARD_VER', '5.4.2.6'); +define('G5_GNUBOARD_VER', '5.4.2.7'); // 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음 define('_GNUBOARD_', true);