Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ltms.eemo.co.kr
/
public_html
/
super
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ltms.eemo.co.kr/public_html/super/ltman_auth_do.php
<? session_cache_limiter('no-cache, must-revalidate'); session_start(); header("Pragma: no-cache"); header("Cache-Control: no-cache,must-revalidate"); header("Content-Type: text/html; charset=utf-8"); include_once("dbconn.php"); include_once("lib.php"); foreach($_GET as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } foreach($_POST as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } $arr_rst=array(); $rs=RS("select * from ltman_member where no='$no' "); mysql_query("update ltman_member set is_auth='1', auth_date=now() where no='$no' ") or die(); $rs=RS("select * from ltman_member where no='$no' "); $is_rs=RS("select * from ltms_member where user_id='{$rs[id]}' "); if(!$is_rs[no]) { mysql_query("insert into ltms_member set user_id='{$rs[id]}' , pass='{$rs[pass]}', user_name='{$rs[name]}', cel='{$rs[tel]}', auth='1', is_damdang='1', mtype='company_member' ") or die(mysql_error()); $ino=mysql_insert_id(); mysql_query("insert into ltms_company_member set ltms_member_no='$ino', user_id='{$rs[id]}', company_no='{$_COOKIE[ucompany_no]}', user_level='10' ") or die(mysql_error()); } else { mysql_query("update ltms_member set is_damdang='1' where no='{$is_rs[no]}' ") or die(mysql_error()); } $data = array( 'msg' => "담당자어플 : 가입 승인 완료 ", 'tel' => $rs[tel] ); $url = "http://ltms.eemo.co.kr/super/sms_send_msg.php"; $ch = curl_init(); //curl 초기화 curl_setopt($ch, CURLOPT_URL, $url); //URL 지정하기 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //요청 결과를 문자열로 반환 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); //connection timeout 10초 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //원격 서버의 인증서가 유효한지 검사 안함 curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); //POST data curl_setopt($ch, CURLOPT_POST, true); //true시 post 전송 $response = curl_exec($ch); curl_close($ch); $arr_rst['rst']='1'; echo json_encode($arr_rst); ?>