Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
egg.eemo.co.kr
/
public_html
/
super5
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/egg.eemo.co.kr/public_html/super5/qr_scan_save_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(); if($type=="wifi") { if($mode=="make_scan") { mysql_query("update wifi_qrcode set prodution_date=now() , prodution_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } else if($mode=="ipgo_scan") { mysql_query("update wifi_qrcode set ipgo_date=now() , ipgo_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } else if($mode=="chulgo_scan") { mysql_query("update wifi_qrcode set chulgo_date=now() , chulgo_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } else if($mode=="install_scan") { mysql_query("update wifi_qrcode set install_date=now() , install_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } else if($mode=="qc_scan") { mysql_query("update wifi_qrcode set qc_scan_date=now() , qc_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } } else if($type=="sensor") { if($mode=="make_scan") { mysql_query("update sensor_qrcode set prodution_date=now() , prodution_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } else if($mode=="ipgo_scan") { mysql_query("update sensor_qrcode set ipgo_date=now() , ipgo_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } else if($mode=="chulgo_scan") { mysql_query("update sensor_qrcode set chulgo_date=now() , chulgo_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } else if($mode=="install_scan") { mysql_query("update sensor_qrcode set install_date=now() , install_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } else if($mode=="qc_scan") { mysql_query("update sensor_qrcode set qc_scan_date=now() , qc_scan_mem_no='{$_COOKIE[umemno]}' where vcode='$vcode' ") or die(); } } $arr_rst['rst']=1; $arr_rst['vcode']=$vcode; echo json_encode($arr_rst); ?>