/home/mjc1/public_html/adm/sms_admin/config.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?php
$sub_menu 
"900100";
include_once(
"./_common.php");

auth_check($auth[$sub_menu], "r");

$g5['title'] = "SMS 기본설정";

if (!
$config['cf_icode_server_ip'])   $config['cf_icode_server_ip'] = '211.172.232.124';
if (!
$config['cf_icode_server_port']) $config['cf_icode_server_port'] = '7295';

if (
$config['cf_icode_id'] && $config['cf_icode_pw'])
{
    
$userinfo get_icode_userinfo($config['cf_icode_id'], $config['cf_icode_pw']);
}

if (!
$config['cf_icode_id'])
    
$config['cf_icode_id'] = 'sir_';

if (!
$sms5['cf_skin'])
    
$sms5['cf_skin'] = 'basic';

include_once(
G5_ADMIN_PATH.'/admin.head.php');

?>
<?php 
if (!$config['cf_icode_pw']) { ?>
<div class="local_desc01 local_desc">
    <p>
        SMS 기능을 사용하시려면 먼저 아이코드에 서비스 신청을 하셔야 합니다.<br>
        <a href="http://icodekorea.com/res/join_company_fix_a.php?sellid=sir2" target="_blank">아이코드 서비스 신청하기</a>
    </p>
</div>
<?php ?>

<?php
if ($config['cf_sms_use'] == 'icode') { // 아이코드 사용
?>
<form name="fconfig" method="post" action="./config_update.php" enctype="multipart/form-data" >
<input type="hidden" name="cf_icode_server_ip" value="<?php echo $config['cf_icode_server_ip']?>">
<input type="hidden" name="cf_sms_use" value="<?php echo $config['cf_sms_use']?>">
<div class="tbl_frm01 tbl_wrap">
    <table>
    <caption><?php echo $g5['title']; ?></caption>
    <colgroup>
        <col class="grid_4">
        <col>
    </colgroup>
    <tbody>
    <tr>
        <th scope="row"><label for="cf_icode_id">아이코드 회원아이디<strong class="sound_only"> 필수</strong></label></th>
        <td>
            <?php echo help("아이코드에서 사용하시는 회원아이디를 입력합니다."); ?>
            <input type="text" name="cf_icode_id" value="<?php echo $config['cf_icode_id']; ?>" id="cf_icode_id" required class="frm_input required">
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_icode_pw">아이코드 비밀번호<strong class="sound_only"> 필수</strong></label></th>
        <td>
            <?php echo help("아이코드에서 사용하시는 비밀번호를 입력합니다."); ?>
            <input type="password" name="cf_icode_pw" value="<?php echo $config['cf_icode_pw']; ?>" id="cf_icode_pw" required class="frm_input required">
            <?php if (!$config['cf_icode_pw']) { ?>현재 비밀번호가 입력되어 있지 않습니다.<?php ?>
        </td>
    </tr>
    <tr>
        <th scope="row">요금제</th>
        <td>
            <?php
                
if ($userinfo['payment'] == 'A') {
                   echo 
'충전제';
                    echo 
'<input type="hidden" name="cf_icode_server_port" value="7295">';
                } else if (
$userinfo['payment'] == 'C') {
                    echo 
'정액제';
                    echo 
'<input type="hidden" name="cf_icode_server_port" value="7296">';
                } else {
                    echo 
'가입해주세요.';
                    echo 
'<input type="hidden" name="cf_icode_server_port" value="7295">';
                }
            
?>
        </td>
    </tr>
    <?php if ($userinfo['payment'] == 'A') { ?>
    <tr>
        <th scope="row">충전 잔액</th>
        <td>
            <?php echo number_format($userinfo['coin'])?> 원
            <input type="button" value="충전하기" class="btn_frmline" onclick="window.open('http://icodekorea.com/company/credit_card_input.php?icode_id=<?php echo $config['cf_icode_id']?>&icode_passwd=<?php echo $config['cf_icode_pw']?>','icode_payment','width=650,height=500')">
        </td>
    </tr>
    <tr>
        <th scope="row">건별 금액</th>
        <td><?php echo number_format($userinfo['gpay'])?> 원</td>
    </tr>
    <?php ?>
    <tr>
        <th scope="row"><label for="cf_phone">회신번호<strong class="sound_only"> 필수</strong></label></th>
        <td>
            <?php echo help("회신받을 휴대폰 번호를 입력하세요. '-' 를 꼭 입력하세요.<br>예) 010-123-4567"); ?>
            <input type="text" name="cf_phone" value="<?php echo $sms5['cf_phone']; ?>" id="cf_phone" required class="frm_input required" size="12">
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_member">회원간 문자전송</label></th>
        <td>
            <?php echo help("허용에 체크하면 회원끼리 문자전송이 가능합니다.");?>
            <input type="checkbox" name="cf_member" value="1" id="cf_member" <?php echo get_checked(1$sms5['cf_member']); ?>> <label for="cf_member">허용</label>
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_level">문자전송가능 레벨</label></th>
        <td>
            <?php echo help("문자전송을 허용할 회원레벨을 선택해주세요.");?>
            <select name="cf_level" id="cf_level">
                <?php for ($i=1$i<=10$i++) { ?>
                <option value="<?php echo $i?>"<?php echo get_selected($i$sms5['cf_level']);?><?php echo $i?> </option>
                <?php ?>
            </select>
            레벨 이상
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_point">문자전송 차감 포인트<strong class="sound_only"> 필수</strong></label></th>
        <td>
            <?php echo help("회원이 문자를 전송할시에 차감할 포인트를 입력해주세요. 0이면 포인트를 차감하지 않습니다.");?>
            <input type="text" name="cf_point" value="<?php echo $sms5['cf_point']; ?>" id="cf_point" required class="frm_input required" size="5">
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_day_count">문자전송 하루제한 갯수<strong class="sound_only"> 필수</strong></label></th>
        <td>
            <?php echo help("회원이 하루에 보낼수 있는 문자 갯수를 입력해주세요. 0이면 제한하지 않습니다.");?>
            <input type="text" name="cf_day_count" value="<?php echo $sms5['cf_day_count']; ?>" id="cf_day_count" required class="frm_input required" size="5">
        </td>
    </tr>
    <tr>
        <th scope="row"><label for="cf_skin">스킨 디렉토리<strong class="sound_only">필수</strong></label></th>
        <td>
            <?php echo get_sms5_skin_select('skin''cf_skin''cf_skin'$sms5['cf_skin'], 'required'); ?>
        </td>
    </tr>
    </tbody>
    </table>
</div>

<div class="btn_confirm01 btn_confirm">
    <input type="submit" value="확인" class="btn_submit" accesskey="s">
</div>
</form>

<?php } else { ?>

<section>
    <h2 class="h2_frm">SMS 문자전송 서비스를 사용할 수 없습니다.</h2>
    <div class="local_desc01 local_desc">
        <p>
            SMS 를 사용하지 않고 있기 때문에, 문자 전송을 할 수 없습니다.<br>
            SMS 사용 설정은 <a href="../config_form.php#anc_cf_sms" class="btn_frmline">환경설정 &gt; 기본환경설정 &gt; SMS설정</a> 에서 SMS 사용을 아이코드로 변경해 주셔야 사용하실수 있습니다.
        </p>
    </div>
</section>

<?php ?>

<?php
include_once(G5_ADMIN_PATH.'/admin.tail.php');
?>