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/order_jupsu_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"); foreach($_POST as $key => $value) { ${$key}=trim($value); } if(!$_SESSION[mem_id]) { echo "<script>alert('권한이 없습니다.');history.back();</script>"; exit; } include_once("dbconn.php"); include_once("lib.php"); ini_set('max_execution_time',86400); if($z_serial) { $cupon2=str_replace("-","",strtoupper($z_serial)); $rs_serial=RS("select * from lot_serial where REPLACE(vcode,'-','')='$cupon2' "); $z_serial=$rs_serial[vcode]; } $query="update order_jupsu set pan_code='$pan_code', order_name='$order_name', suryung_name='$suryung_name', suryung_tel='$suryung_tel', suryung_zip='$suryung_zip', suryung_addr='$suryung_addr', order_su='$order_su', jumun_num='$jumun_num', suryung_cel='$suryung_cel', sangpum_name='$sangpum_name', bigo='$bigo', order_time='$order_time', price='$price', jupsu_gubun='$jupsu_gubun', songjang='$songjang', jresult='$jresult', z_serial='$z_serial', body_serial='$body_serial' where no='$no' "; mysql_query($query) or die(); if($z_serial) { $cupon2=str_replace("-","",strtoupper($z_serial)); $rs_serial=RS("select * from lot_serial where REPLACE(vcode,'-','')='$cupon2' "); $ino=$no; mysql_query("update lot_serial set order_jupsu_no='$ino', price='$price', buy_name='$order_name', buy_tel='$suryung_cel' , body_color='$sel_color' where REPLACE(vcode,'-','')='$cupon2' ") or die(); } if($body_serial) { $body2=str_replace("-","",strtoupper($body_serial)); mysql_query("update lot_serial set body_color='$sel_color' where REPLACE(vcode,'-','')='$body2' ") or die(); } $is_alton=RS("select * from zshop_purchase where order_jupsu_no='$no' "); if($is_alton[no]) { if($jresult=="취소") { mysql_query("update zshop_purchase set status='취소' where order_jupsu_no='$no' ") or die(); } else if(($is_alton[status]=="접수" || $is_alton[status]=="상품준비") && $z_serial) { mysql_query("update zshop_purchase set status='발송' where order_jupsu_no='{$rs_ss[no]}' ") or die(); } $query="update zshop_purchase set name='$suryung_name', cel='$suryung_cel', zipcode='$suryung_zip', addr1='$suryung_addr', addr2='' where order_jupsu_no='$no' "; mysql_query($query) or die(mysql_error()); } echo "<meta http-equiv='refresh' content='0;url=order_jupsu.php?c_page=$c_page&find=$find&search=$search'>"; ?>