Changeset 1362132
- Timestamp:
- 03/01/2016 09:16:30 PM (10 years ago)
- Location:
- adblock-x/trunk
- Files:
-
- 2 edited
-
adblock-x.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
adblock-x/trunk/adblock-x.php
r1358334 r1362132 3 3 * Plugin Name: AdBlock X 4 4 * Plugin URI: http://www.adblockx.com 5 * Version: 2.1. 05 * Version: 2.1.1 6 6 * Description: Plugin designed to help you examine ad-blockers' impact on your website(s). Registration required, see Settings -> AdBlock X 7 7 * Author: DDC Inc. … … 12 12 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 13 13 14 define( 'DDC_ABX_PLUGIN_VER', '2.1. 0' );14 define( 'DDC_ABX_PLUGIN_VER', '2.1.1' ); 15 15 define( 'DDC_ABX_PLUGIN_URI', plugins_url('', __FILE__) ); 16 16 define( 'DDC_ABX_PLUGIN_DIR', trailingslashit( dirname(__FILE__) ) ); … … 235 235 236 236 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 237 262 $url = "api.jdirectj.com/abl.php"; 238 263 $url .= '?'.$_SERVER['QUERY_STRING']; 264 $url .= '&ua='.urlencode($user_agent); 265 $url .= '&ip='.urlencode($ip); 239 266 $ch = curl_init(); 240 267 -
adblock-x/trunk/readme.txt
r1358334 r1362132 68 68 == Changelog == 69 69 70 = 2.1.1 = 71 * minor bug fixes 72 70 73 = 2.1.0 = 71 74 * fixed pageview and impression tracking
Note: See TracChangeset
for help on using the changeset viewer.