select_balance($uid)){ $data['Error']='You do not have enough money in your account.'; }else{ $receiver=get_member_id($post['receiver']); $fees=around(($post['amount']*$data['PaymentPercent']/100)+$data['PaymentFees']); transaction( $uid, $receiver, $post['amount'], $fees, 3, 0, "Safe transaction to {$post['receiver']}" ); $post['fees']=$fees; $post['email']=get_member_email($receiver); send_email('SEND-ESCROW', $post); $post['step']--; } } }elseif($post['cancel'])$post['step']--; if($post['action']=='confirm'){ update_transaction_status($uid, $post['gid'], 1); }elseif($post['action']=='cancel'){ update_transaction_status($uid, $post['gid'], 2); } if($post['step']==1){ $post['Outgoing']=get_transactions($uid, 'outgoing', 3, 0); $post['Incoming']=get_transactions($uid, 'incoming', 3, 0); } ############################################################################### display('members'); ############################################################################### ?>