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/ltms_gongyou_set_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"); foreach($_POST as $key => $value) { ${$key}=trim($value); } include_once("dbconn.php"); include_once("lib.php"); for($n=1;$n<=10;$n++) { $vv=${"code_".$n}; if($vv) { $rs_mycom=RS("select * from contractor_company where no='{$_COOKIE[ltms_company_no]}' "); if($vv != $rs_mycom[com_code]) { $is_com=RS("select * from contractor_company where com_code='$vv' "); if($is_com[no]) { mysql_query("update ltms_gongyou set com_code='$vv', to_companyy_no='{$is_com[no]}', regdate=now() where company_no='{$_COOKIE[ltms_company_no]}' and seq='$n' ") or die(); } } } else { mysql_query("update ltms_gongyou set com_code='', to_companyy_no='' where company_no='{$_COOKIE[ltms_company_no]}' and seq='$n' ") or die(); } } echo "<meta http-equiv='refresh' content='0;url=ltms_gongyou_set.php'>"; ?>