Plugin Directory

Changeset 1362132


Ignore:
Timestamp:
03/01/2016 09:16:30 PM (10 years ago)
Author:
adblockx
Message:

Prod release

Location:
adblock-x/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • adblock-x/trunk/adblock-x.php

    r1358334 r1362132  
    33* Plugin Name: AdBlock X
    44* Plugin URI: http://www.adblockx.com
    5 * Version: 2.1.0
     5* Version: 2.1.1
    66* Description: Plugin designed to help you examine ad-blockers' impact on your website(s). Registration required, see Settings -> AdBlock X
    77* Author: DDC Inc.
     
    1212defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    1313
    14 define( 'DDC_ABX_PLUGIN_VER', '2.1.0' );
     14define( 'DDC_ABX_PLUGIN_VER', '2.1.1' );
    1515define( 'DDC_ABX_PLUGIN_URI', plugins_url('', __FILE__) );
    1616define( 'DDC_ABX_PLUGIN_DIR', trailingslashit( dirname(__FILE__) ) );
     
    235235
    236236    function abx_beacon_callback() {
     237
     238        $ip = '';
     239        if ( ! empty($_SERVER["HTTP_X_FORWARDED_FOR"]))
     240        {
     241            $ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
     242        }
     243        elseif ( ! empty($_SERVER['HTTP_X_FORWARDED']))
     244        {
     245            $ip = $_SERVER['HTTP_X_FORWARDED'];
     246        }
     247
     248        elseif ( ! empty($_SERVER['HTTP_FORWARDED_FOR']))
     249        {
     250            $ip = $_SERVER['HTTP_FORWARDED_FOR'];
     251        }
     252        elseif ( ! empty($_SERVER['HTTP_FORWARDED']))
     253        {
     254            $ip = $_SERVER['HTTP_FORWARDED'];
     255        }
     256        elseif ( ! empty($_SERVER['REMOTE_ADDR']))
     257        {
     258            $ip = $_SERVER['REMOTE_ADDR'];
     259        }
     260        $user_agent   = empty($_SERVER['HTTP_USER_AGENT']) ? '' : $_SERVER['HTTP_USER_AGENT'];
     261
    237262        $url = "api.jdirectj.com/abl.php";
    238263        $url .= '?'.$_SERVER['QUERY_STRING'];
     264        $url .= '&ua='.urlencode($user_agent);
     265        $url .= '&ip='.urlencode($ip);
    239266        $ch = curl_init();
    240267
  • adblock-x/trunk/readme.txt

    r1358334 r1362132  
    6868== Changelog ==
    6969
     70= 2.1.1 =
     71* minor bug fixes
     72
    7073= 2.1.0 =
    7174* fixed pageview and impression tracking
Note: See TracChangeset for help on using the changeset viewer.