Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
nonga.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/nonga.eemo.co.kr/public_html/www/farm_wifi_mody_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(); $vv2=str_replace("-","",$farm_code); $rs=RS("select * from farm where REPLACE(farm_code,'-','')='$vv2' "); $is_rs=RS("select * from wifi_device where no != '$no' and vcode='$vcode' "); if($is_rs[no]) { $arr_rst['rst']='double'; echo json_encode($arr_rst); exit; } $query="update wifi_device set wifi_code='$vcode', vcode='$vcode', vname='$vname' where no='$no' "; mysql_query($query) or die(mysql_error()); mysql_query("update wifi_device set chk_send='1' where vcode='$vcode' ") or die(); $arr_rst['rst']='1'; $arr_rst['code']=$rs[farm_code]; echo json_encode($arr_rst); ?>