Changeset 1793471
- Timestamp:
- 12/28/2017 06:48:12 AM (8 years ago)
- Location:
- payform/trunk
- Files:
-
- 2 edited
-
payform.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
payform/trunk/payform.php
r1793446 r1793471 2 2 /* 3 3 Plugin Name: PayForm 4 Version: 1.0. 84 Version: 1.0.9 5 5 Plugin URI: http://payform.me/ 6 6 Author: PayForm … … 22 22 $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10 23 23 return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4)); 24 } 25 26 function payform_base_get_the_user_ip() { 27 if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { 28 $ip = $_SERVER['HTTP_CLIENT_IP']; 29 } elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { 30 $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; 31 } else { 32 $ip = $_SERVER['REMOTE_ADDR']; 33 } 34 return apply_filters( 'wpb_get_ip', $ip ); 24 35 } 25 36 … … 123 134 )))); 124 135 125 wp_remote_get('https://payform.mautic.net/mtracking.gif?d=' . $d );136 wp_remote_get('https://payform.mautic.net/mtracking.gif?d=' . $d, array('headers'=>array('HTTP_X_FORWARDED_FOR'=>payform_base_get_the_user_ip()))); 126 137 } 127 138 register_deactivation_hook( __FILE__, 'payform_base_deactivation' ); … … 137 148 )))); 138 149 139 wp_remote_get('https://payform.mautic.net/mtracking.gif?d=' . $d );150 wp_remote_get('https://payform.mautic.net/mtracking.gif?d=' . $d, array('headers'=>array('HTTP_X_FORWARDED_FOR'=>payform_base_get_the_user_ip()))); 140 151 } 141 152 register_uninstall_hook( __FILE__, 'payform_base_uninstall' ); 142 -
payform/trunk/readme.txt
r1793446 r1793471 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.9 6 Stable tag: 1.0. 86 Stable tag: 1.0.9 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 == Changelog == 53 53 54 = 1.0.9 = 55 * Fixed bug that did not allow interoperability between other PayForm plugins 56 54 57 = 1.0.8 = 55 58 * New advanced options
Note: See TracChangeset
for help on using the changeset viewer.