AdRotate Banner Manager - Version 5.8.9

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.9
Comparing to
See all releases

Code changes from version 5.8.8 to 5.8.9

adrotate-functions.php CHANGED
@@ -16,10 +16,10 @@
16
  -------------------------------------------------------------*/
17
  function adrotate_is_networked() {
18
  if(!function_exists('is_plugin_active_for_network')) require_once(ABSPATH.'/wp-admin/includes/plugin.php');
19
-
20
  if(is_plugin_active_for_network('adrotate/adrotate.php')) {
21
  return true;
22
- }
23
  return false;
24
  }
25
 
@@ -51,7 +51,7 @@ function adrotate_is_human() {
51
  }
52
  }
53
  $nocrawler = (!in_array(false, $nocrawler)) ? true : false; // If no bool false in array it's not a bot
54
-
55
  // Returns true if no bot.
56
  return $nocrawler;
57
  }
@@ -64,7 +64,7 @@ function adrotate_is_human() {
64
  Return: $selected
65
  Since: 3.6.11
66
  -------------------------------------------------------------*/
67
- function adrotate_filter_schedule($selected, $banner) {
68
  global $wpdb, $adrotate_config;
69
 
70
  $now = current_time('timestamp');
@@ -72,7 +72,7 @@ function adrotate_filter_schedule($selected, $banner) {
72
  // Get schedules for advert
73
  $schedules = $wpdb->get_results("SELECT `{$wpdb->prefix}adrotate_schedule`.`id`, `starttime`, `stoptime`, `maxclicks`, `maximpressions` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` AND `ad` = '".$banner->id."' ORDER BY `starttime` ASC LIMIT 1;");
74
  $schedule = $schedules[0];
75
-
76
  if($now < $schedule->starttime OR $now > $schedule->stoptime) {
77
  unset($selected[$banner->id]);
78
  } else {
@@ -88,9 +88,9 @@ function adrotate_filter_schedule($selected, $banner) {
88
  }
89
  }
90
  }
91
-
92
  return $selected;
93
- }
94
 
95
  /*-------------------------------------------------------------
96
  Name: adrotate_array_unique
@@ -129,7 +129,7 @@ function adrotate_array_unique($array) {
129
  Since: 3.8
130
  -------------------------------------------------------------*/
131
  function adrotate_rand($length = 8) {
132
- $available_chars = "abcdefghijklmnopqrstuvwxyz";
133
 
134
  $result = '';
135
  $size = strlen($available_chars);
@@ -148,16 +148,16 @@ function adrotate_rand($length = 8) {
148
  Return: $shuffle
149
  Since: 3.8.8.3
150
  -------------------------------------------------------------*/
151
- function adrotate_shuffle($array) {
152
- if(!is_array($array)) return $array;
153
- $keys = array_keys($array);
154
  shuffle($keys);
155
-
156
- $shuffle = array();
157
  foreach($keys as $key) {
158
  $shuffle[$key] = $array[$key];
159
  }
160
- return $shuffle;
161
  }
162
 
163
  /*-------------------------------------------------------------
@@ -259,12 +259,12 @@ function adrotate_select_pages($savedpages, $count = 2, $child_of = 0, $parent =
259
 
260
  Purpose: Initiate evaluations for errors and determine the ad status
261
  Receive: $return, $id
262
- Return:
263
  Since: 3.6.5
264
  -------------------------------------------------------------*/
265
  function adrotate_prepare_evaluate_ads($return = true) {
266
  global $wpdb;
267
-
268
  // Fetch ads
269
  $ads = $wpdb->get_results("SELECT `id` FROM `{$wpdb->prefix}adrotate` WHERE `type` != 'disabled' AND `type` != 'generator' AND `type` != 'empty' ORDER BY `id` ASC;");
270
 
@@ -275,28 +275,28 @@ function adrotate_prepare_evaluate_ads($return = true) {
275
  if($result == 'error') {
276
  $error++;
277
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = 'error' WHERE `id` = '".$ad->id."';");
278
- }
279
 
280
  if($result == 'expired') {
281
  $expired++;
282
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = 'expired' WHERE `id` = '".$ad->id."';");
283
- }
284
-
285
  if($result == '2days') {
286
  $expiressoon++;
287
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = '2days' WHERE `id` = '".$ad->id."';");
288
  }
289
-
290
  if($result == '7days') {
291
  $normal++;
292
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = '7days' WHERE `id` = '".$ad->id."';");
293
  }
294
-
295
  if($result == 'active') {
296
  $normal++;
297
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = 'active' WHERE `id` = '".$ad->id."';");
298
  }
299
-
300
  if($result == 'unknown') {
301
  $unknown++;
302
  }
@@ -330,7 +330,7 @@ function adrotate_evaluate_ads() {
330
  -------------------------------------------------------------*/
331
  function adrotate_evaluate_ad($ad_id) {
332
  global $wpdb, $adrotate_config;
333
-
334
  $now = current_time('timestamp');
335
  $in2days = $now + 172800;
336
  $in7days = $now + 604800;
@@ -380,7 +380,7 @@ function adrotate_prepare_color($enddate) {
380
  $now = current_time('timestamp');
381
  $in2days = $now + 172800;
382
  $in7days = $now + 604800;
383
-
384
  if($enddate <= $now) {
385
  return '#CC2900'; // red
386
  } else if($enddate <= $in2days AND $enddate >= $now) {
@@ -405,12 +405,12 @@ function adrotate_ad_is_in_groups($id) {
405
 
406
  $output = '';
407
  $groups = $wpdb->get_results("
408
- SELECT
409
- `{$wpdb->prefix}adrotate_groups`.`name`
410
- FROM
411
- `{$wpdb->prefix}adrotate_groups`,
412
- `{$wpdb->prefix}adrotate_linkmeta`
413
- WHERE
414
  `{$wpdb->prefix}adrotate_linkmeta`.`ad` = '".$id."'
415
  AND `{$wpdb->prefix}adrotate_linkmeta`.`group` = `{$wpdb->prefix}adrotate_groups`.`id`
416
  AND `{$wpdb->prefix}adrotate_linkmeta`.`user` = 0
@@ -421,7 +421,7 @@ function adrotate_ad_is_in_groups($id) {
421
  }
422
  }
423
  $output = rtrim($output, ", ");
424
-
425
  return $output;
426
  }
427
 
@@ -432,7 +432,7 @@ function adrotate_ad_is_in_groups($id) {
432
  -------------------------------------------------------------*/
433
  function adrotate_hash($ad, $group = 0, $blog_id = 0) {
434
  global $adrotate_config;
435
-
436
  $timer = $adrotate_config['impression_timer'];
437
  return base64_encode("$ad,$group,$blog_id,$timer");
438
  }
@@ -485,12 +485,12 @@ function adrotate_sanitize_file_name($filename) {
485
  Purpose: Returns all roles and capabilities, sorted by user level. Lowest to highest.
486
  Since: 3.2
487
  -------------------------------------------------------------*/
488
- function adrotate_get_sorted_roles() {
489
  global $wp_roles;
490
 
491
  $editable_roles = apply_filters('editable_roles', $wp_roles->roles);
492
  $sorted = array();
493
-
494
  foreach($editable_roles as $role => $details) {
495
  $sorted[$details['name']] = get_role($role);
496
  }
@@ -508,7 +508,7 @@ function adrotate_get_sorted_roles() {
508
  function adrotate_set_capability($lowest_role, $capability){
509
  $check_order = adrotate_get_sorted_roles();
510
  $add_capability = false;
511
-
512
  foreach($check_order as $role) {
513
  if($lowest_role == $role->name) $add_capability = true;
514
  if(empty($role)) continue;
@@ -591,7 +591,7 @@ function adrotate_dropdown_folder_contents($base_dir, $extensions = array('jpg',
591
  // List the folders and files
592
  foreach(scandir($base_dir) as $file) {
593
  if($file == '.' || $file == '..' || $file == '.DS_Store' || $file == 'index.php') continue;
594
-
595
  $dir = $base_dir.'/'.$file;
596
  if(is_dir($dir)) {
597
  if($level >= $max_level) continue;
@@ -605,7 +605,7 @@ function adrotate_dropdown_folder_contents($base_dir, $extensions = array('jpg',
605
  }
606
  }
607
  unset($file);
608
-
609
  // Clean up and sort ascending
610
  $items = array();
611
  foreach($index as $key => $item) {
@@ -664,7 +664,7 @@ function adrotate_subfolder_contents($asset_folder, $level = 1) {
664
  unset($level, $new_level);
665
  }
666
  }
667
-
668
  return $index;
669
  }
670
 
@@ -707,7 +707,7 @@ function adrotate_mediapage_folder_contents($asset_folder, $level = 1) {
707
  unset($level, $new_level);
708
  }
709
  }
710
-
711
  return $index;
712
  }
713
 
@@ -725,11 +725,11 @@ function adrotate_unlink($asset) {
725
  $access_type = get_filesystem_method();
726
  if($access_type === 'direct') {
727
  $credentials = request_filesystem_credentials(site_url().'/wp-admin/', '', false, false, array());
728
-
729
  if(!WP_Filesystem($credentials)) {
730
  return false;
731
- }
732
-
733
  global $wp_filesystem;
734
 
735
  $path = WP_CONTENT_DIR."/".$adrotate_config['banner_folder']."/".$asset;
@@ -887,20 +887,20 @@ function adrotate_status($status, $args = null) {
887
  case '509' :
888
  echo '<div id="message" class="updated"><p>'. __('No ads found.', 'adrotate') .'</p></div>';
889
  break;
890
-
891
  case '513' :
892
  echo '<div id="message" class="error"><p>'. __('The advert hash is not usable or is missing required data. Please copy the hash correctly and try again.', 'adrotate') .'</p></div>';
893
  break;
894
-
895
  case '514' :
896
  echo '<div id="message" class="error"><p>'. __('The advert hash can not be used on the same site as it originated from or is not a valid hash for importing.', 'adrotate') .'</p></div>';
897
  break;
898
-
899
  default :
900
- echo '<div id="message" class="updated"><p>'. __('Unexpected error', 'adrotate') .'</p></div>';
901
  break;
902
  }
903
-
904
  unset($arguments, $args);
905
  }
906
  ?>
16
  -------------------------------------------------------------*/
17
  function adrotate_is_networked() {
18
  if(!function_exists('is_plugin_active_for_network')) require_once(ABSPATH.'/wp-admin/includes/plugin.php');
19
+
20
  if(is_plugin_active_for_network('adrotate/adrotate.php')) {
21
  return true;
22
+ }
23
  return false;
24
  }
25
 
51
  }
52
  }
53
  $nocrawler = (!in_array(false, $nocrawler)) ? true : false; // If no bool false in array it's not a bot
54
+
55
  // Returns true if no bot.
56
  return $nocrawler;
57
  }
64
  Return: $selected
65
  Since: 3.6.11
66
  -------------------------------------------------------------*/
67
+ function adrotate_filter_schedule($selected, $banner) {
68
  global $wpdb, $adrotate_config;
69
 
70
  $now = current_time('timestamp');
72
  // Get schedules for advert
73
  $schedules = $wpdb->get_results("SELECT `{$wpdb->prefix}adrotate_schedule`.`id`, `starttime`, `stoptime`, `maxclicks`, `maximpressions` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` AND `ad` = '".$banner->id."' ORDER BY `starttime` ASC LIMIT 1;");
74
  $schedule = $schedules[0];
75
+
76
  if($now < $schedule->starttime OR $now > $schedule->stoptime) {
77
  unset($selected[$banner->id]);
78
  } else {
88
  }
89
  }
90
  }
91
+
92
  return $selected;
93
+ }
94
 
95
  /*-------------------------------------------------------------
96
  Name: adrotate_array_unique
129
  Since: 3.8
130
  -------------------------------------------------------------*/
131
  function adrotate_rand($length = 8) {
132
+ $available_chars = "abcdefghijklmnopqrstuvwxyz";
133
 
134
  $result = '';
135
  $size = strlen($available_chars);
148
  Return: $shuffle
149
  Since: 3.8.8.3
150
  -------------------------------------------------------------*/
151
+ function adrotate_shuffle($array) {
152
+ if(!is_array($array)) return $array;
153
+ $keys = array_keys($array);
154
  shuffle($keys);
155
+
156
+ $shuffle = array();
157
  foreach($keys as $key) {
158
  $shuffle[$key] = $array[$key];
159
  }
160
+ return $shuffle;
161
  }
162
 
163
  /*-------------------------------------------------------------
259
 
260
  Purpose: Initiate evaluations for errors and determine the ad status
261
  Receive: $return, $id
262
+ Return:
263
  Since: 3.6.5
264
  -------------------------------------------------------------*/
265
  function adrotate_prepare_evaluate_ads($return = true) {
266
  global $wpdb;
267
+
268
  // Fetch ads
269
  $ads = $wpdb->get_results("SELECT `id` FROM `{$wpdb->prefix}adrotate` WHERE `type` != 'disabled' AND `type` != 'generator' AND `type` != 'empty' ORDER BY `id` ASC;");
270
 
275
  if($result == 'error') {
276
  $error++;
277
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = 'error' WHERE `id` = '".$ad->id."';");
278
+ }
279
 
280
  if($result == 'expired') {
281
  $expired++;
282
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = 'expired' WHERE `id` = '".$ad->id."';");
283
+ }
284
+
285
  if($result == '2days') {
286
  $expiressoon++;
287
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = '2days' WHERE `id` = '".$ad->id."';");
288
  }
289
+
290
  if($result == '7days') {
291
  $normal++;
292
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = '7days' WHERE `id` = '".$ad->id."';");
293
  }
294
+
295
  if($result == 'active') {
296
  $normal++;
297
  $wpdb->query("UPDATE `{$wpdb->prefix}adrotate` SET `type` = 'active' WHERE `id` = '".$ad->id."';");
298
  }
299
+
300
  if($result == 'unknown') {
301
  $unknown++;
302
  }
330
  -------------------------------------------------------------*/
331
  function adrotate_evaluate_ad($ad_id) {
332
  global $wpdb, $adrotate_config;
333
+
334
  $now = current_time('timestamp');
335
  $in2days = $now + 172800;
336
  $in7days = $now + 604800;
380
  $now = current_time('timestamp');
381
  $in2days = $now + 172800;
382
  $in7days = $now + 604800;
383
+
384
  if($enddate <= $now) {
385
  return '#CC2900'; // red
386
  } else if($enddate <= $in2days AND $enddate >= $now) {
405
 
406
  $output = '';
407
  $groups = $wpdb->get_results("
408
+ SELECT
409
+ `{$wpdb->prefix}adrotate_groups`.`name`
410
+ FROM
411
+ `{$wpdb->prefix}adrotate_groups`,
412
+ `{$wpdb->prefix}adrotate_linkmeta`
413
+ WHERE
414
  `{$wpdb->prefix}adrotate_linkmeta`.`ad` = '".$id."'
415
  AND `{$wpdb->prefix}adrotate_linkmeta`.`group` = `{$wpdb->prefix}adrotate_groups`.`id`
416
  AND `{$wpdb->prefix}adrotate_linkmeta`.`user` = 0
421
  }
422
  }
423
  $output = rtrim($output, ", ");
424
+
425
  return $output;
426
  }
427
 
432
  -------------------------------------------------------------*/
433
  function adrotate_hash($ad, $group = 0, $blog_id = 0) {
434
  global $adrotate_config;
435
+
436
  $timer = $adrotate_config['impression_timer'];
437
  return base64_encode("$ad,$group,$blog_id,$timer");
438
  }
485
  Purpose: Returns all roles and capabilities, sorted by user level. Lowest to highest.
486
  Since: 3.2
487
  -------------------------------------------------------------*/
488
+ function adrotate_get_sorted_roles() {
489
  global $wp_roles;
490
 
491
  $editable_roles = apply_filters('editable_roles', $wp_roles->roles);
492
  $sorted = array();
493
+
494
  foreach($editable_roles as $role => $details) {
495
  $sorted[$details['name']] = get_role($role);
496
  }
508
  function adrotate_set_capability($lowest_role, $capability){
509
  $check_order = adrotate_get_sorted_roles();
510
  $add_capability = false;
511
+
512
  foreach($check_order as $role) {
513
  if($lowest_role == $role->name) $add_capability = true;
514
  if(empty($role)) continue;
591
  // List the folders and files
592
  foreach(scandir($base_dir) as $file) {
593
  if($file == '.' || $file == '..' || $file == '.DS_Store' || $file == 'index.php') continue;
594
+
595
  $dir = $base_dir.'/'.$file;
596
  if(is_dir($dir)) {
597
  if($level >= $max_level) continue;
605
  }
606
  }
607
  unset($file);
608
+
609
  // Clean up and sort ascending
610
  $items = array();
611
  foreach($index as $key => $item) {
664
  unset($level, $new_level);
665
  }
666
  }
667
+
668
  return $index;
669
  }
670
 
707
  unset($level, $new_level);
708
  }
709
  }
710
+
711
  return $index;
712
  }
713
 
725
  $access_type = get_filesystem_method();
726
  if($access_type === 'direct') {
727
  $credentials = request_filesystem_credentials(site_url().'/wp-admin/', '', false, false, array());
728
+
729
  if(!WP_Filesystem($credentials)) {
730
  return false;
731
+ }
732
+
733
  global $wp_filesystem;
734
 
735
  $path = WP_CONTENT_DIR."/".$adrotate_config['banner_folder']."/".$asset;
887
  case '509' :
888
  echo '<div id="message" class="updated"><p>'. __('No ads found.', 'adrotate') .'</p></div>';
889
  break;
890
+
891
  case '513' :
892
  echo '<div id="message" class="error"><p>'. __('The advert hash is not usable or is missing required data. Please copy the hash correctly and try again.', 'adrotate') .'</p></div>';
893
  break;
894
+
895
  case '514' :
896
  echo '<div id="message" class="error"><p>'. __('The advert hash can not be used on the same site as it originated from or is not a valid hash for importing.', 'adrotate') .'</p></div>';
897
  break;
898
+
899
  default :
900
+ echo '<div id="message" class="updated"><p>'. __('Unexpected error', 'adrotate') .'</p></div>';
901
  break;
902
  }
903
+
904
  unset($arguments, $args);
905
  }
906
  ?>
adrotate-statistics.php CHANGED
@@ -29,7 +29,7 @@ function adrotate_draw_graph($id = 0, $labels = 0, $clicks = 0, $impressions = 0
29
  echo '
30
  <script type="text/javascript">
31
  jQuery(document).ready(function(){
32
- jQuery("#chart-'.$id.'").chart({
33
  type: "line",
34
  margins: [5, 45, 45, 45],
35
  values: {
@@ -49,7 +49,7 @@ function adrotate_draw_graph($id = 0, $labels = 0, $clicks = 0, $impressions = 0
49
  serie2: {
50
  axis: "r", color: "#F80", plotProps: { "stroke-width": 2 }, dotProps: { stroke: "white", size: 3, "stroke-width": 1 }
51
  }
52
-
53
  },
54
  defaultAxis: {
55
  labels: true, labelsProps: { fill: "#777", "font-size": "10px", }, labelsAnchor: "start", labelsMargin: 5, labelsDistance: 8, labelsRotate: 65
@@ -118,7 +118,7 @@ function adrotate_stats($ad, $archive = false, $when = 0, $until = 0) {
118
 
119
  $cachekey = "adrotate_stats_".md5($ad_query.$whenquery);
120
  $stats = wp_cache_get($cachekey);
121
- if(false === $stats) {
122
  $stats = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE {$ad_query}{$whenquery};", ARRAY_A);
123
  wp_cache_set($cachekey, $stats, '', 300);
124
  }
@@ -153,19 +153,19 @@ function adrotate_stats_nav($type, $id, $month, $year) {
153
  $nextyear = $year + 1;
154
  }
155
  $months = array(__('January', 'adrotate'), __('February', 'adrotate'), __('March', 'adrotate'), __('April', 'adrotate'), __('May', 'adrotate'), __('June', 'adrotate'), __('July', 'adrotate'), __('August', 'adrotate'), __('September', 'adrotate'), __('October', 'adrotate'), __('November', 'adrotate'), __('December', 'adrotate'));
156
-
157
  $page = '';
158
  if($type == 'ads') $page = 'adrotate-statistics&view=advert&id='.$id;
159
  if($type == 'groups') $page = 'adrotate-statistics&view=group&id='.$id;
160
  if($type == 'fullreport') $page = 'adrotate-statistics';
161
  if($type == 'advertiser') $page = 'adrotate-advertiser&view=report&ad='.$id;
162
  if($type == 'advertiserfull') $page = 'adrotate-advertiser';
163
-
164
  $nav = '<a href="admin.php?page='.$page.'&month='.$lastmonth.'&year='.$lastyear.'">&lt;&lt; '.__('Previous', 'adrotate').'</a> - ';
165
  $nav .= '<strong>'.$months[$month-1].' '.$year.'</strong> - ';
166
  $nav .= '(<a href="admin.php?page='.$page.'">'.__('This month', 'adrotate').'</a>) - ';
167
  $nav .= '<a href="admin.php?page='.$page.'&month='.$nextmonth.'&year='.$nextyear.'">'. __('Next', 'adrotate').' &gt;&gt;</a>';
168
-
169
  return $nav;
170
  }
171
 
@@ -196,7 +196,7 @@ function adrotate_stats_graph($type, $archive = false, $id, $chartid, $start, $e
196
  if($type == 'fullreport') {
197
  $stats = $wpdb->get_results($wpdb->prepare("SELECT `thetime`, SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}{$table}` WHERE `thetime` >= %d AND `thetime` <= %d GROUP BY `thetime` ORDER BY `thetime` ASC;", $start, $end), ARRAY_A);
198
  }
199
-
200
  if($type == 'advertiserfull') {
201
  $stats = $wpdb->get_results($wpdb->prepare("SELECT `thetime`, SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}{$table}`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `{$wpdb->prefix}adrotate_stats`.`ad` = `{$wpdb->prefix}adrotate_linkmeta`.`ad` AND `{$wpdb->prefix}adrotate_linkmeta`.`user` = %d AND `{$wpdb->prefix}adrotate_stats`.`thetime` >= %d AND `{$wpdb->prefix}adrotate_stats`.`thetime` <= %d GROUP BY `thetime` ORDER BY `thetime` ASC;", $id, $start, $end), ARRAY_A);
202
  }
@@ -207,7 +207,7 @@ function adrotate_stats_graph($type, $archive = false, $id, $chartid, $start, $e
207
  foreach($stats as $result) {
208
  if(empty($result['clicks'])) $result['clicks'] = '0';
209
  if(empty($result['impressions'])) $result['impressions'] = '0';
210
-
211
  $dates .= ',"'.date_i18n("d M", $result['thetime']).'"';
212
  $clicks .= ','.$result['clicks'];
213
  $impressions .= ','.$result['impressions'];
@@ -216,14 +216,14 @@ function adrotate_stats_graph($type, $archive = false, $id, $chartid, $start, $e
216
  $dates = trim($dates, ",");
217
  $clicks = trim($clicks, ",");
218
  $impressions = trim($impressions, ",");
219
-
220
  $output = '';
221
  $output .= '<div id="chart-'.$chartid.'" style="height:'.$height.'px; width:100%;"></div>';
222
  $output .= adrotate_draw_graph($chartid, $dates, $clicks, $impressions);
223
  unset($stats, $graph, $dates, $clicks, $impressions);
224
  } else {
225
  $output = __('No data to show!', 'adrotate');
226
- }
227
 
228
  return $output;
229
  }
@@ -236,16 +236,16 @@ function adrotate_stats_graph($type, $archive = false, $id, $chartid, $start, $e
236
  Return: $ctr
237
  Since: 3.7
238
  -------------------------------------------------------------*/
239
- function adrotate_ctr($clicks = 0, $impressions = 0, $round = 2) {
240
 
241
  if($impressions > 0 AND $clicks > 0) {
242
  $ctr = round($clicks/$impressions*100, $round);
243
  } else {
244
  $ctr = 0;
245
  }
246
-
247
  return $ctr;
248
- }
249
 
250
  /*-------------------------------------------------------------
251
  Name: adrotate_prepare_fullreport
@@ -254,7 +254,7 @@ function adrotate_ctr($clicks = 0, $impressions = 0, $round = 2) {
254
  -------------------------------------------------------------*/
255
  function adrotate_prepare_fullreport() {
256
  global $wpdb;
257
-
258
  $today = adrotate_date_start('day');
259
 
260
  $stats['banners'] = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}adrotate` WHERE `type` = 'active';");
@@ -294,7 +294,7 @@ function adrotate_prepare_fullreport() {
294
  -------------------------------------------------------------*/
295
  function adrotate_prepare_advertiser_report($user, $ads) {
296
  global $wpdb;
297
-
298
  if($ads) {
299
  $stats['ad_amount'] = count($ads);
300
  if(empty($stats['total_impressions'])) $stats['total_impressions'] = 0;
@@ -310,29 +310,29 @@ function adrotate_prepare_advertiser_report($user, $ads) {
310
  }
311
 
312
  $stats['thebest'] = $wpdb->get_row($wpdb->prepare("
313
- SELECT `{$wpdb->prefix}adrotate`.`id`, `{$wpdb->prefix}adrotate`.`title`, SUM(`{$wpdb->prefix}adrotate_stats`.`clicks`) as `clicks`
314
- FROM `{$wpdb->prefix}adrotate`, `{$wpdb->prefix}adrotate_linkmeta`, `{$wpdb->prefix}adrotate_stats`
315
- WHERE `{$wpdb->prefix}adrotate`.`id` = `{$wpdb->prefix}adrotate_linkmeta`.`ad`
316
- AND `{$wpdb->prefix}adrotate_linkmeta`.`ad` = `{$wpdb->prefix}adrotate_stats`.`ad`
317
- AND `{$wpdb->prefix}adrotate`.`tracker` = 'Y'
318
- AND `{$wpdb->prefix}adrotate`.`type` = 'active'
319
  AND `{$wpdb->prefix}adrotate_linkmeta`.`user` = %d
320
  GROUP BY `{$wpdb->prefix}adrotate`.`id`
321
  ORDER BY `{$wpdb->prefix}adrotate_stats`.`clicks` DESC LIMIT 1;
322
  ", $user), ARRAY_A);
323
 
324
  $stats['theworst'] = $wpdb->get_row($wpdb->prepare("
325
- SELECT `{$wpdb->prefix}adrotate`.`id`, `{$wpdb->prefix}adrotate`.`title`, SUM(`{$wpdb->prefix}adrotate_stats`.`clicks`) as `clicks`
326
- FROM `{$wpdb->prefix}adrotate`, `{$wpdb->prefix}adrotate_linkmeta`, `{$wpdb->prefix}adrotate_stats`
327
- WHERE `{$wpdb->prefix}adrotate`.`id` = `{$wpdb->prefix}adrotate_linkmeta`.`ad`
328
- AND `{$wpdb->prefix}adrotate_linkmeta`.`ad` = `{$wpdb->prefix}adrotate_stats`.`ad`
329
  AND `{$wpdb->prefix}adrotate`.`tracker` = 'Y'
330
  AND `{$wpdb->prefix}adrotate`.`type` = 'active'
331
  AND `{$wpdb->prefix}adrotate_linkmeta`.`user` = %d
332
  GROUP BY `{$wpdb->prefix}adrotate`.`id`
333
  ORDER BY `{$wpdb->prefix}adrotate_stats`.`clicks` ASC LIMIT 1;
334
  ", $user), ARRAY_A);
335
-
336
  return $stats;
337
  }
338
  }
@@ -403,7 +403,7 @@ function adrotate_archive_stats($id) {
403
 
404
  // Split the data into chunks
405
  $insert = array_chunk($insert, 30);
406
-
407
  // Insert each chunk to the archive table
408
  if(is_array($insert)) {
409
  foreach($insert as $chunk) {
@@ -411,12 +411,12 @@ function adrotate_archive_stats($id) {
411
  VALUES ".implode(",", $chunk).";");
412
  unset($chunk);
413
  }
414
-
415
  // Delete old stats
416
  $wpdb->query("DELETE FROM `{$wpdb->prefix}adrotate_stats` WHERE `id` IN (".implode(",", $delete).");");
417
  }
418
 
419
- unset($stats, $insert, $delete);
420
  }
421
 
422
  /*-------------------------------------------------------------
@@ -424,7 +424,7 @@ function adrotate_archive_stats($id) {
424
  Purpose: Count Impressions where needed
425
  Since: 3.11.3
426
  -------------------------------------------------------------*/
427
- function adrotate_count_impression($ad, $group = 0, $blog_id = 0) {
428
  global $wpdb, $adrotate_config;
429
 
430
  if(($adrotate_config['enable_loggedin_impressions'] == 'Y' AND is_user_logged_in()) OR !is_user_logged_in()) {
@@ -448,7 +448,7 @@ function adrotate_count_impression($ad, $group = 0, $blog_id = 0) {
448
  } else {
449
  $wpdb->insert($wpdb->prefix.'adrotate_stats', array('ad' => $ad, 'group' => $group, 'thetime' => $today, 'clicks' => 0, 'impressions' => 1));
450
  }
451
-
452
  $wpdb->insert($wpdb->prefix."adrotate_tracker", array('ipaddress' => $remote_ip, 'timer' => $now, 'bannerid' => $ad, 'stat' => 'i'));
453
  }
454
  }
@@ -457,7 +457,7 @@ function adrotate_count_impression($ad, $group = 0, $blog_id = 0) {
457
  switch_to_blog($current_blog);
458
  }
459
  }
460
- }
461
 
462
  /*-------------------------------------------------------------
463
  Name: adrotate_impression_callback
@@ -471,7 +471,7 @@ function adrotate_impression_callback() {
471
 
472
  $meta = $_POST['track'];
473
  $meta = base64_decode($meta);
474
-
475
  $meta = esc_attr($meta);
476
  // Don't use $impression_timer - It's for impressions used in javascript
477
  list($ad, $group, $blog_id, $impression_timer) = explode(",", $meta, 4);
@@ -494,7 +494,7 @@ function adrotate_click_callback() {
494
 
495
  $meta = $_POST['track'];
496
  $meta = base64_decode($meta);
497
-
498
  $meta = esc_attr($meta);
499
  // Don't use $impression_timer - It's for impressions used in javascript
500
  list($ad, $group, $blog_id, $impression_timer) = explode(",", $meta, 4);
@@ -505,15 +505,15 @@ function adrotate_click_callback() {
505
  $current_blog = $wpdb->blogid;
506
  switch_to_blog($blog_id);
507
  }
508
-
509
  if(($adrotate_config['enable_loggedin_clicks'] == 'Y' AND is_user_logged_in()) OR !is_user_logged_in()) {
510
  $remote_ip = adrotate_get_remote_ip();
511
-
512
  if(adrotate_is_human() AND $remote_ip != "unknown" AND !empty($remote_ip)) {
513
  $now = current_time('timestamp');
514
  $today = adrotate_date_start('day');
515
  $click_timer = $now - $adrotate_config['click_timer'];
516
-
517
  $saved_timer = $wpdb->get_var($wpdb->prepare("SELECT `timer` FROM `{$wpdb->prefix}adrotate_tracker` WHERE `ipaddress` = '%s' AND `stat` = 'c' AND `bannerid` = %d ORDER BY `timer` DESC LIMIT 1;", $remote_ip, $ad));
518
  if($saved_timer < $click_timer) {
519
  $stats = $wpdb->get_var($wpdb->prepare("SELECT `id` FROM `{$wpdb->prefix}adrotate_stats` WHERE `ad` = %d AND `group` = %d AND `thetime` = {$today};", $ad, $group));
29
  echo '
30
  <script type="text/javascript">
31
  jQuery(document).ready(function(){
32
+ jQuery("#chart-'.$id.'").chart({
33
  type: "line",
34
  margins: [5, 45, 45, 45],
35
  values: {
49
  serie2: {
50
  axis: "r", color: "#F80", plotProps: { "stroke-width": 2 }, dotProps: { stroke: "white", size: 3, "stroke-width": 1 }
51
  }
52
+
53
  },
54
  defaultAxis: {
55
  labels: true, labelsProps: { fill: "#777", "font-size": "10px", }, labelsAnchor: "start", labelsMargin: 5, labelsDistance: 8, labelsRotate: 65
118
 
119
  $cachekey = "adrotate_stats_".md5($ad_query.$whenquery);
120
  $stats = wp_cache_get($cachekey);
121
+ if(false === $stats) {
122
  $stats = $wpdb->get_row("SELECT SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}adrotate_stats` WHERE {$ad_query}{$whenquery};", ARRAY_A);
123
  wp_cache_set($cachekey, $stats, '', 300);
124
  }
153
  $nextyear = $year + 1;
154
  }
155
  $months = array(__('January', 'adrotate'), __('February', 'adrotate'), __('March', 'adrotate'), __('April', 'adrotate'), __('May', 'adrotate'), __('June', 'adrotate'), __('July', 'adrotate'), __('August', 'adrotate'), __('September', 'adrotate'), __('October', 'adrotate'), __('November', 'adrotate'), __('December', 'adrotate'));
156
+
157
  $page = '';
158
  if($type == 'ads') $page = 'adrotate-statistics&view=advert&id='.$id;
159
  if($type == 'groups') $page = 'adrotate-statistics&view=group&id='.$id;
160
  if($type == 'fullreport') $page = 'adrotate-statistics';
161
  if($type == 'advertiser') $page = 'adrotate-advertiser&view=report&ad='.$id;
162
  if($type == 'advertiserfull') $page = 'adrotate-advertiser';
163
+
164
  $nav = '<a href="admin.php?page='.$page.'&month='.$lastmonth.'&year='.$lastyear.'">&lt;&lt; '.__('Previous', 'adrotate').'</a> - ';
165
  $nav .= '<strong>'.$months[$month-1].' '.$year.'</strong> - ';
166
  $nav .= '(<a href="admin.php?page='.$page.'">'.__('This month', 'adrotate').'</a>) - ';
167
  $nav .= '<a href="admin.php?page='.$page.'&month='.$nextmonth.'&year='.$nextyear.'">'. __('Next', 'adrotate').' &gt;&gt;</a>';
168
+
169
  return $nav;
170
  }
171
 
196
  if($type == 'fullreport') {
197
  $stats = $wpdb->get_results($wpdb->prepare("SELECT `thetime`, SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}{$table}` WHERE `thetime` >= %d AND `thetime` <= %d GROUP BY `thetime` ORDER BY `thetime` ASC;", $start, $end), ARRAY_A);
198
  }
199
+
200
  if($type == 'advertiserfull') {
201
  $stats = $wpdb->get_results($wpdb->prepare("SELECT `thetime`, SUM(`clicks`) as `clicks`, SUM(`impressions`) as `impressions` FROM `{$wpdb->prefix}{$table}`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `{$wpdb->prefix}adrotate_stats`.`ad` = `{$wpdb->prefix}adrotate_linkmeta`.`ad` AND `{$wpdb->prefix}adrotate_linkmeta`.`user` = %d AND `{$wpdb->prefix}adrotate_stats`.`thetime` >= %d AND `{$wpdb->prefix}adrotate_stats`.`thetime` <= %d GROUP BY `thetime` ORDER BY `thetime` ASC;", $id, $start, $end), ARRAY_A);
202
  }
207
  foreach($stats as $result) {
208
  if(empty($result['clicks'])) $result['clicks'] = '0';
209
  if(empty($result['impressions'])) $result['impressions'] = '0';
210
+
211
  $dates .= ',"'.date_i18n("d M", $result['thetime']).'"';
212
  $clicks .= ','.$result['clicks'];
213
  $impressions .= ','.$result['impressions'];
216
  $dates = trim($dates, ",");
217
  $clicks = trim($clicks, ",");
218
  $impressions = trim($impressions, ",");
219
+
220
  $output = '';
221
  $output .= '<div id="chart-'.$chartid.'" style="height:'.$height.'px; width:100%;"></div>';
222
  $output .= adrotate_draw_graph($chartid, $dates, $clicks, $impressions);
223
  unset($stats, $graph, $dates, $clicks, $impressions);
224
  } else {
225
  $output = __('No data to show!', 'adrotate');
226
+ }
227
 
228
  return $output;
229
  }
236
  Return: $ctr
237
  Since: 3.7
238
  -------------------------------------------------------------*/
239
+ function adrotate_ctr($clicks = 0, $impressions = 0, $round = 2) {
240
 
241
  if($impressions > 0 AND $clicks > 0) {
242
  $ctr = round($clicks/$impressions*100, $round);
243
  } else {
244
  $ctr = 0;
245
  }
246
+
247
  return $ctr;
248
+ }
249
 
250
  /*-------------------------------------------------------------
251
  Name: adrotate_prepare_fullreport
254
  -------------------------------------------------------------*/
255
  function adrotate_prepare_fullreport() {
256
  global $wpdb;
257
+
258
  $today = adrotate_date_start('day');
259
 
260
  $stats['banners'] = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}adrotate` WHERE `type` = 'active';");
294
  -------------------------------------------------------------*/
295
  function adrotate_prepare_advertiser_report($user, $ads) {
296
  global $wpdb;
297
+
298
  if($ads) {
299
  $stats['ad_amount'] = count($ads);
300
  if(empty($stats['total_impressions'])) $stats['total_impressions'] = 0;
310
  }
311
 
312
  $stats['thebest'] = $wpdb->get_row($wpdb->prepare("
313
+ SELECT `{$wpdb->prefix}adrotate`.`id`, `{$wpdb->prefix}adrotate`.`title`, SUM(`{$wpdb->prefix}adrotate_stats`.`clicks`) as `clicks`
314
+ FROM `{$wpdb->prefix}adrotate`, `{$wpdb->prefix}adrotate_linkmeta`, `{$wpdb->prefix}adrotate_stats`
315
+ WHERE `{$wpdb->prefix}adrotate`.`id` = `{$wpdb->prefix}adrotate_linkmeta`.`ad`
316
+ AND `{$wpdb->prefix}adrotate_linkmeta`.`ad` = `{$wpdb->prefix}adrotate_stats`.`ad`
317
+ AND `{$wpdb->prefix}adrotate`.`tracker` = 'Y'
318
+ AND `{$wpdb->prefix}adrotate`.`type` = 'active'
319
  AND `{$wpdb->prefix}adrotate_linkmeta`.`user` = %d
320
  GROUP BY `{$wpdb->prefix}adrotate`.`id`
321
  ORDER BY `{$wpdb->prefix}adrotate_stats`.`clicks` DESC LIMIT 1;
322
  ", $user), ARRAY_A);
323
 
324
  $stats['theworst'] = $wpdb->get_row($wpdb->prepare("
325
+ SELECT `{$wpdb->prefix}adrotate`.`id`, `{$wpdb->prefix}adrotate`.`title`, SUM(`{$wpdb->prefix}adrotate_stats`.`clicks`) as `clicks`
326
+ FROM `{$wpdb->prefix}adrotate`, `{$wpdb->prefix}adrotate_linkmeta`, `{$wpdb->prefix}adrotate_stats`
327
+ WHERE `{$wpdb->prefix}adrotate`.`id` = `{$wpdb->prefix}adrotate_linkmeta`.`ad`
328
+ AND `{$wpdb->prefix}adrotate_linkmeta`.`ad` = `{$wpdb->prefix}adrotate_stats`.`ad`
329
  AND `{$wpdb->prefix}adrotate`.`tracker` = 'Y'
330
  AND `{$wpdb->prefix}adrotate`.`type` = 'active'
331
  AND `{$wpdb->prefix}adrotate_linkmeta`.`user` = %d
332
  GROUP BY `{$wpdb->prefix}adrotate`.`id`
333
  ORDER BY `{$wpdb->prefix}adrotate_stats`.`clicks` ASC LIMIT 1;
334
  ", $user), ARRAY_A);
335
+
336
  return $stats;
337
  }
338
  }
403
 
404
  // Split the data into chunks
405
  $insert = array_chunk($insert, 30);
406
+
407
  // Insert each chunk to the archive table
408
  if(is_array($insert)) {
409
  foreach($insert as $chunk) {
411
  VALUES ".implode(",", $chunk).";");
412
  unset($chunk);
413
  }
414
+
415
  // Delete old stats
416
  $wpdb->query("DELETE FROM `{$wpdb->prefix}adrotate_stats` WHERE `id` IN (".implode(",", $delete).");");
417
  }
418
 
419
+ unset($stats, $insert, $delete);
420
  }
421
 
422
  /*-------------------------------------------------------------
424
  Purpose: Count Impressions where needed
425
  Since: 3.11.3
426
  -------------------------------------------------------------*/
427
+ function adrotate_count_impression($ad, $group = 0, $blog_id = 0) {
428
  global $wpdb, $adrotate_config;
429
 
430
  if(($adrotate_config['enable_loggedin_impressions'] == 'Y' AND is_user_logged_in()) OR !is_user_logged_in()) {
448
  } else {
449
  $wpdb->insert($wpdb->prefix.'adrotate_stats', array('ad' => $ad, 'group' => $group, 'thetime' => $today, 'clicks' => 0, 'impressions' => 1));
450
  }
451
+
452
  $wpdb->insert($wpdb->prefix."adrotate_tracker", array('ipaddress' => $remote_ip, 'timer' => $now, 'bannerid' => $ad, 'stat' => 'i'));
453
  }
454
  }
457
  switch_to_blog($current_blog);
458
  }
459
  }
460
+ }
461
 
462
  /*-------------------------------------------------------------
463
  Name: adrotate_impression_callback
471
 
472
  $meta = $_POST['track'];
473
  $meta = base64_decode($meta);
474
+
475
  $meta = esc_attr($meta);
476
  // Don't use $impression_timer - It's for impressions used in javascript
477
  list($ad, $group, $blog_id, $impression_timer) = explode(",", $meta, 4);
494
 
495
  $meta = $_POST['track'];
496
  $meta = base64_decode($meta);
497
+
498
  $meta = esc_attr($meta);
499
  // Don't use $impression_timer - It's for impressions used in javascript
500
  list($ad, $group, $blog_id, $impression_timer) = explode(",", $meta, 4);
505
  $current_blog = $wpdb->blogid;
506
  switch_to_blog($blog_id);
507
  }
508
+
509
  if(($adrotate_config['enable_loggedin_clicks'] == 'Y' AND is_user_logged_in()) OR !is_user_logged_in()) {
510
  $remote_ip = adrotate_get_remote_ip();
511
+
512
  if(adrotate_is_human() AND $remote_ip != "unknown" AND !empty($remote_ip)) {
513
  $now = current_time('timestamp');
514
  $today = adrotate_date_start('day');
515
  $click_timer = $now - $adrotate_config['click_timer'];
516
+
517
  $saved_timer = $wpdb->get_var($wpdb->prepare("SELECT `timer` FROM `{$wpdb->prefix}adrotate_tracker` WHERE `ipaddress` = '%s' AND `stat` = 'c' AND `bannerid` = %d ORDER BY `timer` DESC LIMIT 1;", $remote_ip, $ad));
518
  if($saved_timer < $click_timer) {
519
  $stats = $wpdb->get_var($wpdb->prepare("SELECT `id` FROM `{$wpdb->prefix}adrotate_stats` WHERE `ad` = %d AND `group` = %d AND `thetime` = {$today};", $ad, $group));
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: Monetise your website with adverts while keeping things simple. Start making money today!
8
  Text Domain: adrotate
9
- Version: 5.8.8
10
  License: GPLv3
11
  */
12
 
@@ -21,7 +21,7 @@ License: GPLv3
21
  ------------------------------------------------------------------------------------ */
22
 
23
  /*--- AdRotate values ---------------------------------------*/
24
- define("ADROTATE_DISPLAY", '5.8.8');
25
  define("ADROTATE_VERSION", 399);
26
  define("ADROTATE_DB_VERSION", 66);
27
  $plugin_folder = plugin_dir_path(__FILE__);
@@ -111,7 +111,7 @@ function adrotate_dashboard() {
111
  $adrotate_statistics = add_submenu_page('adrotate', 'AdRotate · '.__('Statistics', 'adrotate'), __('Statistics', 'adrotate'), 'adrotate_ad_manage', 'adrotate-statistics', 'adrotate_statistics');
112
  $adrotate_support = add_submenu_page('adrotate', 'AdRotate · '.__('Support', 'adrotate'), __('Support', 'adrotate'), 'manage_options', 'adrotate-support', 'adrotate_support');
113
  $adrotate_settings = add_submenu_page('adrotate', 'AdRotate · '.__('Settings', 'adrotate'), __('Settings', 'adrotate'), 'manage_options', 'adrotate-settings', 'adrotate_options');
114
-
115
  // Add help tabs
116
  add_action('load-'.$adrotate_page, 'adrotate_help_info');
117
  add_action('load-'.$adrotate_pro, 'adrotate_help_info');
@@ -172,10 +172,10 @@ function adrotate_manage() {
172
  if(isset($_GET['file'])) $file = esc_attr($_GET['file']);
173
  if(isset($_GET['view'])) $view = esc_attr($_GET['view']);
174
  if(isset($_GET['ad'])) $ad_edit_id = esc_attr($_GET['ad']);
175
-
176
  if(!is_numeric($status)) $status = 0;
177
  if(!is_numeric($ad_edit_id)) $ad_edit_id = 0;
178
-
179
  $now = current_time('timestamp');
180
  $today = adrotate_date_start('day');
181
  $in2days = $now + 172800;
@@ -205,12 +205,12 @@ function adrotate_manage() {
205
  $starttime = $stoptime = 0;
206
  $starttime = $wpdb->get_var("SELECT `starttime` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '{$singlebanner->id}' AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` ORDER BY `starttime` ASC LIMIT 1;");
207
  $stoptime = $wpdb->get_var("SELECT `stoptime` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '{$singlebanner->id}' AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` ORDER BY `stoptime` DESC LIMIT 1;");
208
-
209
  $type = $singlebanner->type;
210
  if($type == 'active' AND $stoptime <= $in7days) $type = '7days';
211
  if($type == 'active' AND $stoptime <= $in2days) $type = '2days';
212
- if($type == 'active' AND $stoptime <= $now) $type = 'expired';
213
-
214
  $title = (strlen($singlebanner->title) == 0) ? 'Advert '.$singlebanner->id.' [temp]' : $singlebanner->title;
215
 
216
  if($type == 'active' OR $type == '7days') {
@@ -224,7 +224,7 @@ function adrotate_manage() {
224
  'lastactive' => $stoptime
225
  );
226
  }
227
-
228
  if($type == 'error' OR $type == 'expired' OR $type == '2days') {
229
  $error[$singlebanner->id] = array(
230
  'id' => $singlebanner->id,
@@ -236,7 +236,7 @@ function adrotate_manage() {
236
  'lastactive' => $stoptime
237
  );
238
  }
239
-
240
  if($type == 'disabled') {
241
  $disabled[$singlebanner->id] = array(
242
  'id' => $singlebanner->id,
@@ -250,7 +250,7 @@ function adrotate_manage() {
250
  }
251
  }
252
  ?>
253
-
254
  <div class="tablenav">
255
  <div class="alignleft actions">
256
  <a class="row-title" href="<?php echo admin_url('/admin.php?page=adrotate-ads');?>"><?php _e('Manage', 'adrotate'); ?></a>
@@ -259,27 +259,27 @@ function adrotate_manage() {
259
  </div>
260
  </div>
261
 
262
- <?php
263
  if ($view == "" OR $view == "manage") {
264
- // Show list of errorous ads if any
265
  if ($error) {
266
  include("dashboard/publisher/adverts-error.php");
267
  }
268
-
269
  include("dashboard/publisher/adverts-main.php");
270
 
271
  // Show disabled ads, if any
272
  if ($disabled) {
273
  include("dashboard/publisher/adverts-disabled.php");
274
- }
275
- } else if($view == "addnew" OR $view == "edit") {
276
  include("dashboard/publisher/adverts-edit.php");
277
- } else if($view == "generator") {
278
  include("dashboard/publisher/adverts-generator.php");
279
  }
280
  ?>
281
  <br class="clear" />
282
-
283
  <?php adrotate_credits(); ?>
284
 
285
  </div>
@@ -309,7 +309,7 @@ function adrotate_manage_group() {
309
  $year = date("Y");
310
  }
311
  $monthstart = mktime(0, 0, 0, $month, 1, $year);
312
- $monthend = mktime(0, 0, 0, $month+1, 0, $year);
313
 
314
  $today = adrotate_date_start('day');
315
  $now = current_time('timestamp');
@@ -324,7 +324,7 @@ function adrotate_manage_group() {
324
 
325
  <div class="tablenav">
326
  <div class="alignleft actions">
327
- <a class="row-title" href="<?php echo admin_url('/admin.php?page=adrotate-groups&view=manage');?>"><?php _e('Manage', 'adrotate'); ?></a> |
328
  <a class="row-title" href="<?php echo admin_url('/admin.php?page=adrotate-groups&view=addnew');?>"><?php _e('Add New', 'adrotate'); ?></a>
329
  </div>
330
  </div>
@@ -357,7 +357,7 @@ function adrotate_manage_schedules() {
357
  <div class="wrap">
358
  <h1><?php _e('Manage Schedules', 'adrotate'); ?></h1>
359
 
360
- <?php
361
  include("dashboard/publisher/schedules-main.php");
362
  ?>
363
 
@@ -515,21 +515,21 @@ function adrotate_options() {
515
 
516
  <?php if($status > 0) adrotate_status($status); ?>
517
 
518
- <h2 class="nav-tab-wrapper">
519
- <a href="?page=adrotate-settings&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General', 'adrotate'); ?></a>
520
- <a href="?page=adrotate-settings&tab=notifications" class="nav-tab <?php echo $active_tab == 'notifications' ? 'nav-tab-active' : ''; ?>"><?php _e('Notifications', 'adrotate'); ?></a>
521
- <a href="?page=adrotate-settings&tab=stats" class="nav-tab <?php echo $active_tab == 'stats' ? 'nav-tab-active' : ''; ?>"><?php _e('Statistics', 'adrotate'); ?></a>
522
- <a href="?page=adrotate-settings&tab=geo" class="nav-tab <?php echo $active_tab == 'geo' ? 'nav-tab-active' : ''; ?>"><?php _e('Geo Targeting', 'adrotate'); ?></a>
523
- <a href="?page=adrotate-settings&tab=advertisers" class="nav-tab <?php echo $active_tab == 'advertisers' ? 'nav-tab-active' : ''; ?>"><?php _e('Advertisers', 'adrotate'); ?></a>
524
- <a href="?page=adrotate-settings&tab=roles" class="nav-tab <?php echo $active_tab == 'roles' ? 'nav-tab-active' : ''; ?>"><?php _e('Access Roles', 'adrotate'); ?></a>
525
- <a href="?page=adrotate-settings&tab=misc" class="nav-tab <?php echo $active_tab == 'misc' ? 'nav-tab-active' : ''; ?>"><?php _e('Miscellaneous', 'adrotate'); ?></a>
526
- <a href="?page=adrotate-settings&tab=maintenance" class="nav-tab <?php echo $active_tab == 'maintenance' ? 'nav-tab-active' : ''; ?>"><?php _e('Maintenance', 'adrotate'); ?></a>
527
- </h2>
528
 
529
  <?php
530
  $adrotate_config = get_option('adrotate_config');
531
 
532
- if($active_tab == 'general') {
533
  $adrotate_crawlers = get_option('adrotate_crawlers');
534
 
535
  $crawlers = '';
@@ -537,20 +537,20 @@ function adrotate_options() {
537
  $crawlers = implode(', ', $adrotate_crawlers);
538
  }
539
 
540
- include("dashboard/settings/general.php");
541
  } elseif($active_tab == 'notifications') {
542
  $adrotate_notifications = get_option("adrotate_notifications");
543
- include("dashboard/settings/notifications.php");
544
  } elseif($active_tab == 'stats') {
545
- include("dashboard/settings/statistics.php");
546
  } elseif($active_tab == 'geo') {
547
- include("dashboard/settings/geotargeting.php");
548
  } elseif($active_tab == 'advertisers') {
549
- include("dashboard/settings/advertisers.php");
550
  } elseif($active_tab == 'roles') {
551
- include("dashboard/settings/roles.php");
552
  } elseif($active_tab == 'misc') {
553
- include("dashboard/settings/misc.php");
554
  } elseif($active_tab == 'maintenance') {
555
  $adrotate_version = get_option('adrotate_version');
556
  $adrotate_db_version = get_option('adrotate_db_version');
@@ -560,7 +560,7 @@ function adrotate_options() {
560
  $adschedule = wp_next_scheduled('adrotate_notification');
561
  $tracker = wp_next_scheduled('adrotate_empty_trackerdata');
562
 
563
- include("dashboard/settings/maintenance.php");
564
  } elseif($active_tab == 'license') {
565
  $adrotate_is_networked = adrotate_is_networked();
566
  $adrotate_hide_license = get_option('adrotate_hide_license');
@@ -569,8 +569,8 @@ function adrotate_options() {
569
  } else {
570
  $adrotate_activate = get_option('adrotate_activate');
571
  }
572
-
573
- include("dashboard/settings/license.php");
574
  }
575
  ?>
576
 
@@ -579,6 +579,6 @@ function adrotate_options() {
579
  <?php adrotate_credits(); ?>
580
 
581
  </div>
582
- <?php
583
  }
584
  ?>
6
  Author URI: https://www.arnan.me/?pk_campaign=adrotatefree&pk_keyword=plugin_info
7
  Description: Monetise your website with adverts while keeping things simple. Start making money today!
8
  Text Domain: adrotate
9
+ Version: 5.8.9
10
  License: GPLv3
11
  */
12
 
21
  ------------------------------------------------------------------------------------ */
22
 
23
  /*--- AdRotate values ---------------------------------------*/
24
+ define("ADROTATE_DISPLAY", '5.8.9');
25
  define("ADROTATE_VERSION", 399);
26
  define("ADROTATE_DB_VERSION", 66);
27
  $plugin_folder = plugin_dir_path(__FILE__);
111
  $adrotate_statistics = add_submenu_page('adrotate', 'AdRotate · '.__('Statistics', 'adrotate'), __('Statistics', 'adrotate'), 'adrotate_ad_manage', 'adrotate-statistics', 'adrotate_statistics');
112
  $adrotate_support = add_submenu_page('adrotate', 'AdRotate · '.__('Support', 'adrotate'), __('Support', 'adrotate'), 'manage_options', 'adrotate-support', 'adrotate_support');
113
  $adrotate_settings = add_submenu_page('adrotate', 'AdRotate · '.__('Settings', 'adrotate'), __('Settings', 'adrotate'), 'manage_options', 'adrotate-settings', 'adrotate_options');
114
+
115
  // Add help tabs
116
  add_action('load-'.$adrotate_page, 'adrotate_help_info');
117
  add_action('load-'.$adrotate_pro, 'adrotate_help_info');
172
  if(isset($_GET['file'])) $file = esc_attr($_GET['file']);
173
  if(isset($_GET['view'])) $view = esc_attr($_GET['view']);
174
  if(isset($_GET['ad'])) $ad_edit_id = esc_attr($_GET['ad']);
175
+
176
  if(!is_numeric($status)) $status = 0;
177
  if(!is_numeric($ad_edit_id)) $ad_edit_id = 0;
178
+
179
  $now = current_time('timestamp');
180
  $today = adrotate_date_start('day');
181
  $in2days = $now + 172800;
205
  $starttime = $stoptime = 0;
206
  $starttime = $wpdb->get_var("SELECT `starttime` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '{$singlebanner->id}' AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` ORDER BY `starttime` ASC LIMIT 1;");
207
  $stoptime = $wpdb->get_var("SELECT `stoptime` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '{$singlebanner->id}' AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` ORDER BY `stoptime` DESC LIMIT 1;");
208
+
209
  $type = $singlebanner->type;
210
  if($type == 'active' AND $stoptime <= $in7days) $type = '7days';
211
  if($type == 'active' AND $stoptime <= $in2days) $type = '2days';
212
+ if($type == 'active' AND $stoptime <= $now) $type = 'expired';
213
+
214
  $title = (strlen($singlebanner->title) == 0) ? 'Advert '.$singlebanner->id.' [temp]' : $singlebanner->title;
215
 
216
  if($type == 'active' OR $type == '7days') {
224
  'lastactive' => $stoptime
225
  );
226
  }
227
+
228
  if($type == 'error' OR $type == 'expired' OR $type == '2days') {
229
  $error[$singlebanner->id] = array(
230
  'id' => $singlebanner->id,
236
  'lastactive' => $stoptime
237
  );
238
  }
239
+
240
  if($type == 'disabled') {
241
  $disabled[$singlebanner->id] = array(
242
  'id' => $singlebanner->id,
250
  }
251
  }
252
  ?>
253
+
254
  <div class="tablenav">
255
  <div class="alignleft actions">
256
  <a class="row-title" href="<?php echo admin_url('/admin.php?page=adrotate-ads');?>"><?php _e('Manage', 'adrotate'); ?></a>
259
  </div>
260
  </div>
261
 
262
+ <?php
263
  if ($view == "" OR $view == "manage") {
264
+ // Show list of errorous ads if any
265
  if ($error) {
266
  include("dashboard/publisher/adverts-error.php");
267
  }
268
+
269
  include("dashboard/publisher/adverts-main.php");
270
 
271
  // Show disabled ads, if any
272
  if ($disabled) {
273
  include("dashboard/publisher/adverts-disabled.php");
274
+ }
275
+ } else if($view == "addnew" OR $view == "edit") {
276
  include("dashboard/publisher/adverts-edit.php");
277
+ } else if($view == "generator") {
278
  include("dashboard/publisher/adverts-generator.php");
279
  }
280
  ?>
281
  <br class="clear" />
282
+
283
  <?php adrotate_credits(); ?>
284
 
285
  </div>
309
  $year = date("Y");
310
  }
311
  $monthstart = mktime(0, 0, 0, $month, 1, $year);
312
+ $monthend = mktime(0, 0, 0, $month+1, 0, $year);
313
 
314
  $today = adrotate_date_start('day');
315
  $now = current_time('timestamp');
324
 
325
  <div class="tablenav">
326
  <div class="alignleft actions">
327
+ <a class="row-title" href="<?php echo admin_url('/admin.php?page=adrotate-groups&view=manage');?>"><?php _e('Manage', 'adrotate'); ?></a> |
328
  <a class="row-title" href="<?php echo admin_url('/admin.php?page=adrotate-groups&view=addnew');?>"><?php _e('Add New', 'adrotate'); ?></a>
329
  </div>
330
  </div>
357
  <div class="wrap">
358
  <h1><?php _e('Manage Schedules', 'adrotate'); ?></h1>
359
 
360
+ <?php
361
  include("dashboard/publisher/schedules-main.php");
362
  ?>
363
 
515
 
516
  <?php if($status > 0) adrotate_status($status); ?>
517
 
518
+ <h2 class="nav-tab-wrapper">
519
+ <a href="?page=adrotate-settings&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General', 'adrotate'); ?></a>
520
+ <a href="?page=adrotate-settings&tab=notifications" class="nav-tab <?php echo $active_tab == 'notifications' ? 'nav-tab-active' : ''; ?>"><?php _e('Notifications', 'adrotate'); ?></a>
521
+ <a href="?page=adrotate-settings&tab=stats" class="nav-tab <?php echo $active_tab == 'stats' ? 'nav-tab-active' : ''; ?>"><?php _e('Statistics', 'adrotate'); ?></a>
522
+ <a href="?page=adrotate-settings&tab=geo" class="nav-tab <?php echo $active_tab == 'geo' ? 'nav-tab-active' : ''; ?>"><?php _e('Geo Targeting', 'adrotate'); ?></a>
523
+ <a href="?page=adrotate-settings&tab=advertisers" class="nav-tab <?php echo $active_tab == 'advertisers' ? 'nav-tab-active' : ''; ?>"><?php _e('Advertisers', 'adrotate'); ?></a>
524
+ <a href="?page=adrotate-settings&tab=roles" class="nav-tab <?php echo $active_tab == 'roles' ? 'nav-tab-active' : ''; ?>"><?php _e('Access Roles', 'adrotate'); ?></a>
525
+ <a href="?page=adrotate-settings&tab=misc" class="nav-tab <?php echo $active_tab == 'misc' ? 'nav-tab-active' : ''; ?>"><?php _e('Miscellaneous', 'adrotate'); ?></a>
526
+ <a href="?page=adrotate-settings&tab=maintenance" class="nav-tab <?php echo $active_tab == 'maintenance' ? 'nav-tab-active' : ''; ?>"><?php _e('Maintenance', 'adrotate'); ?></a>
527
+ </h2>
528
 
529
  <?php
530
  $adrotate_config = get_option('adrotate_config');
531
 
532
+ if($active_tab == 'general') {
533
  $adrotate_crawlers = get_option('adrotate_crawlers');
534
 
535
  $crawlers = '';
537
  $crawlers = implode(', ', $adrotate_crawlers);
538
  }
539
 
540
+ include("dashboard/settings/general.php");
541
  } elseif($active_tab == 'notifications') {
542
  $adrotate_notifications = get_option("adrotate_notifications");
543
+ include("dashboard/settings/notifications.php");
544
  } elseif($active_tab == 'stats') {
545
+ include("dashboard/settings/statistics.php");
546
  } elseif($active_tab == 'geo') {
547
+ include("dashboard/settings/geotargeting.php");
548
  } elseif($active_tab == 'advertisers') {
549
+ include("dashboard/settings/advertisers.php");
550
  } elseif($active_tab == 'roles') {
551
+ include("dashboard/settings/roles.php");
552
  } elseif($active_tab == 'misc') {
553
+ include("dashboard/settings/misc.php");
554
  } elseif($active_tab == 'maintenance') {
555
  $adrotate_version = get_option('adrotate_version');
556
  $adrotate_db_version = get_option('adrotate_db_version');
560
  $adschedule = wp_next_scheduled('adrotate_notification');
561
  $tracker = wp_next_scheduled('adrotate_empty_trackerdata');
562
 
563
+ include("dashboard/settings/maintenance.php");
564
  } elseif($active_tab == 'license') {
565
  $adrotate_is_networked = adrotate_is_networked();
566
  $adrotate_hide_license = get_option('adrotate_hide_license');
569
  } else {
570
  $adrotate_activate = get_option('adrotate_activate');
571
  }
572
+
573
+ include("dashboard/settings/license.php");
574
  }
575
  ?>
576
 
579
  <?php adrotate_credits(); ?>
580
 
581
  </div>
582
+ <?php
583
  }
584
  ?>
dashboard/publisher/adverts-edit.php CHANGED
@@ -25,19 +25,19 @@ if(!$ad_edit_id) {
25
  $edit_banner = $wpdb->get_row("SELECT * FROM `{$wpdb->prefix}adrotate` WHERE `id` = '{$ad_edit_id}';");
26
 
27
  if($edit_banner) {
28
- $groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}adrotate_groups` WHERE `name` != '' ORDER BY `id` ASC;");
29
  $schedule = $wpdb->get_row("SELECT `{$wpdb->prefix}adrotate_schedule`.`id`, `starttime`, `stoptime`, `maxclicks`, `maximpressions` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '{$edit_banner->id}' AND `group` = 0 AND `user` = 0 AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` ORDER BY `{$wpdb->prefix}adrotate_schedule`.`id` ASC LIMIT 1;");
30
  $linkmeta = $wpdb->get_results("SELECT `group` FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '{$edit_banner->id}' AND `user` = 0 AND `schedule` = 0;");
31
-
32
  wp_enqueue_media();
33
  wp_enqueue_script('uploader-hook', plugins_url().'/adrotate/library/uploader-hook.js', array('jquery'));
34
-
35
  // Set up start and end date
36
  list($start_day, $start_month, $start_year, $start_hour, $start_minute) = explode(" ", date("d m Y H i", $schedule->starttime));
37
  list($end_day, $end_month, $end_year, $end_hour, $end_minute) = explode(" ", date("d m Y H i", $schedule->stoptime));
38
  $start_date = $start_day.'-'.$start_month.'-'.$start_year;
39
  $end_date = $end_day.'-'.$end_month.'-'.$end_year;
40
-
41
  $meta_array = array();
42
  foreach($linkmeta as $meta) {
43
  $meta_array[] = $meta->group;
@@ -46,40 +46,40 @@ if($edit_banner) {
46
  if($ad_edit_id) {
47
  if($edit_banner->type != 'empty') {
48
  // Errors
49
- if(strlen($edit_banner->bannercode) < 1 AND $edit_banner->type != 'empty')
50
  echo '<div class="error"><p>'. __('The AdCode cannot be empty!', 'adrotate').'</p></div>';
51
-
52
- if(!preg_match("/(%image%|%asset%)/i", $edit_banner->bannercode, $things) AND $edit_banner->image != '')
53
- echo '<div class="error"><p>'. __('You did not use %asset% (or %image%) in your AdCode but did select a file to use!', 'adrotate').'</p></div>';
54
-
55
- if(preg_match("/(%image%|%asset%)/i", $edit_banner->bannercode, $things) AND $edit_banner->image == '')
56
- echo '<div class="error"><p>'. __('You did use %asset% (or %image%) in your AdCode but did not select a file to use!', 'adrotate').'</p></div>';
57
-
58
- if((($edit_banner->imagetype != '' AND $edit_banner->image == '') OR ($edit_banner->imagetype == '' AND $edit_banner->image != '')))
59
- echo '<div class="error"><p>'. __('There is a problem saving the image. Please reset your image and re-save the ad!', 'adrotate').'</p></div>';
60
-
61
  if(!preg_match_all('/<(a|script|embed|iframe)[^>](.*?)>/i', stripslashes(htmlspecialchars_decode($edit_banner->bannercode, ENT_QUOTES)), $things) AND $edit_banner->tracker == 'Y')
62
  echo '<div class="error"><p>'. __("Tracking is enabled but no valid link/tag was found in the adcode!", 'adrotate').'</p></div>';
63
-
64
  // Ad Notices
65
  $adstate = adrotate_evaluate_ad($edit_banner->id);
66
  if($edit_banner->type == 'error' AND $adstate == 'active')
67
  echo '<div class="error"><p>'. __('AdRotate cannot find an error but the ad is marked erroneous, try re-saving the ad!', 'adrotate').'</p></div>';
68
-
69
  if($adstate == 'expired')
70
  echo '<div class="error"><p>'. __('This ad is expired and currently not shown on your website!', 'adrotate').'</p></div>';
71
-
72
  if($adstate == '2days')
73
  echo '<div class="updated"><p>'. __('The ad will expire in less than 2 days!', 'adrotate').'</p></div>';
74
-
75
  if($adstate == '7days')
76
  echo '<div class="updated"><p>'. __('This ad will expire in less than 7 days!', 'adrotate').'</p></div>';
77
-
78
- if($edit_banner->type == 'disabled')
79
  echo '<div class="updated"><p>'. __('This ad has been disabled and does not rotate on your site!', 'adrotate').'</p></div>';
80
  }
81
  }
82
-
83
  // Determine image field
84
  if($edit_banner->imagetype == "field") {
85
  $image_field = $edit_banner->image;
@@ -90,22 +90,22 @@ if($edit_banner) {
90
  } else {
91
  $image_field = '';
92
  $image_dropdown = '';
93
- }
94
  ?>
95
-
96
  <form method="post" action="admin.php?page=adrotate-ads">
97
  <?php wp_nonce_field('adrotate_save_ad','adrotate_nonce'); ?>
98
  <input type="hidden" name="adrotate_username" value="<?php echo $userdata->user_login;?>" />
99
  <input type="hidden" name="adrotate_id" value="<?php echo $edit_banner->id;?>" />
100
  <input type="hidden" name="adrotate_type" value="<?php echo $edit_banner->type;?>" />
101
  <input type="hidden" name="adrotate_schedule" value="<?php echo $schedule->id;?>" />
102
-
103
  <?php if($edit_banner->type == 'empty') { ?>
104
  <h3><?php _e('New Advert', 'adrotate'); ?></h3>
105
- <?php } else { ?>
106
  <h3><?php _e('Edit Advert', 'adrotate'); ?></h3>
107
  <?php } ?>
108
-
109
  <table class="widefat" style="margin-top: .5em;">
110
  <tbody>
111
  <tr>
@@ -196,12 +196,12 @@ if($edit_banner) {
196
  </tbody>
197
  </table>
198
  <center><?php _e('Get more features with AdRotate Pro.', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
199
-
200
  <p class="submit">
201
  <input tabindex="8" type="submit" name="adrotate_ad_submit" class="button-primary" value="<?php _e('Save Advert', 'adrotate'); ?>" />
202
  <a href="admin.php?page=adrotate-ads&view=manage" class="button"><?php _e('Cancel', 'adrotate'); ?></a>
203
  </p>
204
-
205
  <h2><?php _e('Usage', 'adrotate'); ?></h2>
206
  <table class="widefat" style="margin-top: .5em">
207
  <tbody>
@@ -217,7 +217,7 @@ if($edit_banner) {
217
  </tr>
218
  </tbody>
219
  </table>
220
-
221
  <h2><?php _e('Schedule your advert', 'adrotate'); ?></h2>
222
  <p><em><?php _e('Time uses a 24 hour clock. When you\'re used to the AM/PM system keep this in mind: If the start or end time is after lunch, add 12 hours. 2PM is 14:00 hours. 6AM is 6:00 hours.', 'adrotate'); ?></em></p>
223
  <table class="widefat" style="margin-top: .5em">
@@ -231,7 +231,7 @@ if($edit_banner) {
231
  <td>
232
  <input tabindex="10" type="text" id="enddate_picker" name="adrotate_end_date" value="<?php echo $end_date; ?>" class="datepicker ajdg-inputfield" autocomplete="off" />
233
  </td>
234
- </tr>
235
  <tr>
236
  <th><?php _e('Start time', 'adrotate'); ?> (hh:mm)</th>
237
  <td>
@@ -247,7 +247,7 @@ if($edit_banner) {
247
  <input tabindex="14" name="adrotate_end_minute" class="ajdg-inputfield" type="text" size="2" maxlength="4" value="<?php echo $end_minute; ?>" autocomplete="off" />
248
  </label>
249
  </td>
250
- </tr>
251
  <?php if($adrotate_config['stats'] == 1) { ?>
252
  <tr>
253
  <th><?php _e('Maximum Clicks', 'adrotate'); ?></th>
@@ -256,19 +256,19 @@ if($edit_banner) {
256
  <td><input tabindex="20" name="adrotate_maxshown" type="text" size="5" class="ajdg-inputfield" autocomplete="off" value="<?php echo $schedule->maximpressions;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
257
  </tr>
258
  <?php } ?>
259
- </tbody>
260
  </table>
261
  <center><?php _e('Create multiple and more advanced schedules for each advert with AdRotate Pro.', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
262
-
263
  <p class="submit">
264
  <input tabindex="21" type="submit" name="adrotate_ad_submit" class="button-primary" value="<?php _e('Save Advert', 'adrotate'); ?>" />
265
  <a href="admin.php?page=adrotate-ads&view=manage" class="button"><?php _e('Cancel', 'adrotate'); ?></a>
266
  </p>
267
-
268
  <h2><?php _e('Advanced', 'adrotate'); ?></h2>
269
  <p><em><?php _e('Available in AdRotate Pro!', 'adrotate'); ?></em></p>
270
  <table class="widefat" style="margin-top: .5em">
271
-
272
  <tbody>
273
  <tr>
274
  <th width="15%" valign="top"><?php _e('Show to everyone', 'adrotate'); ?></th>
@@ -341,14 +341,14 @@ if($edit_banner) {
341
  </tbody>
342
  </table>
343
  <center><?php _e('With AdRotate Pro you can easily select which devices and mobile operating systems the advert should show on!', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
344
-
345
  <h2><?php _e('Geo Targeting', 'adrotate'); ?></h2>
346
  <p><em><?php _e('Assign the advert to a group and enable that group to use Geo Targeting.', 'adrotate'); ?> <?php _e('Available in AdRotate Pro!', 'adrotate'); ?></em></p>
347
-
348
  <div id="dashboard-widgets-wrap">
349
  <div id="dashboard-widgets" class="metabox-holder">
350
  <div id="left-column" class="ajdg-postbox-container">
351
-
352
  <div class="ajdg-postbox">
353
  <h2 class="ajdg-postbox-title"><?php _e('Enter cities or metro IDs (DMA)', 'adrotate'); ?></h2>
354
  <div id="cities" class="ajdg-postbox-content">
@@ -356,7 +356,7 @@ if($edit_banner) {
356
  <p><em><?php _e('A comma separated list of Cities or Metro IDs:', 'adrotate'); ?> Amsterdam, New York, Manila, Mexico City, Tokyo.<br /><?php _e('AdRotate does not check the validity of names and assumes the basic english name.', 'adrotate'); ?></em></p>
357
  </div>
358
  </div>
359
-
360
  <div class="ajdg-postbox">
361
  <h2 class="ajdg-postbox-title"><?php _e('Enter States or State ISO3166-2 codes', 'adrotate'); ?></h2>
362
  <div id="cities" class="ajdg-postbox-content">
@@ -365,11 +365,11 @@ if($edit_banner) {
365
  <p><em><?php _e('A comma separated list of states:', 'adrotate'); ?> Ohio, California, Noord Holland, Normandy.<br /><?php _e('AdRotate does not check the validity of names and assumes the basic english name.', 'adrotate'); ?></em></p>
366
  </div>
367
  </div>
368
-
369
  </div>
370
  <div id="right-column" class="ajdg-postbox-container">
371
-
372
- <div class="ajdg-postbox">
373
  <h2 class="ajdg-postbox-title"><?php _e('Select Countries and or Regions', 'adrotate'); ?></h2>
374
  <div id="countries" class="ajdg-postbox-content">
375
  <div class="adrotate-select ajdg-fullwidth">
@@ -434,14 +434,14 @@ if($edit_banner) {
434
  </div>
435
  </div>
436
  </div>
437
-
438
  </div>
439
  </div>
440
  </div>
441
-
442
  <div class="clear"></div>
443
  <center><?php _e('Target your audience with Geo Targeting in AdRotate Pro', 'adrotate'); ?>, <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
444
-
445
  <h3><?php _e('Usage', 'adrotate'); ?></h3>
446
  <table class="widefat" style="margin-top: .5em">
447
  <tbody>
@@ -457,12 +457,12 @@ if($edit_banner) {
457
  </tr>
458
  </tbody>
459
  </table>
460
-
461
  <p class="submit">
462
  <input tabindex="24" type="submit" name="adrotate_ad_submit" class="button-primary" value="<?php _e('Save Advert', 'adrotate'); ?>" />
463
  <a href="admin.php?page=adrotate-ads&view=manage" class="button"><?php _e('Cancel', 'adrotate'); ?></a>
464
  </p>
465
-
466
  <?php if($groups) { ?>
467
  <h3><?php _e('Select Groups', 'adrotate'); ?></h3>
468
  <table class="widefat" style="margin-top: .5em">
@@ -474,9 +474,9 @@ if($edit_banner) {
474
  <th width="5%"><center><?php _e('Adverts', 'adrotate'); ?></center></th>
475
  </tr>
476
  </thead>
477
-
478
  <tbody>
479
- <?php
480
  $class = '';
481
  foreach($groups as $group) {
482
  if($group->adspeed > 0) $adspeed = $group->adspeed / 1000;
@@ -485,7 +485,7 @@ if($edit_banner) {
485
  if($group->modus == 2) $modus[] = __('Block', 'adrotate').' ('.$group->gridrows.' x '.$group->gridcolumns.' '. __('grid', 'adrotate').')';
486
  if($group->cat_loc > 0 OR $group->page_loc > 0) $modus[] = __('Post Injection', 'adrotate');
487
  if($group->geo == 1 AND $adrotate_config['enable_geo'] > 0) $modus[] = __('Geolocation', 'adrotate');
488
-
489
  $ads_in_group = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `group` = ".$group->id." AND `user` = 0 AND `schedule` = 0;");
490
  $class = ('alternate' != $class) ? 'alternate' : ''; ?>
491
  <tr id='group-<?php echo $group->id; ?>' class=' <?php echo $class; ?>'>
@@ -494,13 +494,13 @@ if($edit_banner) {
494
  <td><?php echo $group->name; ?><span style="color:#999;"><?php echo '<br /><span style="font-weight:bold;">'.__('Mode', 'adrotate').':</span> '.implode(', ', $modus); ?></span></td>
495
  <td><center><?php echo $ads_in_group; ?></center></td>
496
  </tr>
497
- <?php
498
  unset($modus);
499
- }
500
  ?>
501
- </tbody>
502
  </table>
503
-
504
  <p class="submit">
505
  <input tabindex="25" type="submit" name="adrotate_ad_submit" class="button-primary" value="<?php _e('Save Advert', 'adrotate'); ?>" />
506
  <a href="admin.php?page=adrotate-ads&view=manage" class="button"><?php _e('Cancel', 'adrotate'); ?></a>
@@ -518,7 +518,7 @@ if($edit_banner) {
518
  </tr>
519
  </tbody>
520
  </table>
521
- <?php } ?>
522
 
523
  </form>
524
  <?php
25
  $edit_banner = $wpdb->get_row("SELECT * FROM `{$wpdb->prefix}adrotate` WHERE `id` = '{$ad_edit_id}';");
26
 
27
  if($edit_banner) {
28
+ $groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}adrotate_groups` WHERE `name` != '' ORDER BY `id` ASC;");
29
  $schedule = $wpdb->get_row("SELECT `{$wpdb->prefix}adrotate_schedule`.`id`, `starttime`, `stoptime`, `maxclicks`, `maximpressions` FROM `{$wpdb->prefix}adrotate_schedule`, `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '{$edit_banner->id}' AND `group` = 0 AND `user` = 0 AND `schedule` = `{$wpdb->prefix}adrotate_schedule`.`id` ORDER BY `{$wpdb->prefix}adrotate_schedule`.`id` ASC LIMIT 1;");
30
  $linkmeta = $wpdb->get_results("SELECT `group` FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `ad` = '{$edit_banner->id}' AND `user` = 0 AND `schedule` = 0;");
31
+
32
  wp_enqueue_media();
33
  wp_enqueue_script('uploader-hook', plugins_url().'/adrotate/library/uploader-hook.js', array('jquery'));
34
+
35
  // Set up start and end date
36
  list($start_day, $start_month, $start_year, $start_hour, $start_minute) = explode(" ", date("d m Y H i", $schedule->starttime));
37
  list($end_day, $end_month, $end_year, $end_hour, $end_minute) = explode(" ", date("d m Y H i", $schedule->stoptime));
38
  $start_date = $start_day.'-'.$start_month.'-'.$start_year;
39
  $end_date = $end_day.'-'.$end_month.'-'.$end_year;
40
+
41
  $meta_array = array();
42
  foreach($linkmeta as $meta) {
43
  $meta_array[] = $meta->group;
46
  if($ad_edit_id) {
47
  if($edit_banner->type != 'empty') {
48
  // Errors
49
+ if(strlen($edit_banner->bannercode) < 1 AND $edit_banner->type != 'empty')
50
  echo '<div class="error"><p>'. __('The AdCode cannot be empty!', 'adrotate').'</p></div>';
51
+
52
+ if(!preg_match("/(%image%|%asset%)/i", $edit_banner->bannercode, $things) AND $edit_banner->image != '')
53
+ echo '<div class="error"><p>'. __('You did not use %asset% in your AdCode but did select a file to use!', 'adrotate').'</p></div>';
54
+
55
+ if(preg_match("/(%image%|%asset%)/i", $edit_banner->bannercode, $things) AND $edit_banner->image == '')
56
+ echo '<div class="error"><p>'. __('You did use %asset% in your AdCode but did not select a file to use!', 'adrotate').'</p></div>';
57
+
58
+ if((($edit_banner->imagetype != '' AND $edit_banner->image == '') OR ($edit_banner->imagetype == '' AND $edit_banner->image != '')))
59
+ echo '<div class="error"><p>'. __('There is a problem saving the image. Please re-set your image and re-save the ad!', 'adrotate').'</p></div>';
60
+
61
  if(!preg_match_all('/<(a|script|embed|iframe)[^>](.*?)>/i', stripslashes(htmlspecialchars_decode($edit_banner->bannercode, ENT_QUOTES)), $things) AND $edit_banner->tracker == 'Y')
62
  echo '<div class="error"><p>'. __("Tracking is enabled but no valid link/tag was found in the adcode!", 'adrotate').'</p></div>';
63
+
64
  // Ad Notices
65
  $adstate = adrotate_evaluate_ad($edit_banner->id);
66
  if($edit_banner->type == 'error' AND $adstate == 'active')
67
  echo '<div class="error"><p>'. __('AdRotate cannot find an error but the ad is marked erroneous, try re-saving the ad!', 'adrotate').'</p></div>';
68
+
69
  if($adstate == 'expired')
70
  echo '<div class="error"><p>'. __('This ad is expired and currently not shown on your website!', 'adrotate').'</p></div>';
71
+
72
  if($adstate == '2days')
73
  echo '<div class="updated"><p>'. __('The ad will expire in less than 2 days!', 'adrotate').'</p></div>';
74
+
75
  if($adstate == '7days')
76
  echo '<div class="updated"><p>'. __('This ad will expire in less than 7 days!', 'adrotate').'</p></div>';
77
+
78
+ if($edit_banner->type == 'disabled')
79
  echo '<div class="updated"><p>'. __('This ad has been disabled and does not rotate on your site!', 'adrotate').'</p></div>';
80
  }
81
  }
82
+
83
  // Determine image field
84
  if($edit_banner->imagetype == "field") {
85
  $image_field = $edit_banner->image;
90
  } else {
91
  $image_field = '';
92
  $image_dropdown = '';
93
+ }
94
  ?>
95
+
96
  <form method="post" action="admin.php?page=adrotate-ads">
97
  <?php wp_nonce_field('adrotate_save_ad','adrotate_nonce'); ?>
98
  <input type="hidden" name="adrotate_username" value="<?php echo $userdata->user_login;?>" />
99
  <input type="hidden" name="adrotate_id" value="<?php echo $edit_banner->id;?>" />
100
  <input type="hidden" name="adrotate_type" value="<?php echo $edit_banner->type;?>" />
101
  <input type="hidden" name="adrotate_schedule" value="<?php echo $schedule->id;?>" />
102
+
103
  <?php if($edit_banner->type == 'empty') { ?>
104
  <h3><?php _e('New Advert', 'adrotate'); ?></h3>
105
+ <?php } else { ?>
106
  <h3><?php _e('Edit Advert', 'adrotate'); ?></h3>
107
  <?php } ?>
108
+
109
  <table class="widefat" style="margin-top: .5em;">
110
  <tbody>
111
  <tr>
196
  </tbody>
197
  </table>
198
  <center><?php _e('Get more features with AdRotate Pro.', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
199
+
200
  <p class="submit">
201
  <input tabindex="8" type="submit" name="adrotate_ad_submit" class="button-primary" value="<?php _e('Save Advert', 'adrotate'); ?>" />
202
  <a href="admin.php?page=adrotate-ads&view=manage" class="button"><?php _e('Cancel', 'adrotate'); ?></a>
203
  </p>
204
+
205
  <h2><?php _e('Usage', 'adrotate'); ?></h2>
206
  <table class="widefat" style="margin-top: .5em">
207
  <tbody>
217
  </tr>
218
  </tbody>
219
  </table>
220
+
221
  <h2><?php _e('Schedule your advert', 'adrotate'); ?></h2>
222
  <p><em><?php _e('Time uses a 24 hour clock. When you\'re used to the AM/PM system keep this in mind: If the start or end time is after lunch, add 12 hours. 2PM is 14:00 hours. 6AM is 6:00 hours.', 'adrotate'); ?></em></p>
223
  <table class="widefat" style="margin-top: .5em">
231
  <td>
232
  <input tabindex="10" type="text" id="enddate_picker" name="adrotate_end_date" value="<?php echo $end_date; ?>" class="datepicker ajdg-inputfield" autocomplete="off" />
233
  </td>
234
+ </tr>
235
  <tr>
236
  <th><?php _e('Start time', 'adrotate'); ?> (hh:mm)</th>
237
  <td>
247
  <input tabindex="14" name="adrotate_end_minute" class="ajdg-inputfield" type="text" size="2" maxlength="4" value="<?php echo $end_minute; ?>" autocomplete="off" />
248
  </label>
249
  </td>
250
+ </tr>
251
  <?php if($adrotate_config['stats'] == 1) { ?>
252
  <tr>
253
  <th><?php _e('Maximum Clicks', 'adrotate'); ?></th>
256
  <td><input tabindex="20" name="adrotate_maxshown" type="text" size="5" class="ajdg-inputfield" autocomplete="off" value="<?php echo $schedule->maximpressions;?>" /> <em><?php _e('Leave empty or 0 to skip this.', 'adrotate'); ?></em></td>
257
  </tr>
258
  <?php } ?>
259
+ </tbody>
260
  </table>
261
  <center><?php _e('Create multiple and more advanced schedules for each advert with AdRotate Pro.', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
262
+
263
  <p class="submit">
264
  <input tabindex="21" type="submit" name="adrotate_ad_submit" class="button-primary" value="<?php _e('Save Advert', 'adrotate'); ?>" />
265
  <a href="admin.php?page=adrotate-ads&view=manage" class="button"><?php _e('Cancel', 'adrotate'); ?></a>
266
  </p>
267
+
268
  <h2><?php _e('Advanced', 'adrotate'); ?></h2>
269
  <p><em><?php _e('Available in AdRotate Pro!', 'adrotate'); ?></em></p>
270
  <table class="widefat" style="margin-top: .5em">
271
+
272
  <tbody>
273
  <tr>
274
  <th width="15%" valign="top"><?php _e('Show to everyone', 'adrotate'); ?></th>
341
  </tbody>
342
  </table>
343
  <center><?php _e('With AdRotate Pro you can easily select which devices and mobile operating systems the advert should show on!', 'adrotate'); ?> <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
344
+
345
  <h2><?php _e('Geo Targeting', 'adrotate'); ?></h2>
346
  <p><em><?php _e('Assign the advert to a group and enable that group to use Geo Targeting.', 'adrotate'); ?> <?php _e('Available in AdRotate Pro!', 'adrotate'); ?></em></p>
347
+
348
  <div id="dashboard-widgets-wrap">
349
  <div id="dashboard-widgets" class="metabox-holder">
350
  <div id="left-column" class="ajdg-postbox-container">
351
+
352
  <div class="ajdg-postbox">
353
  <h2 class="ajdg-postbox-title"><?php _e('Enter cities or metro IDs (DMA)', 'adrotate'); ?></h2>
354
  <div id="cities" class="ajdg-postbox-content">
356
  <p><em><?php _e('A comma separated list of Cities or Metro IDs:', 'adrotate'); ?> Amsterdam, New York, Manila, Mexico City, Tokyo.<br /><?php _e('AdRotate does not check the validity of names and assumes the basic english name.', 'adrotate'); ?></em></p>
357
  </div>
358
  </div>
359
+
360
  <div class="ajdg-postbox">
361
  <h2 class="ajdg-postbox-title"><?php _e('Enter States or State ISO3166-2 codes', 'adrotate'); ?></h2>
362
  <div id="cities" class="ajdg-postbox-content">
365
  <p><em><?php _e('A comma separated list of states:', 'adrotate'); ?> Ohio, California, Noord Holland, Normandy.<br /><?php _e('AdRotate does not check the validity of names and assumes the basic english name.', 'adrotate'); ?></em></p>
366
  </div>
367
  </div>
368
+
369
  </div>
370
  <div id="right-column" class="ajdg-postbox-container">
371
+
372
+ <div class="ajdg-postbox">
373
  <h2 class="ajdg-postbox-title"><?php _e('Select Countries and or Regions', 'adrotate'); ?></h2>
374
  <div id="countries" class="ajdg-postbox-content">
375
  <div class="adrotate-select ajdg-fullwidth">
434
  </div>
435
  </div>
436
  </div>
437
+
438
  </div>
439
  </div>
440
  </div>
441
+
442
  <div class="clear"></div>
443
  <center><?php _e('Target your audience with Geo Targeting in AdRotate Pro', 'adrotate'); ?>, <a href="admin.php?page=adrotate-pro"><?php _e('Upgrade now', 'adrotate'); ?></a>!</center>
444
+
445
  <h3><?php _e('Usage', 'adrotate'); ?></h3>
446
  <table class="widefat" style="margin-top: .5em">
447
  <tbody>
457
  </tr>
458
  </tbody>
459
  </table>
460
+
461
  <p class="submit">
462
  <input tabindex="24" type="submit" name="adrotate_ad_submit" class="button-primary" value="<?php _e('Save Advert', 'adrotate'); ?>" />
463
  <a href="admin.php?page=adrotate-ads&view=manage" class="button"><?php _e('Cancel', 'adrotate'); ?></a>
464
  </p>
465
+
466
  <?php if($groups) { ?>
467
  <h3><?php _e('Select Groups', 'adrotate'); ?></h3>
468
  <table class="widefat" style="margin-top: .5em">
474
  <th width="5%"><center><?php _e('Adverts', 'adrotate'); ?></center></th>
475
  </tr>
476
  </thead>
477
+
478
  <tbody>
479
+ <?php
480
  $class = '';
481
  foreach($groups as $group) {
482
  if($group->adspeed > 0) $adspeed = $group->adspeed / 1000;
485
  if($group->modus == 2) $modus[] = __('Block', 'adrotate').' ('.$group->gridrows.' x '.$group->gridcolumns.' '. __('grid', 'adrotate').')';
486
  if($group->cat_loc > 0 OR $group->page_loc > 0) $modus[] = __('Post Injection', 'adrotate');
487
  if($group->geo == 1 AND $adrotate_config['enable_geo'] > 0) $modus[] = __('Geolocation', 'adrotate');
488
+
489
  $ads_in_group = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}adrotate_linkmeta` WHERE `group` = ".$group->id." AND `user` = 0 AND `schedule` = 0;");
490
  $class = ('alternate' != $class) ? 'alternate' : ''; ?>
491
  <tr id='group-<?php echo $group->id; ?>' class=' <?php echo $class; ?>'>
494
  <td><?php echo $group->name; ?><span style="color:#999;"><?php echo '<br /><span style="font-weight:bold;">'.__('Mode', 'adrotate').':</span> '.implode(', ', $modus); ?></span></td>
495
  <td><center><?php echo $ads_in_group; ?></center></td>
496
  </tr>
497
+ <?php
498
  unset($modus);
499
+ }
500
  ?>
501
+ </tbody>
502
  </table>
503
+
504
  <p class="submit">
505
  <input tabindex="25" type="submit" name="adrotate_ad_submit" class="button-primary" value="<?php _e('Save Advert', 'adrotate'); ?>" />
506
  <a href="admin.php?page=adrotate-ads&view=manage" class="button"><?php _e('Cancel', 'adrotate'); ?></a>
518
  </tr>
519
  </tbody>
520
  </table>
521
+ <?php } ?>
522
 
523
  </form>
524
  <?php
language/adrotate-de_DE.mo CHANGED
Binary file
language/adrotate-de_DE.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: AdRotate\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2020-07-23 17:15-0500\n"
6
- "PO-Revision-Date: 2020-07-23 17:16-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans from AJdG Solutions <info@adrotateplugin.com>\n"
9
  "Language: de\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "X-Poedit-KeywordsList: __;_e;_\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Generator: Poedit 2.3.1\n"
17
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
@@ -974,28 +974,24 @@ msgid "The AdCode cannot be empty!"
974
  msgstr "Der AdCode darf nicht leer sein!"
975
 
976
  #: dashboard/publisher/adverts-edit.php:53
977
- msgid ""
978
- "You did not use %asset% (or %image%) in your AdCode but did select a file to "
979
- "use!"
980
  msgstr ""
981
- "Sie haben %asset% (oder %image%) nicht verwendet. in Ihrem AdCode, aber "
982
- "wählte eine Datei zu verwenden!"
983
 
984
  #: dashboard/publisher/adverts-edit.php:56
985
- msgid ""
986
- "You did use %asset% (or %image%) in your AdCode but did not select a file to "
987
- "use!"
988
  msgstr ""
989
- "Sie haben %asset% (oder %image%) verwendet in Ihrem AdCode, aber keine Datei "
990
  "ausgewählt!"
991
 
992
  #: dashboard/publisher/adverts-edit.php:59
993
  msgid ""
994
- "There is a problem saving the image. Please reset your image and re-save the "
995
- "ad!"
996
  msgstr ""
997
- "Es gibt ein Problem, das Bild zu speichern. Bitte setzen Sie das Bild zurück "
998
- "und speichern Sie die Anzeige erneut!"
999
 
1000
  #: dashboard/publisher/adverts-edit.php:62
1001
  msgid "Tracking is enabled but no valid link/tag was found in the adcode!"
@@ -3487,6 +3483,20 @@ msgstr "Hilfe erhalten"
3487
  msgid "Premium Support is available in AdRotate Pro!"
3488
  msgstr "Diese Funktion ist verfügbar in AdRotate Pro!"
3489
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3490
  #~ msgid "Advert Management"
3491
  #~ msgstr "Anzeige-Management"
3492
 
@@ -6244,16 +6254,6 @@ msgstr "Diese Funktion ist verfügbar in AdRotate Pro!"
6244
  #~ msgid "impressions per day"
6245
  #~ msgstr "Impressions pro Tag"
6246
 
6247
- #~ msgid "You did not use %image% in your AdCode but did select a file to use!"
6248
- #~ msgstr ""
6249
- #~ "Sie haben %image% nicht in Ihrem AdCode verwendet, haben aber eine Datei "
6250
- #~ "ausgewählt!"
6251
-
6252
- #~ msgid "You did use %image% in your AdCode but did not select a file to use!"
6253
- #~ msgstr ""
6254
- #~ "Sie haben %image% in Ihrem AdCode verwendet, haben aber keine Datei "
6255
- #~ "ausgewählt!"
6256
-
6257
  #~ msgid ""
6258
  #~ "You did not use %image% in your AdCode. The responsive feature will be "
6259
  #~ "ineffective."
2
  msgstr ""
3
  "Project-Id-Version: AdRotate\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-09-21 02:35-0500\n"
6
+ "PO-Revision-Date: 2020-09-21 02:35-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans from AJdG Solutions <info@adrotateplugin.com>\n"
9
  "Language: de\n"
13
  "X-Poedit-KeywordsList: __;_e;_\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Generator: Poedit 2.4.1\n"
17
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
974
  msgstr "Der AdCode darf nicht leer sein!"
975
 
976
  #: dashboard/publisher/adverts-edit.php:53
977
+ msgid "You did not use %asset% in your AdCode but did select a file to use!"
 
 
978
  msgstr ""
979
+ "Sie haben %asset% nicht in Ihrem AdCode verwendet, haben aber eine Datei "
980
+ "ausgewählt!"
981
 
982
  #: dashboard/publisher/adverts-edit.php:56
983
+ msgid "You did use %asset% in your AdCode but did not select a file to use!"
 
 
984
  msgstr ""
985
+ "Sie haben %asset% in Ihrem AdCode verwendet, haben aber keine Datei "
986
  "ausgewählt!"
987
 
988
  #: dashboard/publisher/adverts-edit.php:59
989
  msgid ""
990
+ "There is a problem saving the image. Please re-set your image and re-save "
991
+ "the ad!"
992
  msgstr ""
993
+ "Beim Speichern des Bildes ist ein Problem. Bitte stellen Sie Ihr Bild neu "
994
+ "ein und speichern Sie die Anzeige erneut!"
995
 
996
  #: dashboard/publisher/adverts-edit.php:62
997
  msgid "Tracking is enabled but no valid link/tag was found in the adcode!"
3483
  msgid "Premium Support is available in AdRotate Pro!"
3484
  msgstr "Diese Funktion ist verfügbar in AdRotate Pro!"
3485
 
3486
+ #~ msgid ""
3487
+ #~ "You did not use %asset% (or %image%) in your AdCode but did select a file "
3488
+ #~ "to use!"
3489
+ #~ msgstr ""
3490
+ #~ "Sie haben %asset% (oder %image%) nicht verwendet. in Ihrem AdCode, aber "
3491
+ #~ "wählte eine Datei zu verwenden!"
3492
+
3493
+ #~ msgid ""
3494
+ #~ "You did use %asset% (or %image%) in your AdCode but did not select a file "
3495
+ #~ "to use!"
3496
+ #~ msgstr ""
3497
+ #~ "Sie haben %asset% (oder %image%) verwendet in Ihrem AdCode, aber keine "
3498
+ #~ "Datei ausgewählt!"
3499
+
3500
  #~ msgid "Advert Management"
3501
  #~ msgstr "Anzeige-Management"
3502
 
6254
  #~ msgid "impressions per day"
6255
  #~ msgstr "Impressions pro Tag"
6256
 
 
 
 
 
 
 
 
 
 
 
6257
  #~ msgid ""
6258
  #~ "You did not use %image% in your AdCode. The responsive feature will be "
6259
  #~ "ineffective."
language/adrotate-fr_FR.mo CHANGED
Binary file
language/adrotate-fr_FR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: AdRotate Professional\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2020-07-23 17:14-0500\n"
6
- "PO-Revision-Date: 2020-07-23 17:15-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans\n"
9
  "Language: fr\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Generator: Poedit 2.3.1\n"
17
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
@@ -979,25 +979,21 @@ msgid "The AdCode cannot be empty!"
979
  msgstr "Le code de la annonce ne peut être vide!"
980
 
981
  #: dashboard/publisher/adverts-edit.php:53
982
- msgid ""
983
- "You did not use %asset% (or %image%) in your AdCode but did select a file to "
984
- "use!"
985
  msgstr ""
986
- "Vous n’avez pas utilisé %actif% (ou %image%) dans votre AdCode, mais a "
987
- "choisi un fichier à utiliser!"
988
 
989
  #: dashboard/publisher/adverts-edit.php:56
990
- msgid ""
991
- "You did use %asset% (or %image%) in your AdCode but did not select a file to "
992
- "use!"
993
  msgstr ""
994
- "Vous n’a utilisé des actifs (ou % image %) dans votre AdCode mais n’avez pas "
995
- "sélectionné un fichier à utiliser !"
996
 
997
  #: dashboard/publisher/adverts-edit.php:59
998
  msgid ""
999
- "There is a problem saving the image. Please reset your image and re-save the "
1000
- "ad!"
1001
  msgstr ""
1002
  "Il y a un problème à sauver l’image. Veuillez réinitialiser votre image et "
1003
  "sauvegarder l’annonce !"
2
  msgstr ""
3
  "Project-Id-Version: AdRotate Professional\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-09-21 02:35-0500\n"
6
+ "PO-Revision-Date: 2020-09-21 02:35-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans\n"
9
  "Language: fr\n"
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Generator: Poedit 2.4.1\n"
17
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
979
  msgstr "Le code de la annonce ne peut être vide!"
980
 
981
  #: dashboard/publisher/adverts-edit.php:53
982
+ msgid "You did not use %asset% in your AdCode but did select a file to use!"
 
 
983
  msgstr ""
984
+ "Vous n’avez pas utilisé %actif% dans votre AdCode, mais a choisi un fichier "
985
+ "à utiliser!"
986
 
987
  #: dashboard/publisher/adverts-edit.php:56
988
+ msgid "You did use %asset% in your AdCode but did not select a file to use!"
 
 
989
  msgstr ""
990
+ "Vous n’a utilisé des actifs dans votre AdCode mais n’avez pas sélectionné un "
991
+ "fichier à utiliser !"
992
 
993
  #: dashboard/publisher/adverts-edit.php:59
994
  msgid ""
995
+ "There is a problem saving the image. Please re-set your image and re-save "
996
+ "the ad!"
997
  msgstr ""
998
  "Il y a un problème à sauver l’image. Veuillez réinitialiser votre image et "
999
  "sauvegarder l’annonce !"
language/adrotate-it_IT.mo CHANGED
Binary file
language/adrotate-it_IT.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: AdRotate Professional\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2020-07-23 17:13-0500\n"
6
- "PO-Revision-Date: 2020-07-23 17:14-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans\n"
9
  "Language: it\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Generator: Poedit 2.3.1\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
@@ -968,25 +968,21 @@ msgid "The AdCode cannot be empty!"
968
  msgstr "L'AdCode non può essere vuoto!"
969
 
970
  #: dashboard/publisher/adverts-edit.php:53
971
- msgid ""
972
- "You did not use %asset% (or %image%) in your AdCode but did select a file to "
973
- "use!"
974
  msgstr ""
975
- "Non hai utilizzato %asset% (o %image%) nel tuo AdCode ma hai selezionato un "
976
- "file da usare!"
977
 
978
  #: dashboard/publisher/adverts-edit.php:56
979
- msgid ""
980
- "You did use %asset% (or %image%) in your AdCode but did not select a file to "
981
- "use!"
982
  msgstr ""
983
- "Hai utilizzato %asset% (o %image%) nel tuo AdCode ma non hai selezionato un "
984
- "file da usare!"
985
 
986
  #: dashboard/publisher/adverts-edit.php:59
987
  msgid ""
988
- "There is a problem saving the image. Please reset your image and re-save the "
989
- "ad!"
990
  msgstr ""
991
  "Si è verificato un problema durante il salvataggio dell'immagine. Si prega "
992
  "di ripristinare l'immagine e salvare nuovamente l'annuncio!"
2
  msgstr ""
3
  "Project-Id-Version: AdRotate Professional\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-09-21 02:34-0500\n"
6
+ "PO-Revision-Date: 2020-09-21 02:34-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans\n"
9
  "Language: it\n"
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Generator: Poedit 2.4.1\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
968
  msgstr "L'AdCode non può essere vuoto!"
969
 
970
  #: dashboard/publisher/adverts-edit.php:53
971
+ msgid "You did not use %asset% in your AdCode but did select a file to use!"
 
 
972
  msgstr ""
973
+ "Non hai utilizzato %asset% nel tuo AdCode ma hai selezionato un file da "
974
+ "usare!"
975
 
976
  #: dashboard/publisher/adverts-edit.php:56
977
+ msgid "You did use %asset% in your AdCode but did not select a file to use!"
 
 
978
  msgstr ""
979
+ "Hai utilizzato %asset% nel tuo AdCode ma non hai selezionato un file da "
980
+ "usare!"
981
 
982
  #: dashboard/publisher/adverts-edit.php:59
983
  msgid ""
984
+ "There is a problem saving the image. Please re-set your image and re-save "
985
+ "the ad!"
986
  msgstr ""
987
  "Si è verificato un problema durante il salvataggio dell'immagine. Si prega "
988
  "di ripristinare l'immagine e salvare nuovamente l'annuncio!"
language/adrotate-nl_NL.mo CHANGED
Binary file
language/adrotate-nl_NL.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: AdRotate Professional\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2020-08-21 10:11-0500\n"
6
- "PO-Revision-Date: 2020-08-21 10:32-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans\n"
9
  "Language: nl\n"
@@ -973,28 +973,27 @@ msgid "The AdCode cannot be empty!"
973
  msgstr "De AdCode kan niet leeg zijn!"
974
 
975
  #: dashboard/publisher/adverts-edit.php:53
976
- msgid ""
977
- "You did not use %asset% (or %image%) in your AdCode but did select a file to "
978
- "use!"
979
  msgstr ""
980
- "Je hebt geen %asset% (of %image%) in je AdCode, maar er is wel een bestand "
981
- "geselecteerd om te gebruiken!"
982
 
983
  #: dashboard/publisher/adverts-edit.php:56
984
- msgid ""
985
- "You did use %asset% (or %image%) in your AdCode but did not select a file to "
986
- "use!"
987
  msgstr ""
988
- "U gebruikt %asset% (of %image%) in de AdCode, maar je hebt geen bestand "
989
- "geselecteerd om te gebruiken!"
990
 
991
  #: dashboard/publisher/adverts-edit.php:59
 
 
 
992
  msgid ""
993
- "There is a problem saving the image. Please reset your image and re-save the "
994
- "ad!"
995
  msgstr ""
996
- "Er is een probleem opgetreden bij het opslaan van de afbeelding. Reset de "
997
- "afbeelding en bewaar de advertentie opnieuw!"
998
 
999
  #: dashboard/publisher/adverts-edit.php:62
1000
  msgid "Tracking is enabled but no valid link/tag was found in the adcode!"
2
  msgstr ""
3
  "Project-Id-Version: AdRotate Professional\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-09-21 02:32-0500\n"
6
+ "PO-Revision-Date: 2020-09-21 02:34-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans\n"
9
  "Language: nl\n"
973
  msgstr "De AdCode kan niet leeg zijn!"
974
 
975
  #: dashboard/publisher/adverts-edit.php:53
976
+ msgid "You did not use %asset% in your AdCode but did select a file to use!"
 
 
977
  msgstr ""
978
+ "Je hebt geen %asset% in je AdCode, maar er is wel een bestand geselecteerd "
979
+ "om te gebruiken!"
980
 
981
  #: dashboard/publisher/adverts-edit.php:56
982
+ msgid "You did use %asset% in your AdCode but did not select a file to use!"
 
 
983
  msgstr ""
984
+ "U gebruikt %asset% in de AdCode, maar je hebt geen bestand geselecteerd om "
985
+ "te gebruiken!"
986
 
987
  #: dashboard/publisher/adverts-edit.php:59
988
+ #| msgid ""
989
+ #| "There is a problem saving the image. Please reset your image and re-save "
990
+ #| "the ad!"
991
  msgid ""
992
+ "There is a problem saving the image. Please re-set your image and re-save "
993
+ "the ad!"
994
  msgstr ""
995
+ "Er is een probleem met het opslaan van de afbeelding. Selecteer de "
996
+ "afbeelding en sla de advertentie opnieuw op!"
997
 
998
  #: dashboard/publisher/adverts-edit.php:62
999
  msgid "Tracking is enabled but no valid link/tag was found in the adcode!"
language/adrotate-pl_PL.mo CHANGED
Binary file
language/adrotate-pl_PL.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: AdRotate\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2020-07-08 16:40-0500\n"
6
- "PO-Revision-Date: 2020-07-08 16:40-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Michal Rudolf <michal@rudolf.waw.pl>\n"
9
  "Language: pl_PL\n"
@@ -15,7 +15,7 @@ msgstr ""
15
  "_nx_noop:4c,1,2\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
- "X-Generator: Poedit 2.3.1\n"
19
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
20
  "|| n%100>=20) ? 1 : 2);\n"
21
  "X-Language: pl_PL\n"
@@ -391,7 +391,7 @@ msgstr "forum"
391
  msgid "Help AdRotate Grow"
392
  msgstr "Aktualizuj AdRotate Pro"
393
 
394
- #: adrotate-output.php:838 adrotate.php:152
395
  msgid "AdRotate Professional"
396
  msgstr "AdRotate Professional"
397
 
@@ -572,30 +572,30 @@ msgstr "Informacje ogólne"
572
  msgid "Get AdRotate Pro"
573
  msgstr "Aktualizuj AdRotate Pro"
574
 
575
- #: adrotate.php:107
576
  msgid "Manage Adverts"
577
  msgstr "Zarządzaj reklamami"
578
 
579
- #: adrotate.php:108 dashboard/publisher/groups-main.php:12
580
  msgid "Manage Groups"
581
  msgstr "Zarządzaj grupami"
582
 
583
- #: adrotate.php:109 dashboard/publisher/schedules-main.php:12
584
  msgid "Manage Schedules"
585
  msgstr "Zarządzaj harmonogramami"
586
 
587
- #: adrotate.php:110 adrotate.php:400 adrotate.php:521
588
- #: dashboard/adrotatepro.php:98 dashboard/publisher/adverts-edit.php:177
 
 
 
 
589
  #: dashboard/publisher/statistics-main.php:23
590
  #: dashboard/settings/statistics.php:17
591
  msgid "Statistics"
592
  msgstr "Statystyka"
593
 
594
- #: adrotate.php:111
595
- msgid "Manage Media"
596
- msgstr "Zarządzaj mediami"
597
-
598
- #: adrotate.php:112 adrotate.php:484
599
  #, fuzzy
600
  #| msgid "Supports:"
601
  msgid "Support"
@@ -609,11 +609,11 @@ msgstr "Ustawienia"
609
  msgid "AdRotate Info"
610
  msgstr "Informacja AdRotate"
611
 
612
- #: adrotate.php:196
613
  #, fuzzy
614
- #| msgid "Advert Margin"
615
- msgid "Advert Management"
616
- msgstr "Margines reklamy"
617
 
618
  #: adrotate.php:256 adrotate.php:327
619
  msgid "Manage"
@@ -627,21 +627,13 @@ msgstr "Generator"
627
  msgid "Add New"
628
  msgstr "Dodaj nową"
629
 
630
- #: adrotate.php:321
631
  #, fuzzy
632
- #| msgid "Group deleted"
633
- msgid "Group Management"
634
- msgstr "Grupa usunięta"
635
-
636
- #: adrotate.php:358
637
- msgid "Schedules"
638
- msgstr "Harmonogramy"
639
-
640
- #: adrotate.php:444
641
- msgid "Media and Assets"
642
  msgstr "Media i reklamy"
643
 
644
- #: adrotate.php:448
645
  #, fuzzy
646
  #| msgid ""
647
  #| "Upload images and assets to the AdRotate Professional banners folder from "
@@ -653,6 +645,18 @@ msgstr ""
653
  "Prześlij obrazy i zasoby do folderu banerów AdRotate Professional. Jest to "
654
  "przydatne, jeśli masz reklamy HTML5 zawierające wiele plików."
655
 
 
 
 
 
 
 
 
 
 
 
 
 
656
  #: adrotate.php:514
657
  #, fuzzy
658
  #| msgid "AdRotate version"
@@ -1021,15 +1025,19 @@ msgid "The AdCode cannot be empty!"
1021
  msgstr "Kod reklamy nie może być pusty!"
1022
 
1023
  #: dashboard/publisher/adverts-edit.php:53
1024
- msgid ""
1025
- "You did not use %asset% (or %image%) in your AdCode but did select a file to "
1026
- "use!"
 
 
1027
  msgstr "Nie użyłeś %asset% (lub%image%) w kodzie reklamy, ale wybrałeś plik!"
1028
 
1029
  #: dashboard/publisher/adverts-edit.php:56
1030
- msgid ""
1031
- "You did use %asset% (or %image%) in your AdCode but did not select a file to "
1032
- "use!"
 
 
1033
  msgstr "Użyłeś %asset% (lub %image%) w kodzie reklamy, ale nie wybrałeś pliku!"
1034
 
1035
  #: dashboard/publisher/adverts-edit.php:59
@@ -1038,8 +1046,8 @@ msgstr "Użyłeś %asset% (lub %image%) w kodzie reklamy, ale nie wybrałeś pli
1038
  #| "There is a problem saving the asset. Please try again with the media "
1039
  #| "picker and re-save the advert!"
1040
  msgid ""
1041
- "There is a problem saving the image. Please reset your image and re-save the "
1042
- "ad!"
1043
  msgstr ""
1044
  "Powstał problem przy zapisywaniu obrazka. Ponownie wybierz obrazek i zapisz "
1045
  "reklamę!"
@@ -3613,6 +3621,19 @@ msgstr "Uzyskaj pomoc"
3613
  msgid "Premium Support is available in AdRotate Pro!"
3614
  msgstr ""
3615
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3616
  #, fuzzy
3617
  #~| msgid "AdRotate Info"
3618
  #~ msgid "AdRotate Pro"
@@ -3769,9 +3790,6 @@ msgstr ""
3769
  #~ "english name"
3770
  #~ msgstr "AdRotate nie sprawdza poprawności nazw, więc sprawdź pisownię!"
3771
 
3772
- #~ msgid "[AdRotate] CSV Report!"
3773
- #~ msgstr "Raport CSV Adrotate!"
3774
-
3775
  #~ msgid "Hello"
3776
  #~ msgstr "Witaj"
3777
 
2
  msgstr ""
3
  "Project-Id-Version: AdRotate\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-09-21 02:32-0500\n"
6
+ "PO-Revision-Date: 2020-09-21 02:32-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Michal Rudolf <michal@rudolf.waw.pl>\n"
9
  "Language: pl_PL\n"
15
  "_nx_noop:4c,1,2\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
+ "X-Generator: Poedit 2.4.1\n"
19
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
20
  "|| n%100>=20) ? 1 : 2);\n"
21
  "X-Language: pl_PL\n"
391
  msgid "Help AdRotate Grow"
392
  msgstr "Aktualizuj AdRotate Pro"
393
 
394
+ #: adrotate-output.php:838
395
  msgid "AdRotate Professional"
396
  msgstr "AdRotate Professional"
397
 
572
  msgid "Get AdRotate Pro"
573
  msgstr "Aktualizuj AdRotate Pro"
574
 
575
+ #: adrotate.php:107 adrotate.php:196
576
  msgid "Manage Adverts"
577
  msgstr "Zarządzaj reklamami"
578
 
579
+ #: adrotate.php:108 adrotate.php:321 dashboard/publisher/groups-main.php:12
580
  msgid "Manage Groups"
581
  msgstr "Zarządzaj grupami"
582
 
583
+ #: adrotate.php:109 adrotate.php:358 dashboard/publisher/schedules-main.php:12
584
  msgid "Manage Schedules"
585
  msgstr "Zarządzaj harmonogramami"
586
 
587
+ #: adrotate.php:110
588
+ msgid "Manage Media"
589
+ msgstr "Zarządzaj mediami"
590
+
591
+ #: adrotate.php:111 adrotate.php:521 dashboard/adrotatepro.php:98
592
+ #: dashboard/publisher/adverts-edit.php:177
593
  #: dashboard/publisher/statistics-main.php:23
594
  #: dashboard/settings/statistics.php:17
595
  msgid "Statistics"
596
  msgstr "Statystyka"
597
 
598
+ #: adrotate.php:112
 
 
 
 
599
  #, fuzzy
600
  #| msgid "Supports:"
601
  msgid "Support"
609
  msgid "AdRotate Info"
610
  msgstr "Informacja AdRotate"
611
 
612
+ #: adrotate.php:152
613
  #, fuzzy
614
+ #| msgid "AdRotate Professional"
615
+ msgid "Get AdRotate Professional"
616
+ msgstr "AdRotate Professional"
617
 
618
  #: adrotate.php:256 adrotate.php:327
619
  msgid "Manage"
627
  msgid "Add New"
628
  msgstr "Dodaj nową"
629
 
630
+ #: adrotate.php:395
631
  #, fuzzy
632
+ #| msgid "Media and Assets"
633
+ msgid "Manage Media and Assets"
 
 
 
 
 
 
 
 
634
  msgstr "Media i reklamy"
635
 
636
+ #: adrotate.php:399
637
  #, fuzzy
638
  #| msgid ""
639
  #| "Upload images and assets to the AdRotate Professional banners folder from "
645
  "Prześlij obrazy i zasoby do folderu banerów AdRotate Professional. Jest to "
646
  "przydatne, jeśli masz reklamy HTML5 zawierające wiele plików."
647
 
648
+ #: adrotate.php:441
649
+ #, fuzzy
650
+ #| msgid "Statistics"
651
+ msgid "Advert Statistics"
652
+ msgstr "Statystyka"
653
+
654
+ #: adrotate.php:484
655
+ #, fuzzy
656
+ #| msgid "[AdRotate] CSV Report!"
657
+ msgid "AdRotate Support"
658
+ msgstr "Raport CSV Adrotate!"
659
+
660
  #: adrotate.php:514
661
  #, fuzzy
662
  #| msgid "AdRotate version"
1025
  msgstr "Kod reklamy nie może być pusty!"
1026
 
1027
  #: dashboard/publisher/adverts-edit.php:53
1028
+ #, fuzzy
1029
+ #| msgid ""
1030
+ #| "You did not use %asset% (or %image%) in your AdCode but did select a file "
1031
+ #| "to use!"
1032
+ msgid "You did not use %asset% in your AdCode but did select a file to use!"
1033
  msgstr "Nie użyłeś %asset% (lub%image%) w kodzie reklamy, ale wybrałeś plik!"
1034
 
1035
  #: dashboard/publisher/adverts-edit.php:56
1036
+ #, fuzzy
1037
+ #| msgid ""
1038
+ #| "You did use %asset% (or %image%) in your AdCode but did not select a file "
1039
+ #| "to use!"
1040
+ msgid "You did use %asset% in your AdCode but did not select a file to use!"
1041
  msgstr "Użyłeś %asset% (lub %image%) w kodzie reklamy, ale nie wybrałeś pliku!"
1042
 
1043
  #: dashboard/publisher/adverts-edit.php:59
1046
  #| "There is a problem saving the asset. Please try again with the media "
1047
  #| "picker and re-save the advert!"
1048
  msgid ""
1049
+ "There is a problem saving the image. Please re-set your image and re-save "
1050
+ "the ad!"
1051
  msgstr ""
1052
  "Powstał problem przy zapisywaniu obrazka. Ponownie wybierz obrazek i zapisz "
1053
  "reklamę!"
3621
  msgid "Premium Support is available in AdRotate Pro!"
3622
  msgstr ""
3623
 
3624
+ #, fuzzy
3625
+ #~| msgid "Advert Margin"
3626
+ #~ msgid "Advert Management"
3627
+ #~ msgstr "Margines reklamy"
3628
+
3629
+ #, fuzzy
3630
+ #~| msgid "Group deleted"
3631
+ #~ msgid "Group Management"
3632
+ #~ msgstr "Grupa usunięta"
3633
+
3634
+ #~ msgid "Schedules"
3635
+ #~ msgstr "Harmonogramy"
3636
+
3637
  #, fuzzy
3638
  #~| msgid "AdRotate Info"
3639
  #~ msgid "AdRotate Pro"
3790
  #~ "english name"
3791
  #~ msgstr "AdRotate nie sprawdza poprawności nazw, więc sprawdź pisownię!"
3792
 
 
 
 
3793
  #~ msgid "Hello"
3794
  #~ msgstr "Witaj"
3795
 
language/adrotate.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: AdRotate\n"
5
- "POT-Creation-Date: 2020-09-07 15:36-0500\n"
6
  "PO-Revision-Date: 2019-09-20 12:05-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans\n"
@@ -800,15 +800,15 @@ msgid "The AdCode cannot be empty!"
800
  msgstr ""
801
 
802
  #: dashboard/publisher/adverts-edit.php:53
803
- msgid "You did not use %asset% (or %image%) in your AdCode but did select a file to use!"
804
  msgstr ""
805
 
806
  #: dashboard/publisher/adverts-edit.php:56
807
- msgid "You did use %asset% (or %image%) in your AdCode but did not select a file to use!"
808
  msgstr ""
809
 
810
  #: dashboard/publisher/adverts-edit.php:59
811
- msgid "There is a problem saving the image. Please reset your image and re-save the ad!"
812
  msgstr ""
813
 
814
  #: dashboard/publisher/adverts-edit.php:62
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: AdRotate\n"
5
+ "POT-Creation-Date: 2020-09-21 02:32-0500\n"
6
  "PO-Revision-Date: 2019-09-20 12:05-0500\n"
7
  "Last-Translator: Arnan de Gans <support@ajdg.solutions>\n"
8
  "Language-Team: Arnan de Gans\n"
800
  msgstr ""
801
 
802
  #: dashboard/publisher/adverts-edit.php:53
803
+ msgid "You did not use %asset% in your AdCode but did select a file to use!"
804
  msgstr ""
805
 
806
  #: dashboard/publisher/adverts-edit.php:56
807
+ msgid "You did use %asset% in your AdCode but did not select a file to use!"
808
  msgstr ""
809
 
810
  #: dashboard/publisher/adverts-edit.php:59
811
+ msgid "There is a problem saving the image. Please re-set your image and re-save the ad!"
812
  msgstr ""
813
 
814
  #: dashboard/publisher/adverts-edit.php:62
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: adverts, ads, banners, advert manager, ad manager, banner manager, monetis
5
  Requires at least: 4.6
6
  Requires PHP: 5.6
7
  Tested up to: 5.5
8
- Stable tag: 5.8.8
9
  License: GPLv3
10
 
11
  AdRotate is the only advert manager you'll ever need. Manage all your Google AdSense, Media.net, Amazon banners and more. Manage your ads.txt, widgets and many more powerful features to run successful campaigns.
@@ -64,6 +64,9 @@ For more detailed instructions check out the [installation steps](https://ajdg.s
64
 
65
  For the full changelog check out the [development page](https://ajdg.solutions/support/adrotate-development/?pk_campaign=adrotatefree&pk_keyword=readme).
66
 
 
 
 
67
  = AdRotate 5.8.8 =
68
  * [fix] Replaced adrotate_now() with current_time('timestamp')
69
 
@@ -122,10 +125,10 @@ If a dashboard notification misses it's layout or looks out of shape try clearin
122
  Some ad blockers block parts of the AdRotate dashboard, check out this page to make an exception for your website in adblockers - [Whitelist your site](https://ajdg.solutions/support/adrotate-manuals/configure-adblockers-for-your-own-website/?pk_campaign=adrotatefree&pk_keyword=readme).
123
 
124
  = Is AdRotate compatible with Yoast SEO or other SEO plugins? =
125
- Yes, Yoast SEO, All-in-One SEO pack and all other SEO plugins work fine with AdRotate.
126
 
127
  = Is Jetpack compatible with AdRotate? =
128
- Yes.
129
 
130
  = Does AdRotate work alongside caching plugins? =
131
  AdRotate works best with Borlabs Cache and W3 Total Cache.
5
  Requires at least: 4.6
6
  Requires PHP: 5.6
7
  Tested up to: 5.5
8
+ Stable tag: 5.8.9
9
  License: GPLv3
10
 
11
  AdRotate is the only advert manager you'll ever need. Manage all your Google AdSense, Media.net, Amazon banners and more. Manage your ads.txt, widgets and many more powerful features to run successful campaigns.
64
 
65
  For the full changelog check out the [development page](https://ajdg.solutions/support/adrotate-development/?pk_campaign=adrotatefree&pk_keyword=readme).
66
 
67
+ = AdRotate 5.8.9 =
68
+ * [tweak] Reworded advert error notifications
69
+
70
  = AdRotate 5.8.8 =
71
  * [fix] Replaced adrotate_now() with current_time('timestamp')
72
 
125
  Some ad blockers block parts of the AdRotate dashboard, check out this page to make an exception for your website in adblockers - [Whitelist your site](https://ajdg.solutions/support/adrotate-manuals/configure-adblockers-for-your-own-website/?pk_campaign=adrotatefree&pk_keyword=readme).
126
 
127
  = Is AdRotate compatible with Yoast SEO or other SEO plugins? =
128
+ Yes, Yoast SEO, All-in-One SEO pack and all other SEO plugins work fine with AdRotate.
129
 
130
  = Is Jetpack compatible with AdRotate? =
131
+ Yes.
132
 
133
  = Does AdRotate work alongside caching plugins? =
134
  AdRotate works best with Borlabs Cache and W3 Total Cache.