Plugin Directory

Changeset 1810183


Ignore:
Timestamp:
01/26/2018 07:49:46 PM (8 years ago)
Author:
devdmkr
Message:

update

Location:
prime-ads/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • prime-ads/trunk/inc/services/AdsHelper.php

    r1809865 r1810183  
    152152            $sql .= " SELECT id, tags, in_rubrics, in_posts, country, region, city, by_timetable, days_of_week, from_time, to_time, not_show, shows*shows_ratio as shows, '" . $this->_functions[$i] . "' as method FROM " . $wpdb->prefix . $this->_tables[$i] . " WHERE `is_active`=1 AND `position`=" . $position;
    153153
    154             $sql .= ' AND (`by_timetable`=0 OR (`by_timetable`=1 AND `days_of_week` LIKE "%[' . date('w') . ']%" AND ((`not_show`=0 AND ((`from_time`<`to_time` AND `from_time`<=' . date('G') . ' AND `to_time`>' . date('G') . ') OR (`from_time`>`to_time` AND ((`from_time`<=' . date('G') . ' AND ' . date('G') . '<=23) OR (`to_time`>' . date('G') . ' AND ' . date('G') . '>=0))) OR (`from_time`=`to_time`))) OR (`not_show`=1 AND !((`from_time`<`to_time` AND `from_time`<=' . date('G') . ' AND `to_time`>' . date('G') . ') OR (`from_time`>`to_time` AND ((`from_time`<=' . date('G') . ' AND ' . date('G') . '<=23) OR (`to_time`>' . date('G') . ' AND ' . date('G') . '>=0))) OR (`from_time`=`to_time`))))))';
     154            $hour = date('G', time() + 3*60*60);
     155            $sql .= ' AND (`by_timetable`=0 OR (`by_timetable`=1 AND `days_of_week` LIKE "%[' . date('w') . ']%" AND ((`not_show`=0 AND ((`from_time`<`to_time` AND `from_time`<=' . $hour . ' AND `to_time`>' . $hour . ') OR (`from_time`>`to_time` AND ((`from_time`<=' . $hour . ' AND ' . $hour . '<=23) OR (`to_time`>' . $hour . ' AND ' . $hour . '>=0))) OR (`from_time`=`to_time`))) OR (`not_show`=1 AND !((`from_time`<`to_time` AND `from_time`<=' . $hour . ' AND `to_time`>' . $hour . ') OR (`from_time`>`to_time` AND ((`from_time`<=' . $hour . ' AND ' . $hour . '<=23) OR (`to_time`>' . $hour . ' AND ' . $hour . '>=0))) OR (`from_time`=`to_time`))))))';
    155156
    156157            if($this->catId){
  • prime-ads/trunk/prime-ads.php

    r1810141 r1810183  
    33    Plugin Name: Prime Ads
    44    Description: Вывод рекламы с сервиса Prime Ads
    5     Version: 2.0.2
     5    Version: 2.0.3
    66    Author: Proffit
    77    Author URI: http://proffit.guru/
     
    1919use AdsNS\SxGeo\SxGeo;
    2020
    21 define('ADS_VERSION', '2.0.2');
     21define('ADS_VERSION', '2.0.3');
    2222define('ADS_DB_VERSION', '2.0.2');
    2323define('ADS_PATH', realpath(__DIR__));
  • prime-ads/trunk/readme.txt

    r1810141 r1810183  
    77Requires at least: 4.0
    88Tested up to: 4.6
    9 Stable tag: 2.0.2
     9Stable tag: 2.0.3
    1010
    1111Ответная часть сервиса монитизации Prime Ads (http://primeads.ru)
Note: See TracChangeset for help on using the changeset viewer.