ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/admin/member/ |
Upload File : |
<? include "../include/top_proc.html";//공통파일 인클루드 include "_common.php"; $param = $href; //테이블 $table = "TB_API_MANAGE"; // 회원정보 저장 if ($SqlType=="api_manage_ins") { if (!$api_agent_id) exit; $data = member_fetch(" and mb_id='{$api_agent_id}' and mb_level=12"); if(count($data)==0) { error_msg("alert('존재하지 않는 거래처입니다.');","script"); } $mb_id = $TK_MEMBER['mb_id']; $api_allow_items = implode(",", $api_allow_items); $sql = "insert into {$table} set "; $sql .= " api_agent_id='{$api_agent_id}' "; $sql .= " ,api_use='{$api_use}' "; $sql .= " ,api_allow_items='{$api_allow_items}' "; $sql .= " ,api_key='{$api_key}'"; $sql .= " ,api_allow_ip='{$api_allow_ip}' "; $sql .= " ,api_manger_name='{$api_manger_name}' "; $sql .= " ,api_manger_phone='{$api_manger_phone}' "; $sql .= " ,api_manger_email='{$api_manger_email}' "; $sql .= " ,api_memo='{$api_memo}' "; $sql .= " ,ins_dt=now() "; $sql .= " ,ins_id='{$mb_id}' "; db_query($sql); error_msg("no_alert","api_manage_list.html"); } else if ($SqlType=="api_manage_edit") { if (!$api_seq) exit; $sql="SELECT * FROM TB_API_MANAGE where api_seq='{$api_seq}' "; $data = db_fetch($sql); if(count($data)==0) { error_msg("alert('존재하지 않는 API 데이터입니다.');","script"); } $api_allow_items = implode(",", $api_allow_items); $sql = "UPDATE {$table} set "; $sql .= " api_use='{$api_use}' "; $sql .= " ,api_allow_items='{$api_allow_items}' "; $sql .= " ,api_key='{$api_key}'"; $sql .= " ,api_allow_ip='{$api_allow_ip}' "; $sql .= " ,api_manger_name='{$api_manger_name}' "; $sql .= " ,api_manger_phone='{$api_manger_phone}' "; $sql .= " ,api_manger_email='{$api_manger_email}' "; $sql .= " ,api_memo='{$api_memo}' "; $sql .= " WHERE api_seq='{$api_seq}' limit 1"; db_query($sql); error_msg("no_alert","api_manage_list.html"); }else if($SqlType=='key_generate'){ if(!$agent_id) error_msg('잘못된 방법입니다.'); $auth_key_string = "TK".$agent_id.time(); $auth_key = base64_encode($agent_id.":".md5($auth_key_string)); echo $auth_key; } ?>