From 18823b65e6442f2d55b56cf98343303722953b2f Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 28 Feb 2013 11:09:28 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EC=BA=A1=EC=B1=A0=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=EB=A5=BC=20png=20=EC=97=90=EC=84=9C=20jpeg=20?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/gcaptcha/gcaptcha.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs/gcaptcha/gcaptcha.lib.php b/bbs/gcaptcha/gcaptcha.lib.php index b851964b4..2537f8ee7 100644 --- a/bbs/gcaptcha/gcaptcha.lib.php +++ b/bbs/gcaptcha/gcaptcha.lib.php @@ -122,7 +122,7 @@ class gcaptcha $this->captcha_filename = $this->get_captcha_filename(); - imagepng($im, G4_DATA_PATH.'/cache/gcaptcha-'.$this->captcha_filename.'.png', 0, NULL); + imagejpeg($im, G4_DATA_PATH.'/cache/gcaptcha-'.$this->captcha_filename.'.jpg'); imagedestroy($im); $this->make_wav($this->captcha_filename.'.wav'); From 3482d9e99572d4277cc2b93c7e4eb113674a538e Mon Sep 17 00:00:00 2001 From: whitedot Date: Thu, 28 Feb 2013 13:25:19 +0900 Subject: [PATCH 2/2] =?UTF-8?q?png=20->=20jpg=20=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/gcaptcha/gcaptcha.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bbs/gcaptcha/gcaptcha.lib.php b/bbs/gcaptcha/gcaptcha.lib.php index 2537f8ee7..7dd28b451 100644 --- a/bbs/gcaptcha/gcaptcha.lib.php +++ b/bbs/gcaptcha/gcaptcha.lib.php @@ -88,7 +88,7 @@ class gcaptcha set_session('ss_captcha_key', $captcha_key); // Set the content-type - //header('Content-Type: image/png'); + //header('Content-Type: image/jpeg'); // Create the image $im = imagecreatetruecolor($this->width, $this->height); @@ -172,14 +172,14 @@ function captcha_html($class="captcha") $obj = new gcaptcha(); $obj->run(); - $png_file_url = G4_DATA_URL.'/cache/gcaptcha-'.$obj->captcha_filename.'.png'; + $jpg_file_url = G4_DATA_URL.'/cache/gcaptcha-'.$obj->captcha_filename.'.jpg'; $wav_file_url = G4_DATA_URL.'/cache/gcaptcha-'.$obj->captcha_filename.'.wav'; $html .= PHP_EOL.''; $html .= PHP_EOL.''; $html .= '
'; $html .= '스팸방지'; - $html .= '스팸방지 숫자'; + $html .= '스팸방지 숫자'; $html .= '숫자를 음성으로 듣기'; $html .= ''; $html .= '

스팸방지 숫자를 순서대로 입력하세요.

';