Changeset 1807060
- Timestamp:
- 01/22/2018 12:09:26 PM (8 years ago)
- Location:
- prime-ads/trunk
- Files:
-
- 3 edited
-
inc/services/ApiHandler.php (modified) (2 diffs)
-
prime-ads.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
prime-ads/trunk/inc/services/ApiHandler.php
r1781811 r1807060 203 203 $data['offer_post'] = self::_getStat('ads_offer_post'); 204 204 $data['counter'] = array('current' => get_option('counter_current', 0), 'total' => get_option('counter_total', 0),'allpages_current' => get_option('counter_allpages_current', 0), 'allpages_total' => get_option('counter_allpages_total', 0)); 205 update_option('counter_current', 0);206 update_option('counter_allpages_current', 0);207 205 208 206 echo json_encode(array('result' => 'ok','data' => $data, 'ver' => ADS_VERSION)); … … 220 218 $wpdb->query("UPDATE " . $wpdb->prefix . "ads_offer_post SET `views`=0, `clicks`=0, `clicks_macros`=''"); 221 219 $wpdb->query("UPDATE " . $wpdb->prefix . "ads_simple_tizer_stat SET `views`=0, `clicks`=0, `clicks_header`=0, `clicks_text`=0, `clicks_dop`=0, `clicks_image`=0"); 220 221 update_option('counter_current', 0); 222 update_option('counter_allpages_current', 0); 222 223 223 224 echo json_encode(array('result' => 'ok', 'ver' => ADS_VERSION)); -
prime-ads/trunk/prime-ads.php
r1781811 r1807060 3 3 Plugin Name: Prime Ads 4 4 Description: Вывод рекламы с сервиса Prime Ads 5 Version: 1.9. 75 Version: 1.9.8 6 6 Author: Proffit 7 7 Author URI: http://proffit.guru/ … … 19 19 use AdsNS\SxGeo\SxGeo; 20 20 21 define('ADS_VERSION', '1.9. 7');21 define('ADS_VERSION', '1.9.8'); 22 22 define('ADS_DB_VERSION', '1.7.9'); 23 23 define('ADS_PATH', realpath(__DIR__)); … … 88 88 'index.php?ads_type=$matches[1]&ads_id=$matches[2]', 89 89 'top' ); 90 if(!get_option('ads-flushed')){ 90 $ads_flushed = get_option('ads-flushed'); 91 if(!$ads_flushed || $ads_flushed != 'yes'){ 91 92 flush_rewrite_rules(); 92 update_option('ads-flushed', 'yes'); 93 $value = $ads_flushed ? $ads_flushed : 0; 94 $value++; 95 if($value == 5) $value = 'yes'; 96 update_option('ads-flushed', $value); 93 97 } 94 98 } -
prime-ads/trunk/readme.txt
r1781811 r1807060 7 7 Requires at least: 4.0 8 8 Tested up to: 4.6 9 Stable tag: 1.9. 79 Stable tag: 1.9.8 10 10 11 11 Ответная часть сервиса монитизации Prime Ads (http://primeads.ru)
Note: See TracChangeset
for help on using the changeset viewer.