Plugin Directory

Changeset 1813914


Ignore:
Timestamp:
02/02/2018 07:33:55 AM (8 years ago)
Author:
devdmkr
Message:

update

Location:
prime-ads/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • prime-ads/trunk/prime-ads.php

    r1811649 r1813914  
    33    Plugin Name: Prime Ads
    44    Description: Вывод рекламы с сервиса Prime Ads
    5     Version: 2.0.4
     5    Version: 2.0.5
    66    Author: Proffit
    77    Author URI: http://proffit.guru/
     
    1919use AdsNS\SxGeo\SxGeo;
    2020
    21 define('ADS_VERSION', '2.0.4');
     21define('ADS_VERSION', '2.0.5');
    2222define('ADS_DB_VERSION', '2.0.4');
    2323define('ADS_PATH', realpath(__DIR__));
     
    108108            PrimeAds::moveFolders();
    109109            delete_option('ads-flushed');
     110            delete_option('ads-clicks-checked');
    110111            $update_scripts = true;
    111112        }
     
    119120            if(function_exists('w3tc_flush_all'))
    120121                update_option('ads-flush-w3tc', true);
     122        }
     123    }
     124
     125    public static function checkClicksFile()
     126    {
     127        if(get_option('ads-clicks-checked')) return;
     128        $content = file_get_contents(PrimeAds::$ADS_UPLOADS . 'jquery.lc.min.js');
     129        if(!trim($content)){
     130            ApiHandler::collectClickJs();
     131        }else{
     132            update_option('ads-clicks-checked', true);
    121133        }
    122134    }
     
    366378        @mkdir($jci_folder);
    367379        while(false !== ($file = readdir($dir))) {
    368             if (($file != '.') && ($file != '..')) {
     380            if (($file != '.') && ($file != '..') && ($file != 'jquery.lc.min.js')) {
    369381                copy($jci_src . '/' . $file, $jci_folder . '/' . $file);
    370382            }
     
    497509$primeAds = new PrimeAds();
    498510PrimeAds::checkHash();
     511
     512if(get_option('ads-onoff') != 'off') PrimeAds::checkClicksFile();
    499513
    500514if(get_option('ads-flush-w3tc')){
  • prime-ads/trunk/readme.txt

    r1811649 r1813914  
    66Tags: ads, prime ads, monetization, advert, advertising
    77Requires at least: 4.0
    8 Tested up to: 4.6
    9 Stable tag: 2.0.4
     8Tested up to: 4.7
     9Stable tag: 2.0.5
    1010
    1111Ответная часть сервиса монитизации Prime Ads (http://primeads.ru)
Note: See TracChangeset for help on using the changeset viewer.