Plugin Directory

Changeset 1793471


Ignore:
Timestamp:
12/28/2017 06:48:12 AM (8 years ago)
Author:
payform
Message:

nueva version

Location:
payform/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • payform/trunk/payform.php

    r1793446 r1793471  
    22/*
    33Plugin Name: PayForm
    4 Version: 1.0.8
     4Version: 1.0.9
    55Plugin URI: http://payform.me/
    66Author: PayForm
     
    2222    $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10
    2323    return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
     24}
     25
     26function 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 );
    2435}
    2536
     
    123134    ))));
    124135
    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())));
    126137}
    127138register_deactivation_hook( __FILE__, 'payform_base_deactivation' );
     
    137148    ))));
    138149
    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())));
    140151}
    141152register_uninstall_hook( __FILE__, 'payform_base_uninstall' );
    142 
  • payform/trunk/readme.txt

    r1793446 r1793471  
    44Requires at least: 3.0.1
    55Tested up to: 4.9
    6 Stable tag: 1.0.8
     6Stable tag: 1.0.9
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252== Changelog ==
    5353
     54= 1.0.9 =
     55* Fixed bug that did not allow interoperability between other PayForm plugins
     56
    5457= 1.0.8 =
    5558* New advanced options
Note: See TracChangeset for help on using the changeset viewer.