install fix
This commit is contained in:
parent
8f2a411c7a
commit
f945ca1936
1 changed files with 31 additions and 13 deletions
|
|
@ -109,7 +109,9 @@ function print_r2($var)
|
|||
// header("location:URL") 을 대체
|
||||
function goto_url($url)
|
||||
{
|
||||
EventHandler::triggerEvent("gnuboard.goto_url", $url);
|
||||
if (function_exists("EventHandler::triggerEvent")) {
|
||||
EventHandler::triggerEvent("gnuboard.goto_url", $url);
|
||||
}
|
||||
|
||||
$url = str_replace("&", "&", $url);
|
||||
//echo "<script> location.replace('$url'); </script>";
|
||||
|
|
@ -178,7 +180,9 @@ function alert($msg = '', $url = '', $error = true, $post = false)
|
|||
{
|
||||
global $g5, $config, $member, $is_admin;
|
||||
|
||||
EventHandler::triggerEvent("gnuboard.alert", $msg, $url, $error, $post);
|
||||
if (function_exists("EventHandler::triggerEvent")) {
|
||||
EventHandler::triggerEvent("gnuboard.alert", $msg, $url, $error, $post);
|
||||
}
|
||||
|
||||
if (!$msg)
|
||||
$msg = '올바른 방법으로 이용해 주십시오.';
|
||||
|
|
@ -197,7 +201,9 @@ function alert_close($msg, $error = true)
|
|||
{
|
||||
global $g5;
|
||||
|
||||
EventHandler::triggerEvent("gnuboard.alert_close", $msg, $error);
|
||||
if (function_exists("EventHandler::triggerEvent")) {
|
||||
EventHandler::triggerEvent("gnuboard.alert_close", $msg, $error);
|
||||
}
|
||||
|
||||
$header = '';
|
||||
if (isset($g5['title'])) {
|
||||
|
|
@ -615,11 +621,13 @@ function html_purifier($html)
|
|||
* HTMLPurifier 설정을 변경할 수 있는 Event hook
|
||||
* 리스너에서는 첫번째 인자($config)로 `HTMLPurifier_Config` 객체를 받을 수 있다
|
||||
*/
|
||||
EventHandler::triggerEvent("gnuboard.html_purifier_config", $config, [
|
||||
'html' => $html,
|
||||
'write' => $write,
|
||||
'is_admin' => $is_admin
|
||||
]);
|
||||
if (function_exists("EventHandler::triggerEvent")) {
|
||||
EventHandler::triggerEvent("gnuboard.html_purifier_config", $config, [
|
||||
'html' => $html,
|
||||
'write' => $write,
|
||||
'is_admin' => $is_admin
|
||||
]);
|
||||
}
|
||||
|
||||
$purifier = new HTMLPurifier($config);
|
||||
|
||||
|
|
@ -1599,7 +1607,9 @@ function sql_query($sql, $error = G5_DISPLAY_SQL_ERROR, $link = null)
|
|||
return null;
|
||||
}
|
||||
|
||||
EventHandler::triggerEvent("gnuboard.sql_query_after", $result, $sql, $error);
|
||||
if (function_exists("EventHandler::triggerEvent")) {
|
||||
EventHandler::triggerEvent("gnuboard.sql_query_after", $result, $sql, $error);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
@ -2308,7 +2318,9 @@ function delete_cache_latest($bo_table)
|
|||
unlink($filename);
|
||||
}
|
||||
|
||||
EventHandler::triggerEvent("gnuboard.delete_cache_latest", $bo_table);
|
||||
if (function_exists("EventHandler::triggerEvent")) {
|
||||
EventHandler::triggerEvent("gnuboard.delete_cache_latest", $bo_table);
|
||||
}
|
||||
}
|
||||
|
||||
// 게시판 첨부파일 썸네일 삭제
|
||||
|
|
@ -2347,7 +2359,9 @@ function delete_editor_thumbnail($contents)
|
|||
if (!$contents)
|
||||
return;
|
||||
|
||||
EventHandler::triggerEvent("gnuboard.delete_editor_thumbnail_before", $contents);
|
||||
if (function_exists("EventHandler::triggerEvent")) {
|
||||
EventHandler::triggerEvent("gnuboard.delete_editor_thumbnail_before", $contents);
|
||||
}
|
||||
|
||||
// $contents 중 img 태그 추출
|
||||
$matchs = get_editor_image($contents);
|
||||
|
|
@ -2369,7 +2383,9 @@ function delete_editor_thumbnail($contents)
|
|||
}
|
||||
}
|
||||
|
||||
EventHandler::triggerEvent("gnuboard.delete_editor_thumbnail_after", $contents, $matchs);
|
||||
if (function_exists("EventHandler::triggerEvent")) {
|
||||
EventHandler::triggerEvent("gnuboard.delete_editor_thumbnail_after", $contents, $matchs);
|
||||
}
|
||||
}
|
||||
|
||||
// 1:1문의 첨부파일 썸네일 삭제
|
||||
|
|
@ -3024,7 +3040,9 @@ function member_delete($mb_id)
|
|||
// 아이콘 삭제
|
||||
@unlink(G5_DATA_PATH . '/member/' . substr($mb_id, 0, 2) . '/' . $mb_id . '.gif');
|
||||
|
||||
EventHandler::triggerEvent("gnuboard.member_delete_after", $mb_id);
|
||||
if (function_exists("EventHandler::triggerEvent")) {
|
||||
EventHandler::triggerEvent("gnuboard.member_delete_after", $mb_id);
|
||||
}
|
||||
}
|
||||
|
||||
// 이메일 주소 추출
|
||||
|
|
|
|||
Loading…
Reference in a new issue