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/lman_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(); mysql_query("update ltman_member set auth='1', auth_date=now() where no='$no' ") or die(mysql_error()); $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' ") 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()); } $arr_rst['rst']='1'; echo json_encode($arr_rst); ?>