Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ltman.eemo.co.kr
/
public_html
/
www
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ltman.eemo.co.kr/public_html/www/ltman_ipchu_del_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) { if($key != 'farm_contract_dong') { ${$key}=mysql_real_escape_string(trim($value)); } } $arr_rst=array(); $rs_ipchu=RS("select * from farm_ipchu_confirm_log where no='$ipchu_no' "); if($rs_ipchu[is_auth]==1) { $arr_rst['rst']='is_auth'; echo json_encode($arr_rst); exit; } mysql_query("delete from farm_ipchu_confirm_log where no='$ipchu_no' ") or die(mysql_error()); mysql_query("update farm_ipchu_confirm_log set is_auth='0' where parts_no='{$rs_ipchu[parts_no]}' and hatchery_no='{$rs_ipchu[hatchery_no]}' ") or die(); $arr_rst['rst']='1'; echo urldecode(json_encode($arr_rst)); ?>