AdRotate Banner Manager - Version 5.8.25

Version Description

Enjoy this update with the latest tweaks and improvements for AdRotate for WordPress!

Download this release

Release Info

Developer adegans
Plugin Icon 128x128 AdRotate Banner Manager
Version 5.8.25
Comparing to
See all releases

Code changes from version 5.8.24 to 5.8.25

adrotate-manage-publisher.php CHANGED
@@ -449,11 +449,11 @@ function adrotate_insert_media() {
449
  else $errorcode = '';
450
  adrotate_return('adrotate-media', $errorcode); // Other error
451
  } else {
452
- if(!move_uploaded_file($_FILES["adrotate_image"]["tmp_name"], $file_path.$file_name.'.'.$file_extension)) {
453
  adrotate_return('adrotate-media', 506); // Upload error
454
  }
455
 
456
- if($_FILES["adrotate_image"]["type"] == "application/zip" AND $file_extension == "zip") {
457
  require_once(ABSPATH .'/wp-admin/includes/file.php');
458
 
459
  $creds = request_filesystem_credentials(wp_nonce_url('admin.php?page=adrotate-media'), '', false, $file_path, null);
@@ -461,7 +461,7 @@ function adrotate_insert_media() {
461
  request_filesystem_credentials(wp_nonce_url('admin.php?page=adrotate-media'), '', true, $file_path, null);
462
  }
463
 
464
- $unzipfile = unzip_file($file_path.$file_name.'.'.$file_extension, $file_path.'/'.$file_name);
465
  if(is_wp_error($unzipfile)) {
466
  adrotate_return('adrotate-media', 512); // Can not unzip file
467
  }
@@ -635,7 +635,7 @@ function adrotate_request_action() {
635
  }
636
  }
637
  }
638
- }
639
 
640
  adrotate_return($return, $result_id);
641
  } else {
@@ -657,7 +657,7 @@ function adrotate_delete($id, $what) {
657
 
658
  if($id > 0) {
659
  if($what == 'banner') {
660
- $schedule_id = $wpdb->get_row($wpdb->prepare("SELECT `schedule` FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = %d AND `group` = '0' AND `user` = '0' AND `schedule` != '0';", $id));
661
  $wpdb->query($wpdb->prepare("DELETE FROM `{$wpdb->prefix}adrotate_schedule` WHERE `id` = %d;", $schedule_id));
662
  $wpdb->query($wpdb->prepare("DELETE FROM `{$wpdb->prefix}adrotate` WHERE `id` = %d;", $id));
663
  $wpdb->query($wpdb->prepare("DELETE FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = %d;", $id));
449
  else $errorcode = '';
450
  adrotate_return('adrotate-media', $errorcode); // Other error
451
  } else {
452
+ if(!move_uploaded_file($_FILES["adrotate_image"]["tmp_name"], $file_path.$file_name)) {
453
  adrotate_return('adrotate-media', 506); // Upload error
454
  }
455
 
456
+ if($file_mimetype == "application/zip" AND $file_extension == "zip") {
457
  require_once(ABSPATH .'/wp-admin/includes/file.php');
458
 
459
  $creds = request_filesystem_credentials(wp_nonce_url('admin.php?page=adrotate-media'), '', false, $file_path, null);
461
  request_filesystem_credentials(wp_nonce_url('admin.php?page=adrotate-media'), '', true, $file_path, null);
462
  }
463
 
464
+ $unzipfile = unzip_file($file_path.$file_name.'.'.$file_extension, $file_path.$file_name);
465
  if(is_wp_error($unzipfile)) {
466
  adrotate_return('adrotate-media', 512); // Can not unzip file
467
  }
635
  }
636
  }
637
  }
638
+ }
639
 
640
  adrotate_return($return, $result_id);
641
  } else {
657
 
658
  if($id > 0) {
659
  if($what == 'banner') {
660
+ $schedule_id = $wpdb->get_var($wpdb->prepare("SELECT `schedule` FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = %d AND `group` = 0 AND `user` = 0 AND `schedule` != 0;", $id));
661
  $wpdb->query($wpdb->prepare("DELETE FROM `{$wpdb->prefix}adrotate_schedule` WHERE `id` = %d;", $schedule_id));
662
  $wpdb->query($wpdb->prepare("DELETE FROM `{$wpdb->prefix}adrotate` WHERE `id` = %d;", $id));
663
  $wpdb->query($wpdb->prepare("DELETE FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = %d;", $id));
adrotate-output.php CHANGED
@@ -717,9 +717,9 @@ function adrotate_notifications_dashboard() {
717
  if($birthday_banner < current_time('timestamp') AND date('M', current_time('timestamp')) == 'Feb') {
718
  echo '<div class="ajdg-notification notice">';
719
  echo ' <div class="ajdg-notification-logo" style="background-image: url(\''.plugins_url('/images/birthday.png', __FILE__).'\');"><span></span></div>';
720
- echo ' <div class="ajdg-notification-message">Hey <strong>'.$displayname.'</strong>! Did you know it is Arnan his birtyday this month? February 9th to be exact. Wish him a happy birthday via Twitter!<br />Who is Arnan? He made AdRotate for you - Check out his <a href="http://www.arnan.me/?pk_campaign=adrotatefree&pk_keyword=birthday_banner" target="_blank">website</a> or <a href="http://www.arnan.me/donate.html?pk_campaign=adrotatefree&pk_keyword=birthday_banner" target="_blank">send a gift</a>.</div>';
721
  echo ' <div class="ajdg-notification-cta">';
722
- echo ' <a href="https://twitter.com/intent/tweet?text=Happy%20Birthday%20@arnandegans!%20From%20'.$displayname.'%20at%20'.home_url().'&hashtags=birthday,adrotate" target="_blank" class="ajdg-notification-act button-primary goosebox"><i class="icn-t"></i>Wish Happy Birthday</a>';
723
  echo ' <a href="'.admin_url('admin.php?page=adrotate').'&hide=2" class="ajdg-notification-dismiss">Not now</a>';
724
  echo ' </div>';
725
  echo '</div>';
@@ -798,7 +798,7 @@ function adrotate_dashboard_help() {
798
  'title' => 'Thanks to you',
799
  'content' => '<h4>Thank you for using AdRotate</h4>'.
800
  '<p>AdRotate is one of the most popular WordPress plugins for Advertising and is a household name for many companies and news sites around the world. AdRotate would not be possible without your support and my life would not be what it is today without your help.</p><p><em>- Arnan</em></p>'.
801
- '<p>My website <a href="https://ajdg.solutions/?pk_campaign=adrotate&pk_keyword=helptab" target="_blank">ajdg.solutions</a>.<br />My profile <a href="https://www.arnan.me/?pk_campaign=adrotate&pk_keyword=helptab" target="_blank">Arnan de Gans</a>.<br />Follow me on <a href="https://www.twitter.com/arnandegans/" target="_blank">Twitter</a>.</p>'
802
  )
803
  );
804
 
717
  if($birthday_banner < current_time('timestamp') AND date('M', current_time('timestamp')) == 'Feb') {
718
  echo '<div class="ajdg-notification notice">';
719
  echo ' <div class="ajdg-notification-logo" style="background-image: url(\''.plugins_url('/images/birthday.png', __FILE__).'\');"><span></span></div>';
720
+ echo ' <div class="ajdg-notification-message">Hey <strong>'.$displayname.'</strong>! Did you know it is Arnan his birtyday this month? February 9th to be exact. Wish him a happy birthday via Telegram!<br />Who is Arnan? He made AdRotate for you - Check out his <a href="http://www.arnan.me/?pk_campaign=adrotatefree&pk_keyword=birthday_banner" target="_blank">website</a> or <a href="http://www.arnan.me/donate.html?pk_campaign=adrotatefree&pk_keyword=birthday_banner" target="_blank">send a gift</a>.</div>';
721
  echo ' <div class="ajdg-notification-cta">';
722
+ echo ' <a href="https://t.me/arnandegans" target="_blank" class="ajdg-notification-act button-primary goosebox"><i class="icn-tg"></i>Wish Happy Birthday</a>';
723
  echo ' <a href="'.admin_url('admin.php?page=adrotate').'&hide=2" class="ajdg-notification-dismiss">Not now</a>';
724
  echo ' </div>';
725
  echo '</div>';
798
  'title' => 'Thanks to you',
799
  'content' => '<h4>Thank you for using AdRotate</h4>'.
800
  '<p>AdRotate is one of the most popular WordPress plugins for Advertising and is a household name for many companies and news sites around the world. AdRotate would not be possible without your support and my life would not be what it is today without your help.</p><p><em>- Arnan</em></p>'.
801
+ '<p>My website <a href="https://ajdg.solutions/?pk_campaign=adrotate&pk_keyword=helptab" target="_blank">ajdg.solutions</a>.<br />My profile <a href="https://www.arnan.me/?pk_campaign=adrotate&pk_keyword=helptab" target="_blank">Arnan de Gans</a>.</p>'
802
  )
803
  );
804
 
adrotate.php CHANGED
@@ -6,7 +6,7 @@ Author: Arnan de Gans
6
  Author URI: https://www.arnan.me/?pk_campaign=adrotatefree&pk_keyword=plugin_info
7
  Description: Monetize your website with adverts while keeping things simple. Start making money today!
8
  Text Domain: adrotate
9
- Version: 5.8.24
10
  License: GPLv3
11
  */
12
 
@@ -21,7 +21,7 @@ License: GPLv3
21
  ------------------------------------------------------------------------------------ */
22
 
23
  /*--- AdRotate values ---------------------------------------*/
24
- define("ADROTATE_DISPLAY", '5.8.24');
25
  define("ADROTATE_VERSION", 399);
26
  define("ADROTATE_DB_VERSION", 68);
27
  $plugin_folder = plugin_dir_path(__FILE__);
6
  Author URI: https://www.arnan.me/?pk_campaign=adrotatefree&pk_keyword=plugin_info
7
  Description: Monetize your website with adverts while keeping things simple. Start making money today!
8
  Text Domain: adrotate
9
+ Version: 5.8.25
10
  License: GPLv3
11
  */
12
 
21
  ------------------------------------------------------------------------------------ */
22
 
23
  /*--- AdRotate values ---------------------------------------*/
24
+ define("ADROTATE_DISPLAY", '5.8.25');
25
  define("ADROTATE_VERSION", 399);
26
  define("ADROTATE_DB_VERSION", 68);
27
  $plugin_folder = plugin_dir_path(__FILE__);
dashboard/publisher/adverts-disabled.php CHANGED
@@ -13,6 +13,7 @@
13
  <?php wp_nonce_field('adrotate_bulk_ads_disable','adrotate_nonce'); ?>
14
 
15
  <h3><?php _e('Disabled Adverts', 'adrotate'); ?></h3>
 
16
 
17
  <div class="tablenav">
18
  <div class="alignleft actions">
13
  <?php wp_nonce_field('adrotate_bulk_ads_disable','adrotate_nonce'); ?>
14
 
15
  <h3><?php _e('Disabled Adverts', 'adrotate'); ?></h3>
16
+ <p><em><?php _e('These adverts are temporarily disabled. You can archive adverts to permanently disable them.', 'adrotate-pro'); ?><br /><?php _e('Archiving adverts moves gathered statistics away from the live database which may speed up your website.', 'adrotate'); ?></em></p>
17
 
18
  <div class="tablenav">
19
  <div class="alignleft actions">
dashboard/publisher/adverts-error.php CHANGED
@@ -10,6 +10,7 @@
10
  ------------------------------------------------------------------------------------ */
11
  ?>
12
  <h3><?php _e('Adverts that need attention', 'adrotate'); ?></h3>
 
13
 
14
  <form name="errorbanners" id="post" method="post" action="admin.php?page=adrotate">
15
  <?php wp_nonce_field('adrotate_bulk_ads_error','adrotate_nonce'); ?>
10
  ------------------------------------------------------------------------------------ */
11
  ?>
12
  <h3><?php _e('Adverts that need attention', 'adrotate'); ?></h3>
13
+ <p><?php _e('The adverts listed here are currently not showing on your website. This is because they are almost expired, have expired or have configuration issues.', 'adrotate'); ?><br /><?php _e('To fix the issue edit each advert and look for one or more notification at the top to see what AdRotate thinks is wrong with it.', 'adrotate'); ?></p>
14
 
15
  <form name="errorbanners" id="post" method="post" action="admin.php?page=adrotate">
16
  <?php wp_nonce_field('adrotate_bulk_ads_error','adrotate_nonce'); ?>
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://ajdg.solutions/go/donate/adrotatefree
4
  Tags: adverts, ads, banners, advert manager, ad manager, banner manager, monetize, revenue, place banners, google, adsense, dfp, doubleclick, amazon, affiliate, referral, ClassicPress
5
  Requires at least: 4.9
6
  Requires PHP: 5.6
7
- Tested up to: 5.9.3
8
- Stable tag: 5.8.24
9
  License: GPLv3
10
 
11
  Manage all your advertising campaigns and affiliate banners/links with ease. Use any advert banner or link and place them anywhere on your site. Use many powerful features to run successful campaigns and increase your revenue.
@@ -65,6 +65,13 @@ For more detailed instructions check out the [installation steps](https://ajdg.s
65
 
66
  For the full changelog check out the [development page](https://ajdg.solutions/support/adrotate-development/?pk_campaign=adrotatefree&pk_keyword=readme).
67
 
 
 
 
 
 
 
 
68
  = AdRotate 5.8.24 =
69
  * [new] Group and Advert block support
70
  * [fix] Selecting adverts in groups not working
@@ -73,6 +80,11 @@ For the full changelog check out the [development page](https://ajdg.solutions/s
73
  * [tweak] Replaced sanitize_title with sanitize_text_field for group names
74
  * [update] Update database to be in sync with AdRotate Pro
75
 
 
 
 
 
 
76
  = AdRotate Professional 5.8.20 =
77
  * [fix] Schedules not being saved when editing adverts
78
  * [fix] Impression spread not working properly
4
  Tags: adverts, ads, banners, advert manager, ad manager, banner manager, monetize, revenue, place banners, google, adsense, dfp, doubleclick, amazon, affiliate, referral, ClassicPress
5
  Requires at least: 4.9
6
  Requires PHP: 5.6
7
+ Tested up to: 6.0
8
+ Stable tag: 5.8.25
9
  License: GPLv3
10
 
11
  Manage all your advertising campaigns and affiliate banners/links with ease. Use any advert banner or link and place them anywhere on your site. Use many powerful features to run successful campaigns and increase your revenue.
65
 
66
  For the full changelog check out the [development page](https://ajdg.solutions/support/adrotate-development/?pk_campaign=adrotatefree&pk_keyword=readme).
67
 
68
+ = AdRotate 5.8.25 =
69
+ * [update] Tested with WordPress 6
70
+ * [fix] Schedules not always saving when editing adverts
71
+ * [fix] Schedules not always deleting when deleting adverts
72
+ * [fix] Double file extension when uploading file
73
+ * [fix] Uploading zip files now reliably detects mime type
74
+
75
  = AdRotate 5.8.24 =
76
  * [new] Group and Advert block support
77
  * [fix] Selecting adverts in groups not working
80
  * [tweak] Replaced sanitize_title with sanitize_text_field for group names
81
  * [update] Update database to be in sync with AdRotate Pro
82
 
83
+ = AdRotate Professional 5.8.21 =
84
+ * [update] Tested with WordPress 6
85
+ * [fix] Double file extension when uploading file
86
+ * [fix] Uploading zip files now reliably detects mime type
87
+
88
  = AdRotate Professional 5.8.20 =
89
  * [fix] Schedules not being saved when editing adverts
90
  * [fix] Impression spread not working properly