示例#1
0
     //HTTP/1.1
     header('Expires: Sun, 01 Jul 2005 00:00:00 GMT');
     header('Pragma: no-cache');
     //HTTP/1.0
     //enters all the data into the database
     $checkid = md5($_POST['RefNr']);
     //
     if (isset($_COOKIE['ap_id'])) {
         $_POST['affiliate'] = $_COOKIE['ap_id'];
     }
     orderhandle($_POST, $checkid);
     if (isset($_COOKIE['ap_id'])) {
         unset($_POST['affiliate']);
     }
     $_POST['ID'] = $checkid;
     $p = new epn_class();
     $p->epn_url = 'https://www.eProcessingNetwork.com/cgi-bin/dbe/order.pl';
     // epn url
     $echoit .= $p->eshop_submit_epn_post($_POST);
     break;
 case 'process':
     // Process and order...
     // There should be no output at this point.  To process the POST data,
     // the submit_epn_post() function will output all the HTML tags which
     // contains a FORM which is submited instantaneously using the BODY onload
     // attribute.  In other words, don't echo or printf anything when you're
     // going to be calling the submit_epn_post() function.
     // This is where you would have your form validation  and all that jazz.
     // You would take your POST vars and load them into the class like below,
     // only using the POST values instead of constant string expressions.
     // For example, after ensureing all the POST variables from your custom
示例#2
0
     //enters all the data into the database
     $checkid = md5($espost['RefNr']);
     //
     if (isset($_COOKIE['ap_id'])) {
         $espost['affiliate'] = $_COOKIE['ap_id'];
     }
     orderhandle($espost, $checkid);
     if (isset($_COOKIE['ap_id'])) {
         unset($espost['affiliate']);
     }
     /*
     		//necessary evil fix
     		$_SESSION['orderhandle']=true;
     */
     $espost['ID'] = $checkid;
     $p = new epn_class();
     $p->epn_url = 'https://www.eProcessingNetwork.com/cgi-bin/dbe/order.pl';
     // epn url
     $echoit .= $p->eshop_submit_epn_post($espost);
     break;
 case 'process':
     // Process and order...
     // There should be no output at this point.  To process the POST data,
     // the submit_epn_post() function will output all the HTML tags which
     // contains a FORM which is submited instantaneously using the BODY onload
     // attribute.  In other words, don't echo or printf anything when you're
     // going to be calling the submit_epn_post() function.
     // This is where you would have your form validation  and all that jazz.
     // You would take your POST vars and load them into the class like below,
     // only using the POST values instead of constant string expressions.
     // For example, after ensureing all the POST variables from your custom