From 1355c7ef57578d5c9a2da6fef5326daee3942ce9 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 13 Oct 2014 15:13:08 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B7=B8=EB=88=84=EB=B3=B4=EB=93=9C=205.0.19?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=EC=82=AC=ED=95=AD=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/sms_admin/history_send.php | 4 ++- adm/sms_admin/history_view.php | 9 ++++-- adm/sms_admin/sms_write_send.php | 3 +- bbs/formmail_send.php | 8 +++++ bbs/search.php | 8 ++--- common.php | 31 +++++++++++++++++-- config.php | 8 +++++ js/autosave.js | 29 ++++++++--------- lib/common.lib.php | 14 +++++++-- .../skin/member/basic/register_form.skin.php | 2 +- mobile/tail.php | 2 +- plugin/editor/smarteditor2/license.txt | 16 ++++++++++ tail.php | 2 +- 13 files changed, 107 insertions(+), 29 deletions(-) create mode 100644 plugin/editor/smarteditor2/license.txt diff --git a/adm/sms_admin/history_send.php b/adm/sms_admin/history_send.php index 488e25db5..5f6b468b7 100644 --- a/adm/sms_admin/history_send.php +++ b/adm/sms_admin/history_send.php @@ -116,7 +116,9 @@ if ($result) $row['bk_hp'] = get_hp($row['bk_hp'], 1); $log = array_shift($SMS->Log); - sql_query("insert into {$g5['sms5_history_table']} set wr_no='$wr_no', wr_renum='$new_wr_renum', bg_no='{$row['bg_no']}', mb_id='{$row['mb_id']}', bk_no='{$row['bk_no']}', hs_name='{$row['hs_name']}', hs_hp='{$row['hs_hp']}', hs_datetime='".G5_TIME_YMDHIS."', hs_flag='$hs_flag', hs_code='$hs_code', hs_memo='".addslashes($hs_memo)."', hs_log='".addslashes($log)."'"); + $log = @iconv('UTF-8', 'UTF-8//IGNORE', $log); + + sql_query("insert into {$g5['sms5_history_table']} set wr_no='$wr_no', wr_renum='$new_wr_renum', bg_no='{$row['bg_no']}', mb_id='{$row['mb_id']}', bk_no='{$row['bk_no']}', hs_name='{$row['hs_name']}', hs_hp='{$row['hs_hp']}', hs_datetime='".G5_TIME_YMDHIS."', hs_flag='$hs_flag', hs_code='$hs_code', hs_memo='".addslashes($hs_memo)."', hs_log='".addslashes($log)."'", false); } $SMS->Init(); // 보관하고 있던 결과값을 지웁니다. diff --git a/adm/sms_admin/history_view.php b/adm/sms_admin/history_view.php index d65672290..8acd6396b 100644 --- a/adm/sms_admin/history_view.php +++ b/adm/sms_admin/history_view.php @@ -143,13 +143,18 @@ function all_send() if( $write['wr_memo'] ){ $tmp_wr_memo = @unserialize($write['wr_memo']); if( count($tmp_wr_memo) && is_array($tmp_wr_memo) ){ - $arr_wr_memo = array_count_values( $tmp_wr_memo['hp'] ); + if(function_exists('array_fill_keys')){ + $tmp_wr_hp = array_replace($tmp_wr_memo['hp'],array_fill_keys(array_keys($tmp_wr_memo['hp'], null),'')); + } else { + $tmp_wr_hp = $tmp_wr_memo['hp']; + } + $arr_wr_memo = @array_count_values( $tmp_wr_hp ); ?>

중복번호