From f2d63ee9be9ddb085f043e907543e8807c856f18 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Thu, 10 Oct 2013 15:48:07 +0900 Subject: [PATCH 1/4] =?UTF-8?q?KCAPTCHA=20=EC=BA=A1=EC=B1=A0=20=ED=94=8C?= =?UTF-8?q?=EB=9F=AC=EA=B7=B8=EC=9D=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/config_form.php | 19 +- adm/config_form_update.php | 2 +- bbs/formmail.php | 2 +- bbs/formmail_send.php | 2 +- bbs/memo_form.php | 2 +- bbs/memo_form_update.php | 2 +- bbs/password_lost.php | 2 +- bbs/password_lost2.php | 2 +- bbs/poll_result.php | 2 +- bbs/register_email.php | 2 +- bbs/register_email_update.php | 2 +- bbs/register_form.php | 4 +- bbs/register_form_update.php | 2 +- bbs/view_comment.php | 2 +- bbs/write.php | 2 +- bbs/write_comment_update.php | 2 +- bbs/write_update.php | 2 +- config.php | 6 +- plugin/gcaptcha/captcha.lib.php | 3 + plugin/gcaptcha/gcaptcha.js | 5 +- plugin/gcaptcha/gcaptcha.lib.php | 10 +- plugin/gcaptcha/get.php | 2 +- plugin/kcaptcha/_common.php | 3 + plugin/kcaptcha/captcha.lib.php | 3 + plugin/kcaptcha/fonts/antiqua.png | Bin 0 -> 6469 bytes plugin/kcaptcha/fonts/baskerville.png | Bin 0 -> 6439 bytes plugin/kcaptcha/fonts/batang.png | Bin 0 -> 7235 bytes plugin/kcaptcha/fonts/bookman.png | Bin 0 -> 6815 bytes plugin/kcaptcha/fonts/calisto.png | Bin 0 -> 8140 bytes plugin/kcaptcha/fonts/cambria.png | Bin 0 -> 6492 bytes plugin/kcaptcha/fonts/centaur.png | Bin 0 -> 7441 bytes plugin/kcaptcha/fonts/century.png | Bin 0 -> 6964 bytes plugin/kcaptcha/fonts/chaparral.png | Bin 0 -> 7598 bytes plugin/kcaptcha/fonts/constantia.png | Bin 0 -> 6265 bytes plugin/kcaptcha/fonts/footlight.png | Bin 0 -> 6862 bytes plugin/kcaptcha/fonts/garamond.png | Bin 0 -> 7085 bytes plugin/kcaptcha/fonts/georgia.png | Bin 0 -> 7187 bytes plugin/kcaptcha/fonts/goudy_old.png | Bin 0 -> 7077 bytes plugin/kcaptcha/fonts/kozuka.png | Bin 0 -> 7253 bytes plugin/kcaptcha/fonts/lucida.png | Bin 0 -> 6406 bytes plugin/kcaptcha/fonts/minion.png | Bin 0 -> 6996 bytes plugin/kcaptcha/fonts/palatino.png | Bin 0 -> 7136 bytes plugin/kcaptcha/fonts/perpetua.png | Bin 0 -> 6836 bytes plugin/kcaptcha/fonts/rockwell.png | Bin 0 -> 5822 bytes plugin/kcaptcha/fonts/times.png | Bin 0 -> 6848 bytes plugin/kcaptcha/fonts/warnock.png | Bin 0 -> 7655 bytes plugin/kcaptcha/img/dot.gif | Bin 0 -> 43 bytes plugin/kcaptcha/img/reload.gif | Bin 0 -> 616 bytes plugin/kcaptcha/img/sound.gif | Bin 0 -> 144 bytes plugin/kcaptcha/kcaptcha.js | 91 ++++++++ plugin/kcaptcha/kcaptcha.lib.php | 278 +++++++++++++++++++++++ plugin/kcaptcha/kcaptcha_config.php | 42 ++++ plugin/kcaptcha/kcaptcha_image.php | 11 + plugin/kcaptcha/kcaptcha_mp3.php | 44 ++++ plugin/kcaptcha/kcaptcha_result.php | 13 ++ plugin/kcaptcha/kcaptcha_session.php | 19 ++ plugin/kcaptcha/mp3/basic/0.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/basic/1.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/basic/2.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/basic/3.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/basic/4.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/basic/5.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/basic/6.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/basic/7.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/basic/8.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/basic/9.mp3 | Bin 0 -> 13259 bytes plugin/kcaptcha/mp3/jmoon/0.mp3 | Bin 0 -> 10008 bytes plugin/kcaptcha/mp3/jmoon/1.mp3 | Bin 0 -> 8340 bytes plugin/kcaptcha/mp3/jmoon/2.mp3 | Bin 0 -> 8340 bytes plugin/kcaptcha/mp3/jmoon/3.mp3 | Bin 0 -> 9174 bytes plugin/kcaptcha/mp3/jmoon/4.mp3 | Bin 0 -> 10425 bytes plugin/kcaptcha/mp3/jmoon/5.mp3 | Bin 0 -> 10008 bytes plugin/kcaptcha/mp3/jmoon/6.mp3 | Bin 0 -> 10842 bytes plugin/kcaptcha/mp3/jmoon/7.mp3 | Bin 0 -> 10008 bytes plugin/kcaptcha/mp3/jmoon/8.mp3 | Bin 0 -> 10842 bytes plugin/kcaptcha/mp3/jmoon/9.mp3 | Bin 0 -> 10425 bytes skin/member/basic/register_form.skin.php | 2 +- 77 files changed, 547 insertions(+), 38 deletions(-) create mode 100644 plugin/gcaptcha/captcha.lib.php create mode 100644 plugin/kcaptcha/_common.php create mode 100644 plugin/kcaptcha/captcha.lib.php create mode 100644 plugin/kcaptcha/fonts/antiqua.png create mode 100644 plugin/kcaptcha/fonts/baskerville.png create mode 100644 plugin/kcaptcha/fonts/batang.png create mode 100644 plugin/kcaptcha/fonts/bookman.png create mode 100644 plugin/kcaptcha/fonts/calisto.png create mode 100644 plugin/kcaptcha/fonts/cambria.png create mode 100644 plugin/kcaptcha/fonts/centaur.png create mode 100644 plugin/kcaptcha/fonts/century.png create mode 100644 plugin/kcaptcha/fonts/chaparral.png create mode 100644 plugin/kcaptcha/fonts/constantia.png create mode 100644 plugin/kcaptcha/fonts/footlight.png create mode 100644 plugin/kcaptcha/fonts/garamond.png create mode 100644 plugin/kcaptcha/fonts/georgia.png create mode 100644 plugin/kcaptcha/fonts/goudy_old.png create mode 100644 plugin/kcaptcha/fonts/kozuka.png create mode 100644 plugin/kcaptcha/fonts/lucida.png create mode 100644 plugin/kcaptcha/fonts/minion.png create mode 100644 plugin/kcaptcha/fonts/palatino.png create mode 100644 plugin/kcaptcha/fonts/perpetua.png create mode 100644 plugin/kcaptcha/fonts/rockwell.png create mode 100644 plugin/kcaptcha/fonts/times.png create mode 100644 plugin/kcaptcha/fonts/warnock.png create mode 100644 plugin/kcaptcha/img/dot.gif create mode 100644 plugin/kcaptcha/img/reload.gif create mode 100644 plugin/kcaptcha/img/sound.gif create mode 100644 plugin/kcaptcha/kcaptcha.js create mode 100644 plugin/kcaptcha/kcaptcha.lib.php create mode 100644 plugin/kcaptcha/kcaptcha_config.php create mode 100644 plugin/kcaptcha/kcaptcha_image.php create mode 100644 plugin/kcaptcha/kcaptcha_mp3.php create mode 100644 plugin/kcaptcha/kcaptcha_result.php create mode 100644 plugin/kcaptcha/kcaptcha_session.php create mode 100644 plugin/kcaptcha/mp3/basic/0.mp3 create mode 100644 plugin/kcaptcha/mp3/basic/1.mp3 create mode 100644 plugin/kcaptcha/mp3/basic/2.mp3 create mode 100644 plugin/kcaptcha/mp3/basic/3.mp3 create mode 100644 plugin/kcaptcha/mp3/basic/4.mp3 create mode 100644 plugin/kcaptcha/mp3/basic/5.mp3 create mode 100644 plugin/kcaptcha/mp3/basic/6.mp3 create mode 100644 plugin/kcaptcha/mp3/basic/7.mp3 create mode 100644 plugin/kcaptcha/mp3/basic/8.mp3 create mode 100644 plugin/kcaptcha/mp3/basic/9.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/0.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/1.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/2.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/3.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/4.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/5.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/6.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/7.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/8.mp3 create mode 100644 plugin/kcaptcha/mp3/jmoon/9.mp3 diff --git a/adm/config_form.php b/adm/config_form.php index 6b91506ed..97fd7bcf4 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -25,14 +25,17 @@ if (!isset($config['cf_mobile_new_skin'])) { ADD `cf_mobile_member_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_connect_skin` ", true); } -if(!isset($config['cf_gcaptcha_mp3'])) { +if (isset($config['cf_gcaptcha_mp3'])) { sql_query(" ALTER TABLE `{$g5['config_table']}` - ADD `cf_gcaptcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_mobile_member_skin` ", true); + CHANGE `cf_gcaptcha_mp3` `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' ", true); +} else if (!isset($config['cf_captcha_mp3'])) { + sql_query(" ALTER TABLE `{$g5['config_table']}` + ADD `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_mobile_member_skin` ", true); } if(!isset($config['cf_editor'])) { sql_query(" ALTER TABLE `{$g5['config_table']}` - ADD `cf_editor` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_gcaptcha_mp3` ", true); + ADD `cf_editor` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_captcha_mp3` ", true); } if(!isset($config['cf_googl_shorturl_apikey'])) { @@ -338,15 +341,15 @@ $pg_anchor = '