Changeset 1813914
- Timestamp:
- 02/02/2018 07:33:55 AM (8 years ago)
- Location:
- prime-ads/trunk
- Files:
-
- 2 edited
-
prime-ads.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
prime-ads/trunk/prime-ads.php
r1811649 r1813914 3 3 Plugin Name: Prime Ads 4 4 Description: Вывод рекламы с сервиса Prime Ads 5 Version: 2.0. 45 Version: 2.0.5 6 6 Author: Proffit 7 7 Author URI: http://proffit.guru/ … … 19 19 use AdsNS\SxGeo\SxGeo; 20 20 21 define('ADS_VERSION', '2.0. 4');21 define('ADS_VERSION', '2.0.5'); 22 22 define('ADS_DB_VERSION', '2.0.4'); 23 23 define('ADS_PATH', realpath(__DIR__)); … … 108 108 PrimeAds::moveFolders(); 109 109 delete_option('ads-flushed'); 110 delete_option('ads-clicks-checked'); 110 111 $update_scripts = true; 111 112 } … … 119 120 if(function_exists('w3tc_flush_all')) 120 121 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); 121 133 } 122 134 } … … 366 378 @mkdir($jci_folder); 367 379 while(false !== ($file = readdir($dir))) { 368 if (($file != '.') && ($file != '..') ) {380 if (($file != '.') && ($file != '..') && ($file != 'jquery.lc.min.js')) { 369 381 copy($jci_src . '/' . $file, $jci_folder . '/' . $file); 370 382 } … … 497 509 $primeAds = new PrimeAds(); 498 510 PrimeAds::checkHash(); 511 512 if(get_option('ads-onoff') != 'off') PrimeAds::checkClicksFile(); 499 513 500 514 if(get_option('ads-flush-w3tc')){ -
prime-ads/trunk/readme.txt
r1811649 r1813914 6 6 Tags: ads, prime ads, monetization, advert, advertising 7 7 Requires at least: 4.0 8 Tested up to: 4. 69 Stable tag: 2.0. 48 Tested up to: 4.7 9 Stable tag: 2.0.5 10 10 11 11 Ответная часть сервиса монитизации Prime Ads (http://primeads.ru)
Note: See TracChangeset
for help on using the changeset viewer.