Plugin Directory

Changeset 1834495


Ignore:
Timestamp:
03/06/2018 12:58:10 PM (8 years ago)
Author:
Affilinet
Message:

Version 1.9.1
Ads.txt integration

Location:
affilinet-performance-module
Files:
170 added
3 edited
3 copied

Legend:

Unmodified
Added
Removed
  • affilinet-performance-module/tags/1.9.1/affilinet.php

    r1833829 r1834495  
    44Plugin Name: affilinet Performance Ads
    55Description: Integrate our data driven and automated performance display plugin into your WordPress platform and serve your users targeted ads in real time.
    6 Version: 1.9.0
     6Version: 1.9.1
    77Author: affilinet
    88Author URI: https://www.affili.net/de/publisher/tools/performance-ads
  • affilinet-performance-module/tags/1.9.1/readme.txt

    r1833829 r1834495  
    44Requires at least: 3.0.1
    55Tested up to: 4.9
    6 Stable tag: 1.8.7
     6Stable tag: 1.9.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8181
    8282
     83= 1.9.1 =
     84* Release Date: March 6, 2018
     85* Updating ads.txt as needed for integration
     86
    8387= 1.9.0 =
    8488* Release Date: March 3, 2018
    8589* RTB Header bidding added => increased eCPM and better Publisher Monetization
    86 
    8790
    8891= 1.8.7 =
  • affilinet-performance-module/trunk/affilinet.php

    r1833829 r1834495  
    44Plugin Name: affilinet Performance Ads
    55Description: Integrate our data driven and automated performance display plugin into your WordPress platform and serve your users targeted ads in real time.
    6 Version: 1.9.0
     6Version: 1.9.1
    77Author: affilinet
    88Author URI: https://www.affili.net/de/publisher/tools/performance-ads
  • affilinet-performance-module/trunk/classes/Plugin.php

    r1833829 r1834495  
    1919
    2020        add_filter( 'plugin_action_links_' .plugin_basename(AFFILINET_PLUGIN_FILE ), array( $this, 'plugin_add_settings_link' ) );
     21
     22        add_action( 'upgrader_process_complete', array($this, 'plugin_upgraded'));
    2123    }
    2224
     
    239241    }
    240242
     243
     244    public function plugin_upgraded() {
     245        // check for correct ads.txt
     246
     247        $filePath = ABSPATH.DIRECTORY_SEPARATOR.'ads.txt';
     248
     249        $neededContent =
     250            '# affilinet-performance-module-start' . PHP_EOL .
     251            '# Do not modify the following lines' . PHP_EOL .
     252            '# Ver. 1.9.1' . PHP_EOL .
     253            'appnexus.com, 8332, RESELLER, f5ab79cb980f11d1' . PHP_EOL .
     254            'appnexus.com, 8327, RESELLER, f5ab79cb980f11d1' . PHP_EOL .
     255            'appnexus.com, 8334, RESELLER, f5ab79cb980f11d1' . PHP_EOL .
     256            'appnexus.com, 8333, RESELLER, f5ab79cb980f11d1'. PHP_EOL .
     257            '# affilinet-performance-module-end' . PHP_EOL;
     258
     259        if (file_exists($filePath)) {
     260            $adsTxtFile = file_get_contents($filePath);
     261            if (strpos($adsTxtFile, $neededContent) === false) {
     262                // write to file
     263                file_put_contents($filePath, PHP_EOL . $neededContent, FILE_APPEND);
     264            }
     265        }else {
     266            file_put_contents($filePath, $neededContent, FILE_APPEND);
     267        }
     268
     269    }
     270
    241271}
  • affilinet-performance-module/trunk/readme.txt

    r1833829 r1834495  
    44Requires at least: 3.0.1
    55Tested up to: 4.9
    6 Stable tag: 1.8.7
     6Stable tag: 1.9.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8181
    8282
     83= 1.9.1 =
     84* Release Date: March 6, 2018
     85* Updating ads.txt as needed for integration
     86
    8387= 1.9.0 =
    8488* Release Date: March 3, 2018
    8589* RTB Header bidding added => increased eCPM and better Publisher Monetization
    86 
    8790
    8891= 1.8.7 =
Note: See TracChangeset for help on using the changeset viewer.