change check class and method
This commit is contained in:
parent
f945ca1936
commit
2dbf6af274
1 changed files with 9 additions and 9 deletions
|
|
@ -109,7 +109,7 @@ function print_r2($var)
|
||||||
// header("location:URL") 을 대체
|
// header("location:URL") 을 대체
|
||||||
function goto_url($url)
|
function goto_url($url)
|
||||||
{
|
{
|
||||||
if (function_exists("EventHandler::triggerEvent")) {
|
if (class_exists('EventHandler') && method_exists('EventHandler', 'triggerEvent')) {
|
||||||
EventHandler::triggerEvent("gnuboard.goto_url", $url);
|
EventHandler::triggerEvent("gnuboard.goto_url", $url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -180,7 +180,7 @@ function alert($msg = '', $url = '', $error = true, $post = false)
|
||||||
{
|
{
|
||||||
global $g5, $config, $member, $is_admin;
|
global $g5, $config, $member, $is_admin;
|
||||||
|
|
||||||
if (function_exists("EventHandler::triggerEvent")) {
|
if (class_exists('EventHandler') && method_exists('EventHandler', 'triggerEvent')) {
|
||||||
EventHandler::triggerEvent("gnuboard.alert", $msg, $url, $error, $post);
|
EventHandler::triggerEvent("gnuboard.alert", $msg, $url, $error, $post);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -201,7 +201,7 @@ function alert_close($msg, $error = true)
|
||||||
{
|
{
|
||||||
global $g5;
|
global $g5;
|
||||||
|
|
||||||
if (function_exists("EventHandler::triggerEvent")) {
|
if (class_exists('EventHandler') && method_exists('EventHandler', 'triggerEvent')) {
|
||||||
EventHandler::triggerEvent("gnuboard.alert_close", $msg, $error);
|
EventHandler::triggerEvent("gnuboard.alert_close", $msg, $error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -621,7 +621,7 @@ function html_purifier($html)
|
||||||
* HTMLPurifier 설정을 변경할 수 있는 Event hook
|
* HTMLPurifier 설정을 변경할 수 있는 Event hook
|
||||||
* 리스너에서는 첫번째 인자($config)로 `HTMLPurifier_Config` 객체를 받을 수 있다
|
* 리스너에서는 첫번째 인자($config)로 `HTMLPurifier_Config` 객체를 받을 수 있다
|
||||||
*/
|
*/
|
||||||
if (function_exists("EventHandler::triggerEvent")) {
|
if (class_exists('EventHandler') && method_exists('EventHandler', 'triggerEvent')) {
|
||||||
EventHandler::triggerEvent("gnuboard.html_purifier_config", $config, [
|
EventHandler::triggerEvent("gnuboard.html_purifier_config", $config, [
|
||||||
'html' => $html,
|
'html' => $html,
|
||||||
'write' => $write,
|
'write' => $write,
|
||||||
|
|
@ -1607,7 +1607,7 @@ function sql_query($sql, $error = G5_DISPLAY_SQL_ERROR, $link = null)
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (function_exists("EventHandler::triggerEvent")) {
|
if (class_exists('EventHandler') && method_exists('EventHandler', 'triggerEvent')) {
|
||||||
EventHandler::triggerEvent("gnuboard.sql_query_after", $result, $sql, $error);
|
EventHandler::triggerEvent("gnuboard.sql_query_after", $result, $sql, $error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2318,7 +2318,7 @@ function delete_cache_latest($bo_table)
|
||||||
unlink($filename);
|
unlink($filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (function_exists("EventHandler::triggerEvent")) {
|
if (class_exists('EventHandler') && method_exists('EventHandler', 'triggerEvent')) {
|
||||||
EventHandler::triggerEvent("gnuboard.delete_cache_latest", $bo_table);
|
EventHandler::triggerEvent("gnuboard.delete_cache_latest", $bo_table);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2359,7 +2359,7 @@ function delete_editor_thumbnail($contents)
|
||||||
if (!$contents)
|
if (!$contents)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (function_exists("EventHandler::triggerEvent")) {
|
if (class_exists('EventHandler') && method_exists('EventHandler', 'triggerEvent')) {
|
||||||
EventHandler::triggerEvent("gnuboard.delete_editor_thumbnail_before", $contents);
|
EventHandler::triggerEvent("gnuboard.delete_editor_thumbnail_before", $contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2383,7 +2383,7 @@ function delete_editor_thumbnail($contents)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (function_exists("EventHandler::triggerEvent")) {
|
if (class_exists('EventHandler') && method_exists('EventHandler', 'triggerEvent')) {
|
||||||
EventHandler::triggerEvent("gnuboard.delete_editor_thumbnail_after", $contents, $matchs);
|
EventHandler::triggerEvent("gnuboard.delete_editor_thumbnail_after", $contents, $matchs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3040,7 +3040,7 @@ function member_delete($mb_id)
|
||||||
// 아이콘 삭제
|
// 아이콘 삭제
|
||||||
@unlink(G5_DATA_PATH . '/member/' . substr($mb_id, 0, 2) . '/' . $mb_id . '.gif');
|
@unlink(G5_DATA_PATH . '/member/' . substr($mb_id, 0, 2) . '/' . $mb_id . '.gif');
|
||||||
|
|
||||||
if (function_exists("EventHandler::triggerEvent")) {
|
if (class_exists('EventHandler') && method_exists('EventHandler', 'triggerEvent')) {
|
||||||
EventHandler::triggerEvent("gnuboard.member_delete_after", $mb_id);
|
EventHandler::triggerEvent("gnuboard.member_delete_after", $mb_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue