-=[ Mr. Bumblebee ]=-
_Indonesia_
<?
if ( empty($total['numid'])) script_re ( '/' . 'À߸øµÈ Á¢±ÙÀÔ´Ï´Ù.') ;
$s_ordercode = ordNumber_decode ( $numid ) ;
$s_query = array() ;
if ( !empty($total['loginno'])) {
$s_query[] = " real_no = '{$total[loginno]}' " ;
$s_query[] = " real_id = '{$total[loginid]}' " ;
} else {
$s_query[] = " oname = '{$n_member_n}' " ;
$s_query[] = " oemail = '{$n_member_e}' " ;
}
$s_query[] = " ( pay_type = 'B' or (( pay_type = 'C' or pay_type = 'E' ) and n_state != 'ÀԱݴë±â' ) ) " ;
$s_query[] = " numid = '{$s_ordercode}' " ;
$query = " from tbl_{$config[ODR][1]} " ;
$query.= " where " . implode ( "and" , $s_query ) ;
$info = $exe->qry_fetch ( $query , " * " ) ;
if ( empty($info['numid'])) script_re( '/' , ' À¯È¿ÇÏÁö ¾ÊÀº Á¢±ÙÀÔ´Ï´Ù. ') ;
if ( $info['n_state'] == 'ÀԱݴë±â' && $info['pay_type'] == 'B' )
{
$exe->qry_update ( array (
'n_state' => 'Ãë¼Ò' ,
'cancel_date' => $total['now'] ) , " tbl_{$config[ODR][1]} " , " numid='{$s_ordercode}' " ) ;
if ( !empty($info['real_no'])) {
$m_info = $exe->qry_fetch(" from tbl_{$config[A02][1]} where keycode='A02' and numid='{$info[real_no]}' " , " numid , have_point " ) ;
if ( $info['in_point'] == 'Y' && $info['order_point'] > 0 ) {
$p_info = $exe->qry_fetch(" from tbl_{$config[A02][1]}_point where order_no = {$numid} and real_no = {$info[real_no]} and point > 0 order by numid desc limit 1 " , " point , totalpoint " );
if ( $p_info['point'] > 0 ) {
$exe->qry_insert ( array (
'keycode' => 'A02' ,
'write_date' => $total['now'] ,
'ip' => $total['ip'] ,
'real_no' => $info['real_no'] ,
'real_id' => $info['real_id'] ,
'order_no' => $numid ,
'point' => '-'.$p_info['point'] ,
'totalpoint' => ($p_info['totalpoint'] - $p_info['point'] ) ,
'contents' => 'ÁÖ¹® Ãë¼Ò'
) , "tbl_{$config[A02][1]}_point" ) ;
$exe->qry_update(" have_point = have_point - {$p_info[point]} " , "tbl_{$config[A02][1]}" , " numid={$info[real_no]} " ) ;
$m_info['have_point']-=$p_info['point'];
}
}
if ( $info['use_point'] == 'Y' && $info['point_price'] > 0 ) {
$exe->qry_insert ( array (
'keycode' => 'A02' ,
'write_date' => $total['now'] ,
'ip' => $total['ip'] ,
'real_no' => $info['real_no'] ,
'real_id' => $info['real_id'] ,
'order_no' => $numid ,
'point' => $info['point_price'] ,
'totalpoint' => ($m_info['have_point'] + $info['point_price'] ) ,
'contents' => 'ÁÖ¹® Ãë¼Ò'
) , "tbl_{$config[A02][1]}_point" ) ;
$exe->qry_update(" have_point = have_point + {$info[point_price]} " , "tbl_{$config[A02][1]}" , " numid={$info[real_no]} " ) ;
}
}
script_re ( $total['cmnall'] . ( empty($total['loginno']) ? '&emem=' . $n_member_e . '&nmem=' . $n_member_n : '' ) . '&numid=' . $total['numid'] . '&mode=view' , ' Ãë¼ÒµÇ¾ú½À´Ï´Ù. ' ) ;
}
else
{
script_re ( $total['cmnall'] . ( empty($total['loginno']) ? '&emem=' . $n_member_e . '&nmem=' . $n_member_n : '' ) . '&numid=' . $total['numid'] . '&mode=view' , ' Ãë¼ÒÇÒ ¼ö ¾ø´Â ÁÖ¹®ÀÔ´Ï´Ù. ' ) ;
}
?>
Copyright © 2017 || Recoded By Mr.Bumblebee