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/login_chk_do2.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 ltms_member where user_id='$id' and pass='$pass' "); echo "select * from ltms_member where user_id='$id' and pass='$pass' "; $rs_com=RS("select * from ltms_company_member where user_id='$id' "); $rs_auth=RS("select * from signup_history where user_id='$id' "); $rs_comcode=RS("select * from contractor_company where com_code='$com_code' "); if(!$rs_comcode[no]) { $rst='no_code'; $arr_rst['rst']=$rst; $arr_rst['msg']=urlencode($rs_auth[user_history]); echo urldecode(json_encode($arr_rst)); exit; } else { $rs_com_man=RS("select * from ltms_company_member where ltms_member_no='{$rs[no]}' and company_no='{$rs_comcode[no]}' "); if(!$rs_com_man[no]) { $rst='wrong_code'; $arr_rst['rst']=$rst; $arr_rst['msg']=urlencode($rs_auth[user_history]); echo urldecode(json_encode($arr_rst)); exit; } } if(!$rs[no]) { $rst='0'; } else if($rs[auth]=="0") { $rst='wait'; } else if($rs[auth]=="1") { $rst='1'; } /* else if($rs_com[user_company_status]=="USER_RETURN") { $rst='reject'; } else if($rs_com[user_company_status]=="USER_DROP") { $rst='drop'; } */ $arr_rst['rst']=$rst; $arr_rst['msg']=urlencode($rs_auth[user_history]); echo urldecode(json_encode($arr_rst)); ?>