From 99163201c63a89be6c1e9ca9d2c501768f4665ed Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 19 Mar 2014 14:51:24 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=A0=EB=94=94=EC=BC=80=EC=9D=B4=EC=85=98?= =?UTF-8?q?=20=EC=82=AC=EC=9A=A9=EC=97=AC=EB=B6=80=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_delete.inc.php | 3 ++- adm/board_form_update.php | 3 ++- adm/boardgroup_form_update.php | 3 ++- bbs/delete.php | 3 ++- bbs/delete_all.php | 3 ++- bbs/move_update.php | 3 ++- bbs/write_update.php | 3 ++- config.php | 1 + 8 files changed, 15 insertions(+), 7 deletions(-) diff --git a/adm/board_delete.inc.php b/adm/board_delete.inc.php index 54bc3c53a..b3e4e3965 100644 --- a/adm/board_delete.inc.php +++ b/adm/board_delete.inc.php @@ -32,5 +32,6 @@ delete_cache_latest($tmp_bo_table); rm_rf(G5_DATA_PATH.'/file/'.$tmp_bo_table); // syndication ping -include G5_SYNDI_PATH.'/include/include.adm.board_delete.inc.php'; +if(G5_SYNDI_USE) + include G5_SYNDI_PATH.'/include/include.adm.board_delete.inc.php'; ?> \ No newline at end of file diff --git a/adm/board_form_update.php b/adm/board_form_update.php index e7c374d0e..46b49f708 100644 --- a/adm/board_form_update.php +++ b/adm/board_form_update.php @@ -386,7 +386,8 @@ if ($all_fields) { delete_cache_latest($bo_table); // syndication ping -include G5_SYNDI_PATH.'/include/include.adm.board_form_update.php'; +if(G5_SYNDI_USE) + include G5_SYNDI_PATH.'/include/include.adm.board_form_update.php'; goto_url("./board_form.php?w=u&bo_table={$bo_table}&{$qstr}"); ?> diff --git a/adm/boardgroup_form_update.php b/adm/boardgroup_form_update.php index 75af99927..3cad4e1c9 100644 --- a/adm/boardgroup_form_update.php +++ b/adm/boardgroup_form_update.php @@ -66,7 +66,8 @@ if ($w == '') { } // syndication ping -include G5_SYNDI_PATH.'/include/include.adm.boardgroup_form_update.php'; +if(G5_SYNDI_USE) + include G5_SYNDI_PATH.'/include/include.adm.boardgroup_form_update.php'; goto_url('./boardgroup_form.php?w=u&gr_id='.$gr_id.'&'.$qstr); ?> diff --git a/bbs/delete.php b/bbs/delete.php index 655854bde..fcb617436 100644 --- a/bbs/delete.php +++ b/bbs/delete.php @@ -94,7 +94,8 @@ while ($row = sql_fetch_array($result)) sql_query(" delete from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' "); // syndication ping - include G5_SYNDI_PATH.'/include/include.bbs.delete.php'; + if(G5_SYNDI_USE) + include G5_SYNDI_PATH.'/include/include.bbs.delete.php'; $count_write++; } diff --git a/bbs/delete_all.php b/bbs/delete_all.php index 4812afd39..3bfd376cd 100644 --- a/bbs/delete_all.php +++ b/bbs/delete_all.php @@ -107,7 +107,8 @@ for ($i=count($tmp_array)-1; $i>=0; $i--) sql_query(" delete from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' "); // syndication ping - include G5_SYNDI_PATH.'/include/include.bbs.delete_all.php'; + if(G5_SYNDI_USE) + include G5_SYNDI_PATH.'/include/include.bbs.delete_all.php'; $count_write++; } diff --git a/bbs/move_update.php b/bbs/move_update.php index 06293918d..64d00ba57 100644 --- a/bbs/move_update.php +++ b/bbs/move_update.php @@ -186,7 +186,8 @@ if ($sw == 'move') } // syndication ping -include G5_SYNDI_PATH.'/include/include.bbs.move_update.php'; +if(G5_SYNDI_USE) + include G5_SYNDI_PATH.'/include/include.bbs.move_update.php'; $msg = '해당 게시물을 선택한 게시판으로 '.$act.' 하였습니다.'; $opener_href = './board.php?bo_table='.$bo_table.'&page='.$page.'&'.$qstr; diff --git a/bbs/write_update.php b/bbs/write_update.php index 145f976e9..6fef84dc1 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -477,7 +477,8 @@ if ($w == '' || $w == 'r') { } // syndication ping -include G5_SYNDI_PATH.'/include/include.bbs.write_update.php'; +if(G5_SYNDI_USE) + include G5_SYNDI_PATH.'/include/include.bbs.write_update.php'; //------------------------------------------------------------------------------ // 가변 파일 업로드 diff --git a/config.php b/config.php index b11c08c6b..5994665e7 100644 --- a/config.php +++ b/config.php @@ -114,6 +114,7 @@ define('G5_PHPMAILER_PATH', G5_PLUGIN_PATH.'/'.G5_PHPMAILER_DIR); define('G5_USE_MOBILE', true); // 모바일 홈페이지를 사용하지 않을 경우 false 로 설정 define('G5_USE_CACHE', true); // 최신글등에 cache 기능 사용 여부 +define('G5_SYNDI_USE', true); // Syndication 기능 사용 여부 /********************