[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 init_paypal_ipn_sessions.php

Zen Cart 源代码 init_paypal_ipn_sessions.php




下载文件

文件名: init_paypal_ipn_sessions.php
文件类型: PHP文件
文件大小: 2.12 KiB
MD5: 196589e4e4f3f8e31f8b876aa508fb64

init_paypal_ipn_sessions.php - 关闭高亮
  1. <?php
  2. /**
  3.  * Session processing specific to PayPal Website Payments Standard IPN handling
  4.  *
  5.  * @package initSystem
  6.  * @copyright Copyright 2003-2009 Zen Cart Development Team
  7.  * @copyright Portions Copyright 2003 osCommerce
  8.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  9.  * @version $Id: init_paypal_ipn_sessions.php 14422 2009-09-13 04:42:03Z drbyte $
  10.  */
  11. if (!defined('IS_ADMIN_FLAG')) {
  12.   die('Illegal Access');
  13. }
  14.  
  15. /**
  16.  * Begin processing. Add notice to log if logging enabled.
  17.  */
  18.   ipn_debug_email('IPN PROCESSING INITIATED. ' . "\n" . '*** Originating IP: ' . $_SERVER['REMOTE_ADDR'] . '  ' . (SESSION_IP_TO_HOST_ADDRESS == 'true' ? @gethostbyaddr($_SERVER['REMOTE_ADDR']) : '') . ($_SERVER['HTTP_USER_AGENT'] == '' ? '' : "\n" . '*** Browser/User Agent: ' . $_SERVER['HTTP_USER_AGENT']));
  19.  
  20. // need to see if we are in test mode. If so then the data is going to come in as a GET string
  21.   if (defined('MODULE_PAYMENT_PAYPAL_TESTING') && MODULE_PAYMENT_PAYPAL_TESTING == 'Test') {
  22.     foreach ($_GET as $key=>$value) {
  23.       $_POST[$key] = $value;
  24.     }
  25.   }
  26.   if (!$_POST) {
  27.     ipn_debug_email('IPN FATAL ERROR :: No POST data available -- Most likely initiated by browser and not PayPal.' . "\n\n\n" . '     *** The rest of this log report can most likely be ignored !! ***' . "\n\n\n\n");
  28.      //if ($show_all_errors) echo 'No POST data. This is not a real IPN transaction. Any "Undefined" errors below can be ignored ...<br />';
  29.   }
  30.  
  31.  
  32.   $session_post = isset($_POST['custom']) ? $_POST['custom'] : '=';
  33.   $session_stuff = explode('=', $session_post);
  34.   $ipnFoundSession = true;
  35.   if (!$isECtransaction && !isset($_POST['parent_txn_id']) && ipn_get_stored_session($session_stuff) === false) {
  36.     ipn_debug_email('IPN ERROR :: No saved Website Payments Standard session data available. Must be an Express Checkout or Direct Pay transaction.' . "\n" . 'Could be a test notification, or the incoming IPN notification is not actually a bonafide PayPal transaction.' . "\n" . 'NOTE: It is likely that all the following log content is meaningless or irrelevant.');
  37.     $ipnFoundSession = false;
  38.   }
  39.  


cron