- Timestamp:
- 26 Jan 2009, 08:52:01 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/interswitch_cb.py
r3870 r3874 41 41 logger.info('%s:%s illegal access, real_x_ip = %s' % (member_id,student_id,real_ip)) 42 42 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 43 44 referer = request.get('HTTP_REFERER','none') 45 real_ip = request.get('HTTP_X_REAL_IP',"none") 46 logger.info('%s, callback referer = %s, IP = %s' % (student_id,referer,real_ip)) 47 48 if referer == "": 49 logger.info('%s, no callback referrer, callback rejected, IP = %s' % (student_id,real_ip)) 50 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) 43 51 44 52 student = getattr(students,student_id) … … 91 99 92 100 if resp == '00': 93 94 101 if pay_doc.category == 'schoolfee': 95 102 if context.getStudentReviewState() == "school_fee_paid": … … 132 139 133 140 logger.info('%s received valid callback' % student_id) 134 #referer = request.get('HTTP_REFERER','none')135 #logger.info('%s valid callback referer = %s' % (student_id,referer))136 #real_ip = request.get('HTTP_X_REAL_IP',"none")137 #logger.info('%s valid callback real_ip = %s' % (student_id,real_ip))138 141 139 142 else:
Note: See TracChangeset for help on using the changeset viewer.