From b27dc23b7072e825e4286ae9cd51de0af1cd19b1 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 21 Feb 2013 18:11:47 +0900 Subject: [PATCH 1/5] =?UTF-8?q?get=5Feditor=5Fimage()=20=EC=99=80=20delete?= =?UTF-8?q?=5Feditor=5Fthumbnail()=20=ED=95=A8=EC=88=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/lib/common.lib.php b/lib/common.lib.php index be5cb2a69..5704abb15 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1720,4 +1720,34 @@ function delete_cache_latest($bo_table) unlink($filename); } } + +// 에디터 이미지 얻기 +function get_editor_image($contents) +{ + // $contents 중 img 태그 추출 + $pattern = "/]*src=[\'\"]?([^>\'\"]+".str_replace(".", "\.", $_SERVER['HTTP_HOST'])."[^>\'\"]+)[\'\"]?[^>]*>/"; + preg_match_all($pattern, $contents, $matchs); + + return $matchs; +} + +// 에디터 썸네일 삭제 +function delete_editor_thumbnail($contents) +{ + // $contents 중 img 태그 추출 + $matchs = get_editor_image($contents); + + for($i=0; $i \ No newline at end of file From c5b505c625eef88ed2c39d28cbfd0c99c949780b Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 21 Feb 2013 18:12:26 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=EC=97=90=EB=94=94=ED=84=B0=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=20=EC=B6=94=EC=B6=9C=EC=9D=84=20get=5Feditor?= =?UTF-8?q?=5Fimage()=20=ED=95=A8=EC=88=98=EB=A1=9C=20=EB=8C=80=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/thumbnail.lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index 2be693017..6abbc21d8 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -30,8 +30,7 @@ function get_view_thumbnail($contents) } // $contents 중 img 태그 추출 - $pattern = "/]*src=[\'\"]?([^>\'\"]+".str_replace(".", "\.", $_SERVER['HTTP_HOST'])."[^>\'\"]+)[\'\"]?[^>]*>/"; - preg_match_all($pattern, $contents, $matchs); + $matchs = get_editor_image($contents); for($i=0; $i Date: Thu, 21 Feb 2013 18:13:03 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=EC=97=90=EB=94=94=ED=84=B0=20=EC=8D=B8?= =?UTF-8?q?=EB=84=A4=EC=9D=BC=20=EC=82=AD=EC=A0=9C=20=EC=BD=94=EB=93=9C=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 --- bbs/delete.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bbs/delete.php b/bbs/delete.php index 5c6bf8aa9..eea6cb217 100644 --- a/bbs/delete.php +++ b/bbs/delete.php @@ -65,7 +65,7 @@ if ($row['cnt'] >= $board['bo_count_delete'] && !$is_admin) // 나라오름님 수정 : 원글과 코멘트수가 정상적으로 업데이트 되지 않는 오류를 잡아 주셨습니다. //$sql = " select wr_id, mb_id, wr_comment from $write_table where wr_parent = '$write[wr_id]' order by wr_id "; -$sql = " select wr_id, mb_id, wr_is_comment from $write_table where wr_parent = '{$write['wr_id']}' order by wr_id "; +$sql = " select wr_id, mb_id, wr_is_comment, wr_content from $write_table where wr_parent = '{$write['wr_id']}' order by wr_id "; $result = sql_query($sql); while ($row = sql_fetch_array($result)) { @@ -100,6 +100,9 @@ while ($row = sql_fetch_array($result)) } } + // 에디터 썸네일 삭제 + echo delete_editor_thumbnail($row['wr_content']); + // 파일테이블 행 삭제 sql_query(" delete from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' "); From 0a7e931fc4e6f12cfd7f9267a63730e9220004df Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 21 Feb 2013 18:33:46 +0900 Subject: [PATCH 4/5] =?UTF-8?q?overflow=20=EC=97=90=EB=9F=AC=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 --- js/wrest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/wrest.js b/js/wrest.js index 8a2d05677..60910cfe9 100644 --- a/js/wrest.js +++ b/js/wrest.js @@ -331,7 +331,7 @@ function wrestSubmit() return false; } - if (this.oldsubmit && this.oldsubmit() == false) + if (this.oldsubmit && this.oldsubmit == false) return false; return true; From b02202efe77023b5b730f495a39af87ecc924053 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 22 Feb 2013 09:49:55 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=EC=83=89=EC=83=81=EB=8C=80=EB=B9=84=20on/o?= =?UTF-8?q?ff=20=ED=85=8D=EC=8A=A4=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- head.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/head.php b/head.php index 3a2cb37b0..2ce70c5da 100644 --- a/head.php +++ b/head.php @@ -112,8 +112,10 @@ include_once(G4_LIB_PATH.'/popular.lib.php'); $cr_path = g4_path(); if($contrast_use == 'on') { $cr_uri = $cr_path['curr_url'].'?contrast=off'; + $cr = "ON"; } else { $cr_uri = $cr_path['curr_url'].'?contrast=on'; + $cr = "OFF"; } if($_SERVER['QUERY_STRING']) { $query_string = preg_replace("/contrast=(on|off)&?/", "", $_SERVER['QUERY_STRING']); @@ -123,7 +125,7 @@ include_once(G4_LIB_PATH.'/popular.lib.php'); unset($cr_path); ?>
  • - 색상대비 + 색상대비