SHARE
TWEET

webpay inyeccion

a guest Dec 24th, 2013 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2. if($_REQUEST['status'] == "success" ){
  3.   global $webpay_table_name;
  4.   global $wpdb;
  5.   $order_id = explode('_', $_REQUEST['order']);
  6.   $order_id = (int) $order_id[0];
  7.  
  8.   $order = new WC_Order($order_id);
  9.   if($order->status!="success" && $order->status!="processing"){
  10.  
  11.     header('Location: http://www.floresrosadesaron.cl/?page_id=14&status=failure&order='.$order_id.'&key='.$_REQUEST['key']);
  12.  
  13.   }
  14.  /* $paramArr = array();
  15.   $myOrderDetails = $wpdb->get_row("SELECT * FROM $webpay_table_name WHERE idOrder = $order_id", ARRAY_A);
  16.   if ($myOrderDetails){
  17.     if($myOrderDetails['TBK_CODIGO_AUTORIZACION'] == 0)
  18.     {
  19.       $error_orden = 1;
  20. // die(‘RECHAZADO’);
  21.       header('Location: http://www.floresrosadesaron.cl/');
  22.     }*/
  23.   /*}*/
  24.  
  25.  
  26.  
  27. }
  28. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top