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_ipchu_confirm_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) { 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; } $is_rs=RS("select * from farm_ipchu_confirm_log where no != '$ipchu_no' and jdate='$jdate' and parts_no='$parts_no' and dong_no='$dong_no' and contract_no='$contract_no' and plan_date_no='$plan_date_no' "); if($is_rs[no]) { $arr_rst['rst']='double'; echo json_encode($arr_rst); exit; } $rs_contract=RS("select * from farm_contract where no='$contract_no' "); $rs_plan_date=RS("select * from hatchery_jucha_plan_date where no='$plan_date_no' "); $query="update farm_ipchu_confirm_log set jdate='$jdate', farm_no='{$rs_contract[farm_no]}', contract_no='$contract_no', parts_no='$parts_no', dong_no='$dong_no', hatchery_no='{$rs_plan_date[hatchery_no]}', susu='$susu', plan_date_no='$plan_date_no', is_ipchu_request='0', farm_mody_date=now(), mody_date=now() where no='$ipchu_no' "; mysql_query($query) or die(mysql_error()); mysql_query("update farm_ipchu_confirm_log set is_auth='0' where parts_no='$parts_no' and hatchery_no='{$rs_plan_date[hatchery_no]}' ") or die(); $arr_rst['rst']='1'; echo urldecode(json_encode($arr_rst)); ?>