diff --git a/adm/sms_admin/config.php b/adm/sms_admin/config.php
index 0b532b447..39d2144fb 100644
--- a/adm/sms_admin/config.php
+++ b/adm/sms_admin/config.php
@@ -90,49 +90,10 @@ if ($config['cf_sms_use'] == 'icode') { // 아이코드 사용
|
- 예) 010-123-4567"); ?>
+ 예) 010-123-4567"); ?>
|
-
- |
-
-
- >
- |
-
-
- |
-
-
-
- 레벨 이상
- |
-
-
- |
-
-
-
- |
-
-
- |
-
-
-
- |
-
-
- |
-
-
- |
-
diff --git a/adm/sms_admin/config_update.php b/adm/sms_admin/config_update.php
index b7c930176..04f4818d5 100644
--- a/adm/sms_admin/config_update.php
+++ b/adm/sms_admin/config_update.php
@@ -25,7 +25,7 @@ if (!$res)
else
$sql = "update ";
-$sql .= $g5['sms5_config_table']." set cf_phone='$cf_phone', cf_member='$cf_member', cf_level='$cf_level', cf_point='$cf_point', cf_day_count='$cf_day_count', cf_skin = '$cf_skin' ";
+$sql .= $g5['sms5_config_table']." set cf_phone='$cf_phone' ";
sql_query($sql);
diff --git a/adm/sms_admin/sms5.sql b/adm/sms_admin/sms5.sql
index a741c7832..652872219 100644
--- a/adm/sms_admin/sms5.sql
+++ b/adm/sms_admin/sms5.sql
@@ -65,12 +65,7 @@ DROP TABLE IF EXISTS `{$g5['sms5_config_table']}`;
CREATE TABLE `{$g5['sms5_config_table']}` (
`cf_phone` varchar(255) NOT NULL default '',
- `cf_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
- `cf_member` tinyint(4) NOT NULL default '1',
- `cf_level` tinyint(4) NOT NULL default '2',
- `cf_point` int(11) NOT NULL default '0',
- `cf_day_count` int(11) NOT NULL default '0',
- `cf_skin` varchar(100) NOT NULL DEFAULT ''
+ `cf_datetime` datetime NOT NULL default '0000-00-00 00:00:00'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
@@ -164,25 +159,3 @@ CREATE TABLE `{$g5['sms5_write_table']}` (
`wr_memo` text NOT NULL,
KEY `wr_no` (`wr_no`,`wr_renum`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
-
-##
-## Table structure for table `{$g5['sms5_member_history_table']}`
-##
-
-DROP TABLE IF EXISTS `{$g5['sms5_member_history_table']}`;
-
-
-CREATE TABLE `{$g5['sms5_member_history_table']}` (
- `mh_no` int(11) NOT NULL auto_increment,
- `mb_id` varchar(30) NOT NULL,
- `mh_reply` varchar(30) NOT NULL,
- `mh_hp` varchar(30) NOT NULL,
- `mh_datetime` datetime NOT NULL,
- `mh_booking` datetime NOT NULL,
- `mh_log` varchar(255) NOT NULL,
- `mh_ip` varchar(15) NOT NULL,
- PRIMARY KEY (`mh_no`),
- KEY `mb_id` (`mb_id`,`mh_datetime`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
diff --git a/extend/sms5.extend.php b/extend/sms5.extend.php
index 6405f1373..eee1022ef 100644
--- a/extend/sms5.extend.php
+++ b/extend/sms5.extend.php
@@ -22,23 +22,10 @@ $g5['sms5_book_table'] = $g5['sms5_prefix'] . 'book';
$g5['sms5_book_group_table'] = $g5['sms5_prefix'] . 'book_group';
$g5['sms5_form_table'] = $g5['sms5_prefix'] . 'form';
$g5['sms5_form_group_table'] = $g5['sms5_prefix'] . 'form_group';
-$g5['sms5_member_history_table'] = $g5['sms5_prefix'] . 'member_history';
if (!empty($config['cf_sms_use'])) {
$sms5 = sql_fetch("select * from {$g5['sms5_config_table']} ", false);
- if( $sms5['cf_member'] && trim($member['mb_hp']) ) {
- $g5['sms5_use_sideview'] = true; //회원 사이드뷰 레이어에 추가
- } else {
- $g5['sms5_use_sideview'] = false;
- }
-
- //==============================================================================
- // 스킨경로
- //------------------------------------------------------------------------------
-
- $sms5_skin_path = G5_SMS5_PATH.'/skin/'.$sms5['cf_skin']; //sms5 스킨 path
- $sms5_skin_url = G5_SMS5_URL .'/skin/'.$sms5['cf_skin']; //sms5 스킨 url
// Demo 설정
if (file_exists(G5_PATH.'/DEMO'))
diff --git a/js/common.js b/js/common.js
index 5344868bd..d20942579 100644
--- a/js/common.js
+++ b/js/common.js
@@ -503,14 +503,6 @@ var win_zip = function(frm_name, frm_zip, frm_addr1, frm_addr2, frm_addr3, frm_j
}
}
-/**
- * sms5 창
- **/
-var win_sms5 = function(href) {
- var new_win = window.open(href, 'win_sms5', 'width=474, height=560, scrollbars=1');
- new_win.focus();
-}
-
/**
* 새로운 비밀번호 분실 창 : 101123
**/
@@ -590,11 +582,6 @@ $(function(){
return false;
});
- $(".win_sms5").click(function() {
- win_sms5(this.href);
- return false;
- });
-
/*
$(".win_poll").click(function() {
win_poll(this.href);
diff --git a/lib/common.lib.php b/lib/common.lib.php
index 33a12b3fd..28b6b0657 100644
--- a/lib/common.lib.php
+++ b/lib/common.lib.php
@@ -1260,10 +1260,6 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
}
if($mb_id)
$str2 .= "전체게시물\n";
- if($g5['sms5_use_sideview']){
- $mb = get_member($mb_id, " mb_open, mb_sms , mb_hp ");
- if( $mb['mb_open'] && $mb['mb_sms'] && $mb['mb_hp'] ) $str2 .= "문자보내기\n";
- }
if($is_admin == "super" && $mb_id) {
$str2 .= "회원정보변경\n";
$str2 .= "포인트내역\n";
diff --git a/plugin/sms5/skin/basic/img/ajax-loader.gif b/plugin/sms5/skin/basic/img/ajax-loader.gif
deleted file mode 100644
index 96fefbc51..000000000
Binary files a/plugin/sms5/skin/basic/img/ajax-loader.gif and /dev/null differ
diff --git a/plugin/sms5/skin/basic/img/box_ico.gif b/plugin/sms5/skin/basic/img/box_ico.gif
deleted file mode 100644
index 9d57d3668..000000000
Binary files a/plugin/sms5/skin/basic/img/box_ico.gif and /dev/null differ
diff --git a/plugin/sms5/skin/basic/img/scemo_ico.gif b/plugin/sms5/skin/basic/img/scemo_ico.gif
deleted file mode 100644
index 625048e49..000000000
Binary files a/plugin/sms5/skin/basic/img/scemo_ico.gif and /dev/null differ
diff --git a/plugin/sms5/skin/basic/mobile.css b/plugin/sms5/skin/basic/mobile.css
deleted file mode 100644
index 24956c39b..000000000
--- a/plugin/sms5/skin/basic/mobile.css
+++ /dev/null
@@ -1,48 +0,0 @@
-#sms5_send {position:relative}
-
-.sms5_box {position:relative;padding:10px;border-radius:5px;background:#fbec99}
-.sms5_box .box_ico {position:absolute;top:20px;left:-7px;width:7px;height:13px;background:url('img/box_ico.gif') no-repeat}
-.sms5_box .box_txt {border:0;background:transparent;word-break:break-all;resize:none;overflow:hidden}
-.sms5_box .box_square {width:100px;height:90px}
-
-#send_write {padding:0 20px !important}
-#send_write h2 {padding:0 0 10px}
-#send_write .sms5_box {margin:0 0 5px;text-align:center}
-#send_write .box_txt {width:90%;height:80px}
-#wr_message_lbl {position:absolute;top:45px;left:48%;color:#999;font-size:0.95em;letter-spacing:-0.1em}
-
-.write_inner {position:relative;padding:10px 0;border-bottom:1px solid #efefef;zoom:1}
-.write_inner:after {display:block;visibility:hidden;clear:both;content:''}
-.write_inner h2 {margin:0;padding:0 0 20px !important}
-.write_floater {position:absolute;top:10px;right:0;text-align:right}
-.write_floater_btn {margin:0;padding:0;border:0;background:transparent;color:#999;font-size:0.95em;letter-spacing:-0.1em}
-
-#write_rcv {margin:0 0 10px}
-#write_rcv strong {display:inline-block;margin:0 10px 0 0}
-#write_reply label {display:inline-block;margin:0 10px 0 0;font-weight:bold}
-#write_reply #mh_reply {padding:0 5px;width:90px;height:20px;border:1px solid #e9e9e9;text-align:center;line-height:1.8em}
-
-#write_rsv .rsv_line {display:block;height:10px}
-
-.write_scemo strong {display:block;margin:0 0 10px}
-.write_scemo .scemo_btn {margin:0 0 1px;padding:10px 0;width:100%;border:0;background:#686868;color:#fff;text-align:center}
-.write_scemo .scemo_list {display:none;letter-spacing:-4px}
-.write_scemo .list_closer {margin:5px 0;text-align:right}
-.write_scemo .list_closer_btn {margin:0;padding:10px 0;width:100%;border:0;background:#383838;color:#fff;letter-spacing:0}
-.write_scemo .scemo_add {margin:0;padding:0;width:25%;height:40px;border:1px solid #e9e9e9;background:transparent;letter-spacing:0}
-#write_sc .scemo_list {margin:0 0 20px}
-
-#sms_byte {position:absolute;top:-27px;right:0;color:#999}
-
-#send_emo {position:relative;padding:20px;border-top:1px solid #e9e9e9;background:#f7f7f7}
-#send_emo h2 {margin:0 0 20px}
-#send_emo .tmp_loading {display:block;padding:180px 0 0;text-align:center}
-#send_emo #emo_sel {position:absolute;top:20px;right:20px;margin:0}
-#send_emo .emo_list {margin:0;padding:0;list-style:none}
-#send_emo li {float:left;margin:0 2% 10px 0;width:49%}
-#send_emo li:nth-of-type(even) {margin:0 0 10px}
-#send_emo .sms5_box {background:#fbec99}
-#send_emo .box_ico {display:none}
-#send_emo .box_txt {cursor:pointer}
-#send_emo .emo_tit {display:block;height:20px;line-height:2em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
-#send_emo .btn_submit {padding:0 5px;height:24px;border:1px solid #ccc;background:#fafafa;color:#000;font-size:0.95em;vertical-align:middle;cursor:pointer}
\ No newline at end of file
diff --git a/plugin/sms5/skin/basic/style.css b/plugin/sms5/skin/basic/style.css
deleted file mode 100644
index 36bb9c94f..000000000
--- a/plugin/sms5/skin/basic/style.css
+++ /dev/null
@@ -1,50 +0,0 @@
-#sms5_send {position:relative}
-
-.sms5_box {position:relative;padding:10px;border-radius:5px;background:#fbec99}
-.sms5_box .box_ico {position:absolute;top:20px;left:-7px;width:7px;height:13px;background:url('img/box_ico.gif') no-repeat}
-.sms5_box .box_txt {border:0;background:transparent;word-break:break-all;resize:none;overflow:hidden}
-.sms5_box .box_square {width:100px;height:90px}
-
-#send_write {padding:0 20px !important}
-#send_write h2 {padding:0 0 10px}
-#send_write .sms5_box {margin:0 0 5px;text-align:center}
-#send_write .box_txt {width:390px;height:80px}
-#wr_message_lbl {position:absolute;top:45px;left:200px;color:#999;font-size:0.95em;letter-spacing:-0.1em}
-
-.write_inner {position:relative;padding:10px 0;border-bottom:1px solid #efefef;zoom:1}
-.write_inner:after {display:block;visibility:hidden;clear:both;content:''}
-.write_inner h2 {margin:0;padding:0 0 10px !important}
-.write_floater {position:absolute;top:15px;right:0;text-align:right}
-.write_floater_btn {margin:0;padding:0;border:0;background:transparent;color:#999;font-size:0.95em;letter-spacing:-0.1em}
-
-#write_rcv {float:left;height:22px;line-height:1.8em}
-#write_rcv strong {display:inline-block;margin:0 10px 0 0}
-#write_reply {float:right}
-#write_reply label {display:inline-block;margin:0 10px 0 0;font-weight:bold}
-#write_reply #mh_reply {padding:0 5px;width:90px;height:20px;border:1px solid #e9e9e9;text-align:center;line-height:1.8em}
-
-.write_scemo {width:48%}
-.write_scemo strong {display:block;margin:0 0 10px}
-.write_scemo .scemo_list {letter-spacing:-4px}
-.write_scemo .scemo_add {margin:0;padding:0;height:25px;border:1px solid #e9e9e9;background:transparent;letter-spacing:0}
-#write_sc {float:left}
-#write_sc .scemo_add {width:25px}
-#write_emo {float:right}
-#write_emo .scemo_list {text-align:right}
-#write_emo .scemo_add {width:66px}
-#write_emo .emo_long {}
-
-#sms_byte {position:absolute;top:-27px;right:0;color:#999}
-
-#send_emo {position:relative;padding:20px;border-top:1px solid #e9e9e9;background:#f7f7f7}
-#send_emo h2 {margin:0 0 20px}
-#send_emo .tmp_loading {display:block;padding:180px 0 0;text-align:center}
-#send_emo #emo_sel {position:absolute;top:20px;right:20px;margin:0}
-#send_emo .emo_list {margin:0;padding:0;list-style:none}
-#send_emo li {float:left;margin:0 10px 10px 0 !important;margin:0 5px 10px 0;width:113px !important;width:110px}
-#send_emo li:nth-of-type(3n) {margin:0 0 10px !important}
-#send_emo .sms5_box {background:#fbec99}
-#send_emo .box_ico {display:none}
-#send_emo .box_txt {cursor:pointer}
-#send_emo .emo_tit {display:block;height:20px;line-height:2em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
-#send_emo .btn_submit {padding:0 5px;height:24px;border:1px solid #ccc;background:#fafafa;color:#000;font-size:0.95em;vertical-align:middle;cursor:pointer}
\ No newline at end of file
diff --git a/plugin/sms5/skin/basic/write.skin.php b/plugin/sms5/skin/basic/write.skin.php
deleted file mode 100644
index 632bdf272..000000000
--- a/plugin/sms5/skin/basic/write.skin.php
+++ /dev/null
@@ -1,378 +0,0 @@
-', 0);
-?>
-
-
-
SMS 보내기
-
-
-
-
-
-
이모티콘 목록
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/plugin/sms5/skin/basic/write_mobile.skin.php b/plugin/sms5/skin/basic/write_mobile.skin.php
deleted file mode 100644
index f8bdca77d..000000000
--- a/plugin/sms5/skin/basic/write_mobile.skin.php
+++ /dev/null
@@ -1,394 +0,0 @@
-', 0);
-?>
-
-
-
SMS 보내기
-
-
-
-
-
-
-
-
-
이모티콘 목록
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/plugin/sms5/write.php b/plugin/sms5/write.php
deleted file mode 100644
index 4a9cf412e..000000000
--- a/plugin/sms5/write.php
+++ /dev/null
@@ -1,75 +0,0 @@
- 0 && $is_admin != 'super') {
- if ($total >= $sms5['cf_day_count']) {
- $err = "하루에 보낼수 있는 문자갯수(".number_format($sms5['cf_day_count'])." 건)를 초과하였습니다.";
- alert_close($err);
- }
-}
-
-// 포인트 검사
-if (!$err and $sms5['cf_point'] > 0 && $is_admin != 'super') {
- if ($sms5['cf_point'] > $member['mb_point']) {
- $err = "보유하신 포인트(".number_format($member['mb_point'])." 포인트)가 없거나 모자라서\\n\\n문자전송(".number_format($sms5['cf_point'])." 포인트)이 불가합니다.\\n\\n포인트를 적립하신 후 다시 시도 해 주십시오.";
- alert_close($err);
- }
-}
-
-// 특정회원에게 문자 전송
-if ($mb_id) {
- $mb = get_member($mb_id);
- if (!$mb['mb_hp']) alert_close("회원 휴대폰번호가 없습니다.");
- if (!$mb['mb_open']) alert_close("정보를 공개하지 않았습니다.");
- if (!$mb['mb_sms']) alert_close("SMS 수신여부가 비활성화 되어 있습니다.");
- //$hp = $mb['mb_hp'];
-}
-
-$g5['title'] = "문자전송";
-
-$token = get_token();
-
-$emoticon_group = array();
-$qry = sql_query("select * from {$g5['sms5_form_group_table']} where fg_member = 1 order by fg_name");
-while ($res = sql_fetch_array($qry)) array_push($emoticon_group, $res);
-
-$action_url = "./write_update.php";
-
-if( G5_IS_MOBILE ){
- $write_skin_page = "/write_mobile.skin.php";
-} else {
- $write_skin_page = "/write.skin.php";
-}
-include_once ($sms5_skin_path.$write_skin_page);
-echo PHP_EOL.''.PHP_EOL;
-?>
\ No newline at end of file
diff --git a/plugin/sms5/write_update.php b/plugin/sms5/write_update.php
deleted file mode 100644
index ded3e2d8e..000000000
--- a/plugin/sms5/write_update.php
+++ /dev/null
@@ -1,170 +0,0 @@
- 0 && $is_admin != 'super') {
- $row = sql_fetch(" select count(*) as cnt from {$g5['sms5_member_history_table']} where mb_id='{$member['mb_id']}' and date_format(mh_datetime, '%Y-%m-%d') = '".G5_TIME_YMD."' ");
- if ($row['cnt'] + $total > $sms5['cf_day_count']) {
- alert("하루에 보낼수 있는 문자갯수(".number_format($sms5['cf_day_count']).")를 초과하였습니다.");
- }
-}
-
-// 포인트 검사
-if ($sms5['cf_point'] > 0 && $is_admin != 'super') {
- $minus_point = $sms5['cf_point'] * $total;
- if ($minus_point > $member['mb_point'])
- alert("보유하신 포인트(".number_format($member['mb_point']).")가 없거나 모자라서 문자전송(".number_format($minus_point).")이 불가합니다.\\n\\n포인트를 적립하신 후 다시 시도 해 주십시오.");
-} else
- $minus_point = 0;
-
-// 예약전송
-if ($mh_by && $mh_bm && $mh_bd && $mh_bh && $mh_bi) {
- $mh_booking = "$mh_by-$mh_bm-$mh_bd $mh_bh:$mh_bi:00";
- $booking = $mh_by.$mh_bm.$mh_bd.$mh_bh.$mh_bi;
-} else {
- $mh_booking = '';
- $booking = '';
-}
-
-$SMS = new SMS5;
-$SMS->SMS_con($config['cf_icode_server_ip'], $config['cf_icode_id'], $config['cf_icode_pw'], $config['cf_icode_server_port']);
-
-$mh_message = conv_unescape_nl($mh_message);
-
-$result = $SMS->Add($mh_hp, $mh_reply, '', '', $mh_message, $booking, $total);
-
-$is_success = null;
-
-if ($result)
-{
- $result = $SMS->Send();
-
- if ($result) //SMS 서버에 접속했습니다.
- {
- foreach ($SMS->Result as $result)
- {
- list($hp, $code) = explode(":", $result);
-
- if (substr($code,0,5) == "Error")
- {
- $is_success = false;
-
- switch (substr($code,6,2)) {
- case '02': // "02:형식오류"
- $mh_log = "형식이 잘못되어 전송이 실패하였습니다.";
- break;
- case '23': // "23:인증실패,데이터오류,전송날짜오류"
- $mh_log = "데이터를 다시 확인해 주시기바랍니다.";
- break;
- case '97': // "97:잔여코인부족"
- $mh_log = "잔여코인이 부족합니다.";
- break;
- case '98': // "98:사용기간만료"
- $mh_log = "사용기간이 만료되었습니다.";
- break;
- case '99': // "99:인증실패"
- $mh_log = "인증 받지 못하였습니다. 계정을 다시 확인해 주세요.";
- break;
- default: // "미 확인 오류"
- $mh_log = "알 수 없는 오류로 전송이 실패하었습니다.";
- break;
- }
- }
- else
- {
- $is_success = true;
- $mh_log = "문자전송:".get_hp($hp, 1);
- }
-
- $hp = get_hp($hp, 1);
- $log = array_shift($SMS->Log);
- sql_query("insert into {$g5['sms5_member_history_table']} set mb_id='{$member['mb_id']}', mh_reply='$mh_reply', mh_hp='$hp', mh_datetime='".G5_TIME_YMDHIS."', mh_booking='$mh_booking', mh_log='$mh_log', mh_ip='".$_SERVER['REMOTE_ADDR']."'");
-
- if ($is_admin == 'super')
- $sms5['cf_point'] = 0;
-
- if ($is_success)
- insert_point($member['mb_id'], (-1) * $sms5['cf_point'], "$mh_log");
-
- }
- $SMS->Init(); // 보관하고 있던 결과값을 지웁니다.
- }
- else alert("에러: SMS 서버와 통신이 불안정합니다.");
-}
-else alert("에러: SMS 데이터 입력도중 에러가 발생하였습니다.");
-
-alert_close("$total 건의 문자메세지 전송을 완료하였습니다.");
-?>
\ No newline at end of file