Changeset 2692612
- Timestamp:
- 03/11/2022 01:57:30 PM (4 years ago)
- Location:
- addefend-easy-integration
- Files:
-
- 1 added
- 4 edited
- 12 copied
-
tags/1.12 (added)
-
tags/1.12/Components (copied) (copied from addefend-easy-integration/trunk/Components)
-
tags/1.12/Components/proxy_integration.php (copied) (copied from addefend-easy-integration/trunk/Components/proxy_integration.php)
-
tags/1.12/Components/proxy_internal_forwarding.php (copied) (copied from addefend-easy-integration/trunk/Components/proxy_internal_forwarding.php) (1 diff)
-
tags/1.12/Components/script_integration.php (copied) (copied from addefend-easy-integration/trunk/Components/script_integration.php)
-
tags/1.12/Utils (copied) (copied from addefend-easy-integration/trunk/Utils)
-
tags/1.12/Utils/misc.php (copied) (copied from addefend-easy-integration/trunk/Utils/misc.php) (1 diff)
-
tags/1.12/View (copied) (copied from addefend-easy-integration/trunk/View)
-
tags/1.12/View/options.php (copied) (copied from addefend-easy-integration/trunk/View/options.php)
-
tags/1.12/addefend-easy-integration.php (copied) (copied from addefend-easy-integration/trunk/addefend-easy-integration.php) (1 diff)
-
tags/1.12/assets (copied) (copied from addefend-easy-integration/trunk/assets)
-
tags/1.12/license.txt (copied) (copied from addefend-easy-integration/trunk/license.txt)
-
tags/1.12/readme.txt (copied) (copied from addefend-easy-integration/trunk/readme.txt) (3 diffs)
-
trunk/Components/proxy_internal_forwarding.php (modified) (1 diff)
-
trunk/Utils/misc.php (modified) (1 diff)
-
trunk/addefend-easy-integration.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
addefend-easy-integration/tags/1.12/Components/proxy_internal_forwarding.php
r2688771 r2692612 18 18 $headers = getHeaders(); 19 19 $headers["X-Forwarded-For"] = $_SERVER['REMOTE_ADDR']; 20 $headers['Connection']= 'close'; 20 21 $streamHeaders = ''; 21 22 foreach ($headers as $key => $value) { 22 if ($key === "Cookie") { 23 $patterns = array("/ xdef[^;]*;/", "/ ade[^;]*;/"); 24 foreach ($patterns as $patternValue) { 25 $output = array(); 26 preg_match_all($patternValue, " " . $value, $output, PREG_PATTERN_ORDER); 27 $cookie = implode('', $output[0]); 28 } 29 if (isset($cookie) && strlen($cookie) !== 0) { 30 $streamHeaders .= "$key: $cookie" . "\r\n"; 31 } 32 } else { 33 $streamHeaders .= "$key: $value" . "\r\n"; 34 } 23 $streamHeaders .= "$key: $value" . "\r\n"; 35 24 } 36 $streamHeaders .= 'Connection: close' . "\r\n";37 25 38 26 $opts = array( -
addefend-easy-integration/tags/1.12/Utils/misc.php
r2688771 r2692612 121 121 foreach ($_SERVER as $key => $value) { 122 122 if (substr($key, 0, 5) == "HTTP_") { 123 $key = str_replace(" ", "-", ucwords(strtolower(str_replace("_", "", substr($key, 5))))); 123 $key = substr($key, 5); 124 $key = str_replace("_", " ", $key); 125 $key = strtolower($key); 126 $key = ucwords($key); 127 $key = str_replace(" ", "-", $key); 124 128 $out[$key] = $value; 125 129 } -
addefend-easy-integration/tags/1.12/addefend-easy-integration.php
r2688771 r2692612 4 4 Plugin URI: https://wordpress.org/plugins/addefend-easy-integration/ 5 5 Description: The AdDefend Easy Intregration plug-in supports publishers in integrating the AdDefend anti-adblock solution. 6 Version: 1.1 16 Version: 1.12 7 7 Author: AdDefend GmbH 8 8 Author URI: https://www.addefend.com/ -
addefend-easy-integration/tags/1.12/readme.txt
r2688771 r2692612 4 4 Requires at least: 4.2 5 5 Tested up to: 5.9 6 Stable tag: 1.1 16 Stable tag: 1.12 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 17 17 18 18 By means of the *AdDefend Easy Integration Plugin*, publishers who have wordpress-based websites can now install AdDefend in a matter of seconds. You only have to configure it once using the parameters provided by AdDefend and it will do the rest. 19 20 == Prerequisites ==21 * Wordpress is running on an Apache server22 * The *rewrite module* is activated23 * WordPress has write permissions to your **.htaccess** file24 19 25 20 == Installation == … … 39 34 If it wasn't provided by AdDefend, then you will have to put in the path to where your images are stored in your server's file system. 40 35 41 = How to activate the Rewrite module? =42 43 Please execute : <code>sudo a2enmod rewrite</code>44 45 = I don't have a .htaccess file, what now? =46 47 You must have a **.htaccess** file, please create it in your website directory and make sure that Wordpress can write to it.48 49 36 == Screenshots == 50 37 1. Empty settings 51 38 52 39 == Changelog == 40 41 = 1.12 = 42 * header forwarding bugfix 53 43 54 44 = 1.11 = -
addefend-easy-integration/trunk/Components/proxy_internal_forwarding.php
r2688771 r2692612 18 18 $headers = getHeaders(); 19 19 $headers["X-Forwarded-For"] = $_SERVER['REMOTE_ADDR']; 20 $headers['Connection']= 'close'; 20 21 $streamHeaders = ''; 21 22 foreach ($headers as $key => $value) { 22 if ($key === "Cookie") { 23 $patterns = array("/ xdef[^;]*;/", "/ ade[^;]*;/"); 24 foreach ($patterns as $patternValue) { 25 $output = array(); 26 preg_match_all($patternValue, " " . $value, $output, PREG_PATTERN_ORDER); 27 $cookie = implode('', $output[0]); 28 } 29 if (isset($cookie) && strlen($cookie) !== 0) { 30 $streamHeaders .= "$key: $cookie" . "\r\n"; 31 } 32 } else { 33 $streamHeaders .= "$key: $value" . "\r\n"; 34 } 23 $streamHeaders .= "$key: $value" . "\r\n"; 35 24 } 36 $streamHeaders .= 'Connection: close' . "\r\n";37 25 38 26 $opts = array( -
addefend-easy-integration/trunk/Utils/misc.php
r2688771 r2692612 121 121 foreach ($_SERVER as $key => $value) { 122 122 if (substr($key, 0, 5) == "HTTP_") { 123 $key = str_replace(" ", "-", ucwords(strtolower(str_replace("_", "", substr($key, 5))))); 123 $key = substr($key, 5); 124 $key = str_replace("_", " ", $key); 125 $key = strtolower($key); 126 $key = ucwords($key); 127 $key = str_replace(" ", "-", $key); 124 128 $out[$key] = $value; 125 129 } -
addefend-easy-integration/trunk/addefend-easy-integration.php
r2688771 r2692612 4 4 Plugin URI: https://wordpress.org/plugins/addefend-easy-integration/ 5 5 Description: The AdDefend Easy Intregration plug-in supports publishers in integrating the AdDefend anti-adblock solution. 6 Version: 1.1 16 Version: 1.12 7 7 Author: AdDefend GmbH 8 8 Author URI: https://www.addefend.com/ -
addefend-easy-integration/trunk/readme.txt
r2688771 r2692612 4 4 Requires at least: 4.2 5 5 Tested up to: 5.9 6 Stable tag: 1.1 16 Stable tag: 1.12 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 17 17 18 18 By means of the *AdDefend Easy Integration Plugin*, publishers who have wordpress-based websites can now install AdDefend in a matter of seconds. You only have to configure it once using the parameters provided by AdDefend and it will do the rest. 19 20 == Prerequisites ==21 * Wordpress is running on an Apache server22 * The *rewrite module* is activated23 * WordPress has write permissions to your **.htaccess** file24 19 25 20 == Installation == … … 39 34 If it wasn't provided by AdDefend, then you will have to put in the path to where your images are stored in your server's file system. 40 35 41 = How to activate the Rewrite module? =42 43 Please execute : <code>sudo a2enmod rewrite</code>44 45 = I don't have a .htaccess file, what now? =46 47 You must have a **.htaccess** file, please create it in your website directory and make sure that Wordpress can write to it.48 49 36 == Screenshots == 50 37 1. Empty settings 51 38 52 39 == Changelog == 40 41 = 1.12 = 42 * header forwarding bugfix 53 43 54 44 = 1.11 =
Note: See TracChangeset
for help on using the changeset viewer.