function get_icode_userinfo($id, $pass) { $res = get_sock('http://www.icodekorea.com/res/userinfo.php?userid=' . $id . '&userpw=' . $pass); $res = explode(';', $res); $userinfo = array('code' => $res[0], 'coin' => $res[1], 'gpay' => $res[2], 'payment' => $res[3]); return $userinfo; }
<li><a href="#anc_cf_lay">레이아웃 추가설정</a></li> <li><a href="#anc_cf_sms">SMS</a></li> <li><a href="#anc_cf_extra">여분필드</a></li> </ul>'; $frm_submit = '<div class="btn_confirm01 btn_confirm"> <input type="submit" value="확인" class="btn_submit" accesskey="s"> <a href="' . G5_URL . '/">메인으로</a> </div>'; 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']) { $res = get_sock('http://www.icodekorea.com/res/userinfo.php?userid=' . $config['cf_icode_id'] . '&userpw=' . $config['cf_icode_pw']); $res = explode(';', $res); $userinfo = array('code' => $res[0], 'coin' => $res[1], 'gpay' => $res[2], 'payment' => $res[3]); } ?> <form name="fconfigform" id="fconfigform" method="post" onsubmit="return fconfigform_submit(this);"> <input type="hidden" name="token" value="<?php echo $token; ?> " id="token"> <section id="anc_cf_basic"> <h2 class="h2_frm">홈페이지 기본환경 설정</h2> <?php echo $pg_anchor;
<?php $sub_menu = "900100"; include_once "./_common.php"; auth_check($auth[$sub_menu], "w"); check_demo(); $g5['title'] = "SMS 기본설정"; $res = get_sock("http://www.icodekorea.com/res/userinfo.php?userid={$cf_icode_id}&userpw={$cf_icode_pw}"); $res = explode(';', $res); $userinfo = array('code' => $res[0], 'coin' => $res[1], 'gpay' => $res[2], 'payment' => $res[3]); if ($userinfo['code'] == '202') { alert('아이코드 아이디와 패스워드가 맞지 않습니다.'); } if ($cf_member == '1') { $cf_member = 1; } else { $cf_member = 0; } $res = sql_fetch("select * from " . $g5['sms5_config_table'] . " limit 1"); if (!$res) { $sql = "insert into "; } 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_query($sql); // 아이코드 설정 $sql = " update {$g5['config_table']}\n set cf_sms_use = '{$cf_sms_use}',\n cf_icode_id = '{$cf_icode_id}',\n cf_icode_pw = '{$cf_icode_pw}',\n cf_icode_server_ip = '{$cf_icode_server_ip}',\n cf_icode_server_port = '{$cf_icode_server_port}' "; sql_query($sql); goto_url("./config.php");