Changeset 1810183
- Timestamp:
- 01/26/2018 07:49:46 PM (8 years ago)
- Location:
- prime-ads/trunk
- Files:
-
- 3 edited
-
inc/services/AdsHelper.php (modified) (1 diff)
-
prime-ads.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
prime-ads/trunk/inc/services/AdsHelper.php
r1809865 r1810183 152 152 $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; 153 153 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`))))))'; 155 156 156 157 if($this->catId){ -
prime-ads/trunk/prime-ads.php
r1810141 r1810183 3 3 Plugin Name: Prime Ads 4 4 Description: Вывод рекламы с сервиса Prime Ads 5 Version: 2.0. 25 Version: 2.0.3 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. 2');21 define('ADS_VERSION', '2.0.3'); 22 22 define('ADS_DB_VERSION', '2.0.2'); 23 23 define('ADS_PATH', realpath(__DIR__)); -
prime-ads/trunk/readme.txt
r1810141 r1810183 7 7 Requires at least: 4.0 8 8 Tested up to: 4.6 9 Stable tag: 2.0. 29 Stable tag: 2.0.3 10 10 11 11 Ответная часть сервиса монитизации Prime Ads (http://primeads.ru)
Note: See TracChangeset
for help on using the changeset viewer.