WP Statistics - Version 9.6.2

Version Description

This is a security release, please upgrade immediately. Have you updated your database indexes and search table? If not please go to Statistics->Optimization->Database after you have installed the update and run the updates.

Download this release

Release Info

Developer GregRoss
Plugin Icon 128x128 WP Statistics
Version 9.6.2
Comparing to
See all releases

Code changes from version 9.6.1 to 9.6.2

ajax.php CHANGED
@@ -102,12 +102,16 @@ function wp_statistics_empty_table_action_callback() {
102
  case 'pages':
103
  echo wp_statitiscs_empty_table($wpdb->prefix . 'statistics_pages');
104
  break;
 
 
 
105
  case 'all':
106
  $result_string = wp_statitiscs_empty_table($wpdb->prefix . 'statistics_useronline');
107
  $result_string .= '<br>' . wp_statitiscs_empty_table($wpdb->prefix . 'statistics_visit');
108
  $result_string .= '<br>' . wp_statitiscs_empty_table($wpdb->prefix . 'statistics_visitor');
109
  $result_string .= '<br>' . wp_statitiscs_empty_table($wpdb->prefix . 'statistics_exclusions');
110
  $result_string .= '<br>' . wp_statitiscs_empty_table($wpdb->prefix . 'statistics_pages');
 
111
 
112
  echo $result_string;
113
 
102
  case 'pages':
103
  echo wp_statitiscs_empty_table($wpdb->prefix . 'statistics_pages');
104
  break;
105
+ case 'search':
106
+ echo wp_statitiscs_empty_table($wpdb->prefix . 'statistics_search');
107
+ break;
108
  case 'all':
109
  $result_string = wp_statitiscs_empty_table($wpdb->prefix . 'statistics_useronline');
110
  $result_string .= '<br>' . wp_statitiscs_empty_table($wpdb->prefix . 'statistics_visit');
111
  $result_string .= '<br>' . wp_statitiscs_empty_table($wpdb->prefix . 'statistics_visitor');
112
  $result_string .= '<br>' . wp_statitiscs_empty_table($wpdb->prefix . 'statistics_exclusions');
113
  $result_string .= '<br>' . wp_statitiscs_empty_table($wpdb->prefix . 'statistics_pages');
114
+ $result_string .= '<br>' . wp_statitiscs_empty_table($wpdb->prefix . 'statistics_search');
115
 
116
  echo $result_string;
117
 
includes/classes/hits.class.php CHANGED
@@ -488,7 +488,8 @@
488
  $page_uri = substr( $page_uri, 0, 255);
489
 
490
  // If we have already been to this page today (a likely scenario), just update the count on the record.
491
- $this->result = $this->db->query("UPDATE {$this->tb_prefix}statistics_pages SET `count` = `count` + 1 WHERE `date` = '{$this->Current_Date('Y-m-d')}' AND `uri` = '{$page_uri}'");
 
492
 
493
  // If the update failed (aka the record doesn't exist), insert a new one. Note this may drop a page hit if a race condition
494
  // exists where two people load the same page a the roughly the same time. In that case two inserts would be attempted but
488
  $page_uri = substr( $page_uri, 0, 255);
489
 
490
  // If we have already been to this page today (a likely scenario), just update the count on the record.
491
+ $sql = $this->db->prepare( "UPDATE {$this->tb_prefix}statistics_pages SET `count` = `count` + 1 WHERE `date` = '{$this->Current_Date('Y-m-d')}' AND `uri` = %s", $page_uri );
492
+ $this->result = $this->db->query($sql);
493
 
494
  // If the update failed (aka the record doesn't exist), insert a new one. Note this may drop a page hit if a race condition
495
  // exists where two people load the same page a the roughly the same time. In that case two inserts would be attempted but
includes/functions/functions.php CHANGED
@@ -220,7 +220,7 @@
220
  global $wpdb;
221
 
222
  // Create the SQL query to use.
223
- $sqlstatement = "SELECT id FROM {$wpdb->prefix}statistics_pages WHERE `URI` = '{$uri}' AND id > 0";
224
 
225
  // Execute the query.
226
  $result = $wpdb->get_var( $sqlstatement );
220
  global $wpdb;
221
 
222
  // Create the SQL query to use.
223
+ $sqlstatement = $wpdb->prepare( "SELECT id FROM {$wpdb->prefix}statistics_pages WHERE `URI` = %s AND id > 0", $uri );
224
 
225
  // Execute the query.
226
  $result = $wpdb->get_var( $sqlstatement );
includes/log/top-referring.php CHANGED
@@ -19,41 +19,27 @@
19
  $get_urls = array();
20
  $total = 0;
21
 
22
- if( $WP_Statistics->get_option('search_converted') ) {
23
- if( $referr ) {
24
- $total = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM `{$wpdb->prefix}statistics_search` WHERE `host` = %s", $referr ));
25
- } else {
26
- $result = $wpdb->get_results( "SELECT DISTINCT host FROM {$wpdb->prefix}statistics_search" );
27
-
28
- foreach( $result as $item ) {
29
- $get_urls[$item->host] = $wpdb->get_var( "SELECT count(*) FROM {$wpdb->prefix}statistics_search WHERE host = '{$item->host}'" );
30
- }
31
-
32
- $total = count( $get_urls );
33
- }
34
  } else {
35
- if( $referr ) {
36
- $result = $wpdb->get_results($wpdb->prepare("SELECT * FROM `{$wpdb->prefix}statistics_visitor` WHERE `referred` LIKE %s' AND referred <> '' ORDER BY `{$wpdb->prefix}statistics_visitor`.`ID` DESC", '%' . $referr . '%' ) );
37
-
38
- $total = count( $result );
39
- } else {
40
- $result = $wpdb->get_results( "SELECT referred FROM {$wpdb->prefix}statistics_visitor WHERE referred <> ''" );
41
-
42
- $urls = array();
43
- foreach( $result as $item ) {
44
 
45
- $url = parse_url($item->referred);
 
46
 
47
- if( empty($url['host']) || stristr(get_bloginfo('url'), $url['host']) )
48
- continue;
49
-
50
- $urls[] = $url['host'];
51
- }
52
-
53
- $get_urls = array_count_values($urls);
54
-
55
- $total = count( $get_urls );
56
  }
 
 
 
 
57
  }
58
 
59
  ?>
19
  $get_urls = array();
20
  $total = 0;
21
 
22
+ if( $referr ) {
23
+ $result = $wpdb->get_results($wpdb->prepare("SELECT * FROM `{$wpdb->prefix}statistics_visitor` WHERE `referred` LIKE %s' AND referred <> '' ORDER BY `{$wpdb->prefix}statistics_visitor`.`ID` DESC", '%' . $referr . '%' ) );
24
+
25
+ $total = count( $result );
 
 
 
 
 
 
 
 
26
  } else {
27
+ $result = $wpdb->get_results( "SELECT referred FROM {$wpdb->prefix}statistics_visitor WHERE referred <> ''" );
28
+
29
+ $urls = array();
30
+ foreach( $result as $item ) {
31
+
32
+ $url = parse_url($item->referred);
 
 
 
33
 
34
+ if( empty($url['host']) || stristr(get_bloginfo('url'), $url['host']) )
35
+ continue;
36
 
37
+ $urls[] = $url['host'];
 
 
 
 
 
 
 
 
38
  }
39
+
40
+ $get_urls = array_count_values($urls);
41
+
42
+ $total = count( $get_urls );
43
  }
44
 
45
  ?>
includes/log/widgets/referring.php CHANGED
@@ -26,29 +26,20 @@
26
 
27
  $get_urls = array();
28
 
29
- if( $WP_Statistics->get_option('search_converted') ) {
30
- $result = $wpdb->get_results( "SELECT DISTINCT host FROM {$wpdb->prefix}statistics_search" );
31
-
32
- foreach( $result as $item ) {
33
- $get_urls[$item->host] = $wpdb->get_var( "SELECT count(*) FROM {$wpdb->prefix}statistics_search WHERE host = '{$item->host}'" );
34
- }
35
-
36
- } else {
37
- $result = $wpdb->get_results( "SELECT referred FROM {$wpdb->prefix}statistics_visitor WHERE referred <> ''" );
38
-
39
- $urls = array();
40
- foreach( $result as $item ) {
41
 
42
- $url = parse_url($item->referred);
 
43
 
44
- if( empty($url['host']) || stristr(get_bloginfo('url'), $url['host']) )
45
- continue;
46
-
47
- $urls[] = $url['host'];
48
- }
49
-
50
- $get_urls = array_count_values($urls);
51
  }
 
 
52
 
53
  arsort( $get_urls );
54
  $get_urls = array_slice($get_urls, 0, $count);
26
 
27
  $get_urls = array();
28
 
29
+ $result = $wpdb->get_results( "SELECT referred FROM {$wpdb->prefix}statistics_visitor WHERE referred <> ''" );
30
+
31
+ $urls = array();
32
+ foreach( $result as $item ) {
33
+
34
+ $url = parse_url($item->referred);
 
 
 
 
 
 
35
 
36
+ if( empty($url['host']) || stristr(get_bloginfo('url'), $url['host']) )
37
+ continue;
38
 
39
+ $urls[] = $url['host'];
 
 
 
 
 
 
40
  }
41
+
42
+ $get_urls = array_count_values($urls);
43
 
44
  arsort( $get_urls );
45
  $get_urls = array_slice($get_urls, 0, $count);
includes/optimization/tabs/wps-optimization-purging.php CHANGED
@@ -188,6 +188,7 @@
188
  <option value="visitor"><?php echo $wpdb->prefix . 'statistics_visitor'; ?></option>
189
  <option value="exclusions"><?php echo $wpdb->prefix . 'statistics_exclusions'; ?></option>
190
  <option value="pages"><?php echo $wpdb->prefix . 'statistics_pages'; ?></option>
 
191
  <option value="all"><?php echo __('All','wp_statistics'); ?></option>
192
  </select>
193
  <p class="description"><?php _e('All data table will be lost.', 'wp_statistics'); ?></p>
188
  <option value="visitor"><?php echo $wpdb->prefix . 'statistics_visitor'; ?></option>
189
  <option value="exclusions"><?php echo $wpdb->prefix . 'statistics_exclusions'; ?></option>
190
  <option value="pages"><?php echo $wpdb->prefix . 'statistics_pages'; ?></option>
191
+ <option value="search"><?php echo $wpdb->prefix . 'statistics_search'; ?></option>
192
  <option value="all"><?php echo __('All','wp_statistics'); ?></option>
193
  </select>
194
  <p class="description"><?php _e('All data table will be lost.', 'wp_statistics'); ?></p>
includes/optimization/tabs/wps-optimization-resources.php CHANGED
@@ -116,6 +116,17 @@
116
  </td>
117
  </tr>
118
 
 
 
 
 
 
 
 
 
 
 
 
119
  <tr valign="top">
120
  <th scope="row" colspan="2"><h3><?php _e('Version Info', 'wp_statistics'); ?></h3></th>
121
  </tr>
116
  </td>
117
  </tr>
118
 
119
+ <tr valign="top">
120
+ <th scope="row">
121
+ <?php echo sprintf(__('Number of rows in the %s table', 'wp_statistics'), '<code>' . $wpdb->prefix . 'statistics_' . 'search' . '</code>'); ?>:
122
+ </th>
123
+
124
+ <td>
125
+ <strong><?php echo number_format_i18n($result['search']); ?></strong> <?php _e('Row', 'wp_statistics'); ?>
126
+ <p class="description"><?php _e('Number of rows', 'wp_statistics'); ?></p>
127
+ </td>
128
+ </tr>
129
+
130
  <tr valign="top">
131
  <th scope="row" colspan="2"><h3><?php _e('Version Info', 'wp_statistics'); ?></h3></th>
132
  </tr>
includes/settings/tabs/wps-maintenance.php CHANGED
@@ -27,24 +27,24 @@ if( $wps_nonce_valid ) {
27
  <table class="form-table">
28
  <tbody>
29
  <tr valign="top">
30
- <th scope="row" colspan="2"><h3><?php _e('Database Maintenance', 'wp_statistics'); ?></h3></th>
31
  </tr>
32
 
33
  <tr valign="top">
34
  <th scope="row">
35
- <label for="wps_schedule_dbmaint"><?php _e('Run a daily WP Cron job to prune the databases', 'wp_statistics'); ?>:</label>
36
  </th>
37
 
38
  <td>
39
  <input id="wps_schedule_dbmaint" type="checkbox" name="wps_schedule_dbmaint" <?php echo $WP_Statistics->get_option('schedule_dbmaint')==true? "checked='checked'":'';?> onclick='DBMaintWarning();'>
40
  <label for="wps_schedule_dbmaint"><?php _e('Active', 'wp_statistics'); ?></label>
41
- <p class="description"><?php _e('A WP Cron job will be run daily to prune any data older than a set number of days.', 'wp_statistics'); ?></p>
42
  </td>
43
  </tr>
44
 
45
  <tr valign="top">
46
  <th scope="row">
47
- <label for="wps_schedule_dbmaint_days"><?php _e('Prune data older than', 'wp_statistics'); ?>:</label>
48
  </th>
49
 
50
  <td>
@@ -54,27 +54,31 @@ if( $wps_nonce_valid ) {
54
  </td>
55
  </tr>
56
 
 
 
 
 
57
  <tr valign="top">
58
  <th scope="row">
59
- <label for="wps_schedule_dbmaint_visitor"><?php _e('Run a daily WP Cron job to prune the databases', 'wp_statistics'); ?>:</label>
60
  </th>
61
 
62
  <td>
63
  <input id="wps_schedule_dbmaint_visitor" type="checkbox" name="wps_schedule_dbmaint_visitor" <?php echo $WP_Statistics->get_option('schedule_dbmaint_visitor')==true? "checked='checked'":'';?> onclick='DBMaintWarning();'>
64
  <label for="wps_schedule_dbmaint_visitor"><?php _e('Active', 'wp_statistics'); ?></label>
65
- <p class="description"><?php _e('A WP Cron job will be run daily to prune any users statistics data where the user has more than the defined number of hits in a day (aka they are probably a bot).', 'wp_statistics'); ?></p>
66
  </td>
67
  </tr>
68
 
69
  <tr valign="top">
70
  <th scope="row">
71
- <label for="wps_schedule_dbmaint_visitor_hits"><?php _e('Prune visitors with more than', 'wp_statistics'); ?>:</label>
72
  </th>
73
 
74
  <td>
75
  <input type="text" class="small-text code" id="wps_schedule_dbmaint_visitor_hits" name="wps_schedule_dbmaint_visitor_hits" value="<?php echo htmlentities( $WP_Statistics->get_option('schedule_dbmaint_visitor_hits', '50'), ENT_QUOTES ); ?>"/>
76
  <?php _e('Hits', 'wp_statistics'); ?>
77
- <p class="description"><?php echo __('The number of hits required to delete the visitor. Invalid values will disable the daily maintenance (must be 10 or greater).', 'wp_statistics'); ?></p>
78
  </td>
79
  </tr>
80
 
27
  <table class="form-table">
28
  <tbody>
29
  <tr valign="top">
30
+ <th scope="row" colspan="2"><h3><?php _e('Purge Old Data Daily', 'wp_statistics'); ?></h3></th>
31
  </tr>
32
 
33
  <tr valign="top">
34
  <th scope="row">
35
+ <label for="wps_schedule_dbmaint"><?php _e('Enabled', 'wp_statistics'); ?>:</label>
36
  </th>
37
 
38
  <td>
39
  <input id="wps_schedule_dbmaint" type="checkbox" name="wps_schedule_dbmaint" <?php echo $WP_Statistics->get_option('schedule_dbmaint')==true? "checked='checked'":'';?> onclick='DBMaintWarning();'>
40
  <label for="wps_schedule_dbmaint"><?php _e('Active', 'wp_statistics'); ?></label>
41
+ <p class="description"><?php _e('A WP Cron job will be run daily to purge any data older than a set number of days.', 'wp_statistics'); ?></p>
42
  </td>
43
  </tr>
44
 
45
  <tr valign="top">
46
  <th scope="row">
47
+ <label for="wps_schedule_dbmaint_days"><?php _e('Purge data older than', 'wp_statistics'); ?>:</label>
48
  </th>
49
 
50
  <td>
54
  </td>
55
  </tr>
56
 
57
+ <tr valign="top">
58
+ <th scope="row" colspan="2"><h3><?php _e('Purge High Hit Count Visitors Daily', 'wp_statistics'); ?></h3></th>
59
+ </tr>
60
+
61
  <tr valign="top">
62
  <th scope="row">
63
+ <label for="wps_schedule_dbmaint_visitor"><?php _e('Enabled', 'wp_statistics'); ?>:</label>
64
  </th>
65
 
66
  <td>
67
  <input id="wps_schedule_dbmaint_visitor" type="checkbox" name="wps_schedule_dbmaint_visitor" <?php echo $WP_Statistics->get_option('schedule_dbmaint_visitor')==true? "checked='checked'":'';?> onclick='DBMaintWarning();'>
68
  <label for="wps_schedule_dbmaint_visitor"><?php _e('Active', 'wp_statistics'); ?></label>
69
+ <p class="description"><?php _e('A WP Cron job will be run daily to purge any users statistics data where the user has more than the defined number of hits in a day (aka they are probably a bot).', 'wp_statistics'); ?></p>
70
  </td>
71
  </tr>
72
 
73
  <tr valign="top">
74
  <th scope="row">
75
+ <label for="wps_schedule_dbmaint_visitor_hits"><?php _e('Purge visitors with more than', 'wp_statistics'); ?>:</label>
76
  </th>
77
 
78
  <td>
79
  <input type="text" class="small-text code" id="wps_schedule_dbmaint_visitor_hits" name="wps_schedule_dbmaint_visitor_hits" value="<?php echo htmlentities( $WP_Statistics->get_option('schedule_dbmaint_visitor_hits', '50'), ENT_QUOTES ); ?>"/>
80
  <?php _e('Hits', 'wp_statistics'); ?>
81
+ <p class="description"><?php echo __('The number of hits required to delete the visitor. Minimum value is 10 hits. Invalid values will disable the daily maintenance.', 'wp_statistics'); ?></p>
82
  </td>
83
  </tr>
84
 
languages/default.mo CHANGED
Binary file
languages/default.po CHANGED
@@ -2,13 +2,13 @@
2
  # This file is distributed under the same license as the WP Statistics package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WP Statistics 9.5.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-statistics\n"
7
- "POT-Creation-Date: 2015-08-28 13:02:14+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2015-08-28 09:13-0400\n"
12
  "Last-Translator: \n"
13
  "Language-Team: \n"
14
  "X-Generator: Poedit 1.8.4\n"
@@ -21,11 +21,11 @@ msgstr ""
21
  msgid "No agent data found to remove!"
22
  msgstr ""
23
 
24
- #: ajax.php:38 ajax.php:68 ajax.php:116 ajax.php:122
25
  msgid "Please select the desired items."
26
  msgstr ""
27
 
28
- #: ajax.php:41 ajax.php:71 ajax.php:125 ajax.php:150 ajax.php:180
29
  #: includes/optimization/wps-optimization.php:6
30
  msgid "Access denied!"
31
  msgstr ""
@@ -38,7 +38,7 @@ msgstr ""
38
  msgid "No platform data found to remove!"
39
  msgstr ""
40
 
41
- #: ajax.php:174 includes/functions/purge-hits.php:32
42
  msgid "Number of hits must be greater than or equal to 10!"
43
  msgstr ""
44
 
@@ -74,8 +74,8 @@ msgstr ""
74
  msgid "Recent Visitors"
75
  msgstr ""
76
 
77
- #: dashboard.php:62 includes/log/top-referring.php:62
78
- #: includes/log/top-referring.php:79 includes/log/widgets/referring.php:11
79
  #: includes/settings/tabs/wps-overview-display.php:26
80
  msgid "Top Referring Sites"
81
  msgstr ""
@@ -254,7 +254,7 @@ msgstr ""
254
  #: includes/log/last-visitor.php:67 includes/log/online.php:17
255
  #: includes/log/page-statistics.php:34 includes/log/search-statistics.php:27
256
  #: includes/log/top-pages.php:28 includes/log/top-pages.php:148
257
- #: includes/log/top-referring.php:75 includes/log/widgets/about.php:7
258
  #: includes/log/widgets/browsers.php:9 includes/log/widgets/countries.php:9
259
  #: includes/log/widgets/google.map.php:8 includes/log/widgets/hits.php:9
260
  #: includes/log/widgets/jqv.map.php:8 includes/log/widgets/pages.php:12
@@ -275,7 +275,7 @@ msgid "Browsers by type"
275
  msgstr ""
276
 
277
  #: includes/log/all-browsers.php:99 includes/log/widgets/top.visitors.php:37
278
- #: includes/optimization/tabs/wps-optimization-resources.php:302
279
  msgid "Platform"
280
  msgstr ""
281
 
@@ -376,7 +376,7 @@ msgstr ""
376
  #: includes/log/exclusions.php:95 includes/log/hit-statistics.php:65
377
  #: includes/log/search-statistics.php:69 includes/log/widgets/hits.php:61
378
  #: includes/log/widgets/search.php:59
379
- #: includes/optimization/tabs/wps-optimization-purging.php:207
380
  msgid "days"
381
  msgstr ""
382
 
@@ -425,8 +425,8 @@ msgid "Visitor"
425
  msgstr ""
426
 
427
  #: includes/log/last-search.php:47 includes/log/last-visitor.php:38
428
- #: includes/log/top-referring.php:65 includes/log/top-referring.php:68
429
- #: includes/optimization/tabs/wps-optimization-purging.php:191 widget.php:296
430
  msgid "All"
431
  msgstr ""
432
 
@@ -442,7 +442,7 @@ msgid "#hash#"
442
  msgstr ""
443
 
444
  #: includes/log/last-search.php:115 includes/log/last-visitor.php:106
445
- #: includes/log/online.php:55 includes/log/top-referring.php:110
446
  #: includes/log/widgets/recent.php:38 includes/log/widgets/words.php:61
447
  #: includes/settings/tabs/wps-overview-display.php:33
448
  #: includes/settings/tabs/wps-overview-display.php:113
@@ -451,13 +451,13 @@ msgstr ""
451
 
452
  #: includes/log/last-search.php:159 includes/log/last-visitor.php:139
453
  #: includes/log/online.php:109 includes/log/top-pages.php:198
454
- #: includes/log/top-referring.php:151
455
  msgid "Page"
456
  msgstr ""
457
 
458
  #: includes/log/last-search.php:159 includes/log/last-visitor.php:139
459
  #: includes/log/online.php:109 includes/log/top-pages.php:198
460
- #: includes/log/top-referring.php:151
461
  msgid "From"
462
  msgstr ""
463
 
@@ -587,11 +587,11 @@ msgstr ""
587
  msgid "To be added soon"
588
  msgstr ""
589
 
590
- #: includes/log/top-referring.php:77
591
  msgid "Referring sites from"
592
  msgstr ""
593
 
594
- #: includes/log/top-referring.php:135 includes/log/widgets/referring.php:59
595
  msgid "References"
596
  msgstr ""
597
 
@@ -644,7 +644,7 @@ msgstr ""
644
  msgid "Page Trending Stats"
645
  msgstr ""
646
 
647
- #: includes/log/widgets/referring.php:60
648
  msgid "Address"
649
  msgstr ""
650
 
@@ -693,7 +693,7 @@ msgid "Time: %s"
693
  msgstr ""
694
 
695
  #: includes/log/widgets/top.visitors.php:31
696
- #: includes/settings/tabs/wps-maintenance.php:76 wp-statistics.php:301
697
  #: wp-statistics.php:379 wp-statistics.php:455
698
  msgid "Hits"
699
  msgstr ""
@@ -707,7 +707,7 @@ msgid "Agent"
707
  msgstr ""
708
 
709
  #: includes/log/widgets/top.visitors.php:38
710
- #: includes/optimization/tabs/wps-optimization-resources.php:291
711
  msgid "Version"
712
  msgstr ""
713
 
@@ -740,14 +740,14 @@ msgstr ""
740
  msgid "Countries"
741
  msgstr ""
742
 
743
- #: includes/optimization/tabs/wps-optimization-database.php:39
744
- #: includes/optimization/tabs/wps-optimization-database.php:69
745
  #: includes/optimization/tabs/wps-optimization-updates.php:25
746
  #: includes/optimization/tabs/wps-optimization-updates.php:40
747
  msgid "Update Now!"
748
  msgstr ""
749
 
750
- #: includes/optimization/tabs/wps-optimization-database.php:40
751
  msgid ""
752
  "Older installs of WP Statistics allow for duplicate entries in the visitors "
753
  "table in a corner case. Newer installs protect against this with a unique "
@@ -756,32 +756,32 @@ msgid ""
756
  "vistitors table, delete duplicate entries and add the index."
757
  msgstr ""
758
 
759
- #: includes/optimization/tabs/wps-optimization-database.php:41
760
- #: includes/optimization/tabs/wps-optimization-database.php:102
761
  msgid ""
762
  "This operation could take a long time on installs with many rows in the "
763
  "visitors table."
764
  msgstr ""
765
 
766
- #: includes/optimization/tabs/wps-optimization-database.php:46
767
  msgid ""
768
  "Older installs of WP Statistics allow for duplicate entries in the visitors "
769
  "table in a corner case. Newer installs protect against this with a unique "
770
  "index on the table."
771
  msgstr ""
772
 
773
- #: includes/optimization/tabs/wps-optimization-database.php:47
774
- #: includes/optimization/tabs/wps-optimization-database.php:77
775
- #: includes/optimization/tabs/wps-optimization-database.php:108
776
  msgid ""
777
  "Congratulations, your installation is already up to date, nothing to do."
778
  msgstr ""
779
 
780
- #: includes/optimization/tabs/wps-optimization-database.php:56
781
  msgid "Visits Table"
782
  msgstr ""
783
 
784
- #: includes/optimization/tabs/wps-optimization-database.php:70
785
  msgid ""
786
  "Older installs of WP Statistics allow for duplicate entries in the visits "
787
  "table in a corner case. Newer installs protect against this with a unique "
@@ -790,32 +790,32 @@ msgid ""
790
  "vistits table, delete duplicate entries and add the index."
791
  msgstr ""
792
 
793
- #: includes/optimization/tabs/wps-optimization-database.php:71
794
  msgid ""
795
  "This operation could take a long time on installs with many rows in the "
796
  "visits table."
797
  msgstr ""
798
 
799
- #: includes/optimization/tabs/wps-optimization-database.php:76
800
  msgid ""
801
  "Older installs of WP Statistics allow for duplicate entries in the visits "
802
  "table in a corner case. Newer installs protect against this with a unique "
803
  "index on the table."
804
  msgstr ""
805
 
806
- #: includes/optimization/tabs/wps-optimization-database.php:86
807
  msgid "Search Table"
808
  msgstr ""
809
 
810
- #: includes/optimization/tabs/wps-optimization-database.php:91
811
  msgid "Convert"
812
  msgstr ""
813
 
814
- #: includes/optimization/tabs/wps-optimization-database.php:100
815
  msgid "Convert Now!"
816
  msgstr ""
817
 
818
- #: includes/optimization/tabs/wps-optimization-database.php:101
819
  msgid ""
820
  "Older installs of WP Statistics store details of searches in the visitors "
821
  "table which can become a performance issue on large datasets. A new table "
@@ -824,7 +824,7 @@ msgid ""
824
  "be used."
825
  msgstr ""
826
 
827
- #: includes/optimization/tabs/wps-optimization-database.php:107
828
  msgid ""
829
  "Older installs of WP Statistics store details of searches in the visitors "
830
  "table which can become a performance issue on large datasets. A new table "
@@ -843,8 +843,8 @@ msgstr ""
843
  #: includes/optimization/tabs/wps-optimization-export.php:18
844
  #: includes/optimization/tabs/wps-optimization-export.php:37
845
  #: includes/optimization/tabs/wps-optimization-purging.php:185
846
- #: includes/optimization/tabs/wps-optimization-purging.php:241
847
- #: includes/optimization/tabs/wps-optimization-purging.php:265
848
  #: includes/settings/tabs/wps-notifications.php:134
849
  #: includes/settings/tabs/wps-notifications.php:164
850
  msgid "Please select"
@@ -921,38 +921,39 @@ msgstr ""
921
  msgid "Empty Table"
922
  msgstr ""
923
 
924
- #: includes/optimization/tabs/wps-optimization-purging.php:193
925
  msgid "All data table will be lost."
926
  msgstr ""
927
 
928
- #: includes/optimization/tabs/wps-optimization-purging.php:194
929
  msgid "Clear now!"
930
  msgstr ""
931
 
932
- #: includes/optimization/tabs/wps-optimization-purging.php:202
933
  msgid "Purge records older than"
934
  msgstr ""
935
 
936
- #: includes/optimization/tabs/wps-optimization-purging.php:208
937
  msgid ""
938
  "Deleted user statistics data older than the selected number of days. "
939
  "Minimum value is 30 days."
940
  msgstr ""
941
 
942
- #: includes/optimization/tabs/wps-optimization-purging.php:209
943
- #: includes/optimization/tabs/wps-optimization-purging.php:224
944
  msgid "Purge now!"
945
  msgstr ""
946
 
947
- #: includes/optimization/tabs/wps-optimization-purging.php:217
 
948
  msgid "Purge visitors with more than"
949
  msgstr ""
950
 
951
- #: includes/optimization/tabs/wps-optimization-purging.php:222
952
  msgid "hits"
953
  msgstr ""
954
 
955
- #: includes/optimization/tabs/wps-optimization-purging.php:223
956
  msgid ""
957
  "Deleted user statistics data where the user has more than the defined number "
958
  "of hits in a day. This can be useful to clear up old data when your site "
@@ -961,28 +962,28 @@ msgid ""
961
  "recorded on a per use basis. Minimum value is 10 hits."
962
  msgstr ""
963
 
964
- #: includes/optimization/tabs/wps-optimization-purging.php:231
965
  msgid "Delete User Agent Types"
966
  msgstr ""
967
 
968
- #: includes/optimization/tabs/wps-optimization-purging.php:236
969
  msgid "Delete Agents"
970
  msgstr ""
971
 
972
- #: includes/optimization/tabs/wps-optimization-purging.php:251
973
  msgid "All visitor data will be lost for this agent type."
974
  msgstr ""
975
 
976
- #: includes/optimization/tabs/wps-optimization-purging.php:252
977
- #: includes/optimization/tabs/wps-optimization-purging.php:276
978
  msgid "Delete now!"
979
  msgstr ""
980
 
981
- #: includes/optimization/tabs/wps-optimization-purging.php:260
982
  msgid "Delete Platforms"
983
  msgstr ""
984
 
985
- #: includes/optimization/tabs/wps-optimization-purging.php:275
986
  msgid "All visitor data will be lost for this platform type."
987
  msgstr ""
988
 
@@ -1022,6 +1023,7 @@ msgstr ""
1022
  #: includes/optimization/tabs/wps-optimization-resources.php:88
1023
  #: includes/optimization/tabs/wps-optimization-resources.php:99
1024
  #: includes/optimization/tabs/wps-optimization-resources.php:110
 
1025
  msgid "Number of rows in the %s table"
1026
  msgstr ""
1027
 
@@ -1031,6 +1033,7 @@ msgstr ""
1031
  #: includes/optimization/tabs/wps-optimization-resources.php:92
1032
  #: includes/optimization/tabs/wps-optimization-resources.php:103
1033
  #: includes/optimization/tabs/wps-optimization-resources.php:114
 
1034
  msgid "Row"
1035
  msgstr ""
1036
 
@@ -1040,156 +1043,157 @@ msgstr ""
1040
  #: includes/optimization/tabs/wps-optimization-resources.php:93
1041
  #: includes/optimization/tabs/wps-optimization-resources.php:104
1042
  #: includes/optimization/tabs/wps-optimization-resources.php:115
 
1043
  msgid "Number of rows"
1044
  msgstr ""
1045
 
1046
- #: includes/optimization/tabs/wps-optimization-resources.php:120
1047
  msgid "Version Info"
1048
  msgstr ""
1049
 
1050
- #: includes/optimization/tabs/wps-optimization-resources.php:125
1051
  msgid "WP Statistics Version"
1052
  msgstr ""
1053
 
1054
- #: includes/optimization/tabs/wps-optimization-resources.php:130
1055
  msgid "The WP Statistics version you are running."
1056
  msgstr ""
1057
 
1058
- #: includes/optimization/tabs/wps-optimization-resources.php:136
1059
  msgid "PHP Version"
1060
  msgstr ""
1061
 
1062
- #: includes/optimization/tabs/wps-optimization-resources.php:141
1063
  msgid "The PHP version you are running."
1064
  msgstr ""
1065
 
1066
- #: includes/optimization/tabs/wps-optimization-resources.php:147
1067
  msgid "PHP Safe Mode"
1068
  msgstr ""
1069
 
1070
- #: includes/optimization/tabs/wps-optimization-resources.php:152
1071
  msgid "Is PHP Safe Mode active. The GeoIP code is not supported in Safe Mode."
1072
  msgstr ""
1073
 
1074
- #: includes/optimization/tabs/wps-optimization-resources.php:158
1075
  msgid "jQuery Version"
1076
  msgstr ""
1077
 
1078
- #: includes/optimization/tabs/wps-optimization-resources.php:163
1079
  msgid "The jQuery version you are running."
1080
  msgstr ""
1081
 
1082
- #: includes/optimization/tabs/wps-optimization-resources.php:169
1083
  msgid "cURL Version"
1084
  msgstr ""
1085
 
1086
- #: includes/optimization/tabs/wps-optimization-resources.php:173
1087
  msgid "cURL not installed"
1088
  msgstr ""
1089
 
1090
- #: includes/optimization/tabs/wps-optimization-resources.php:174
1091
  msgid ""
1092
  "The PHP cURL Extension version you are running. cURL is required for the "
1093
  "GeoIP code, if it is not installed GeoIP will be disabled."
1094
  msgstr ""
1095
 
1096
- #: includes/optimization/tabs/wps-optimization-resources.php:180
1097
  msgid "BC Math"
1098
  msgstr ""
1099
 
1100
- #: includes/optimization/tabs/wps-optimization-resources.php:184
1101
  msgid "Installed"
1102
  msgstr ""
1103
 
1104
- #: includes/optimization/tabs/wps-optimization-resources.php:184
1105
  msgid "Not installed"
1106
  msgstr ""
1107
 
1108
- #: includes/optimization/tabs/wps-optimization-resources.php:185
1109
  msgid ""
1110
  "If the PHP BC Math Extension is installed. BC Math is no longer required "
1111
  "for the GeoIP code and is listed here only for historical reasons."
1112
  msgstr ""
1113
 
1114
- #: includes/optimization/tabs/wps-optimization-resources.php:190
1115
  msgid "File Info"
1116
  msgstr ""
1117
 
1118
- #: includes/optimization/tabs/wps-optimization-resources.php:195
1119
  msgid "GeoIP Database"
1120
  msgstr ""
1121
 
1122
- #: includes/optimization/tabs/wps-optimization-resources.php:204
1123
  msgid "Database file does not exist."
1124
  msgstr ""
1125
 
1126
- #: includes/optimization/tabs/wps-optimization-resources.php:206
1127
- #: includes/optimization/tabs/wps-optimization-resources.php:225
1128
- #: includes/optimization/tabs/wps-optimization-resources.php:244
1129
  msgid ", created on "
1130
  msgstr ""
1131
 
1132
- #: includes/optimization/tabs/wps-optimization-resources.php:208
1133
  msgid "The file size and date of the GeoIP database."
1134
  msgstr ""
1135
 
1136
- #: includes/optimization/tabs/wps-optimization-resources.php:214
1137
  msgid "browscap.ini File"
1138
  msgstr ""
1139
 
1140
- #: includes/optimization/tabs/wps-optimization-resources.php:223
1141
  msgid "browscap.ini file does not exist."
1142
  msgstr ""
1143
 
1144
- #: includes/optimization/tabs/wps-optimization-resources.php:227
1145
  msgid "The file size and date of the browscap.ini file."
1146
  msgstr ""
1147
 
1148
- #: includes/optimization/tabs/wps-optimization-resources.php:233
1149
  msgid "browscap Cache File"
1150
  msgstr ""
1151
 
1152
- #: includes/optimization/tabs/wps-optimization-resources.php:242
1153
  msgid "browscap cache file does not exist."
1154
  msgstr ""
1155
 
1156
- #: includes/optimization/tabs/wps-optimization-resources.php:246
1157
  msgid "The file size and date of the browscap cache file."
1158
  msgstr ""
1159
 
1160
- #: includes/optimization/tabs/wps-optimization-resources.php:251
1161
  msgid "Client Info"
1162
  msgstr ""
1163
 
1164
- #: includes/optimization/tabs/wps-optimization-resources.php:256
1165
  msgid "Client IP"
1166
  msgstr ""
1167
 
1168
- #: includes/optimization/tabs/wps-optimization-resources.php:261
1169
  msgid "The client IP address."
1170
  msgstr ""
1171
 
1172
- #: includes/optimization/tabs/wps-optimization-resources.php:267
1173
  msgid "User Agent"
1174
  msgstr ""
1175
 
1176
- #: includes/optimization/tabs/wps-optimization-resources.php:272
1177
  msgid "The client user agent string."
1178
  msgstr ""
1179
 
1180
- #: includes/optimization/tabs/wps-optimization-resources.php:278
1181
  msgid "Browser"
1182
  msgstr ""
1183
 
1184
- #: includes/optimization/tabs/wps-optimization-resources.php:285
1185
  msgid "The detected client browser."
1186
  msgstr ""
1187
 
1188
- #: includes/optimization/tabs/wps-optimization-resources.php:296
1189
  msgid "The detected client browser version."
1190
  msgstr ""
1191
 
1192
- #: includes/optimization/tabs/wps-optimization-resources.php:307
1193
  msgid "The detected client platform."
1194
  msgstr ""
1195
 
@@ -1464,7 +1468,7 @@ msgstr ""
1464
  #: includes/settings/tabs/wps-exclusions.php:234
1465
  #: includes/settings/tabs/wps-externals.php:284
1466
  #: includes/settings/tabs/wps-general.php:349
1467
- #: includes/settings/tabs/wps-maintenance.php:84
1468
  #: includes/settings/tabs/wps-notifications.php:201
1469
  #: includes/settings/tabs/wps-overview-display.php:388
1470
  #: includes/settings/tabs/wps-removal.php:42
@@ -1746,7 +1750,7 @@ msgstr ""
1746
  #: includes/settings/tabs/wps-general.php:325
1747
  #: includes/settings/tabs/wps-general.php:341
1748
  #: includes/settings/tabs/wps-maintenance.php:40
1749
- #: includes/settings/tabs/wps-maintenance.php:64
1750
  #: includes/settings/tabs/wps-notifications.php:69
1751
  #: includes/settings/tabs/wps-notifications.php:81
1752
  #: includes/settings/tabs/wps-notifications.php:93
@@ -2111,22 +2115,22 @@ msgid ""
2111
  msgstr ""
2112
 
2113
  #: includes/settings/tabs/wps-maintenance.php:30
2114
- msgid "Database Maintenance"
2115
  msgstr ""
2116
 
2117
  #: includes/settings/tabs/wps-maintenance.php:35
2118
- #: includes/settings/tabs/wps-maintenance.php:59
2119
- msgid "Run a daily WP Cron job to prune the databases"
2120
  msgstr ""
2121
 
2122
  #: includes/settings/tabs/wps-maintenance.php:41
2123
  msgid ""
2124
- "A WP Cron job will be run daily to prune any data older than a set number of "
2125
  "days."
2126
  msgstr ""
2127
 
2128
  #: includes/settings/tabs/wps-maintenance.php:47
2129
- msgid "Prune data older than"
2130
  msgstr ""
2131
 
2132
  #: includes/settings/tabs/wps-maintenance.php:52
@@ -2139,21 +2143,21 @@ msgid ""
2139
  "Invalid values will disable the daily maintenance."
2140
  msgstr ""
2141
 
2142
- #: includes/settings/tabs/wps-maintenance.php:65
 
 
 
 
2143
  msgid ""
2144
- "A WP Cron job will be run daily to prune any users statistics data where the "
2145
  "user has more than the defined number of hits in a day (aka they are "
2146
  "probably a bot)."
2147
  msgstr ""
2148
 
2149
- #: includes/settings/tabs/wps-maintenance.php:71
2150
- msgid "Prune visitors with more than"
2151
- msgstr ""
2152
-
2153
- #: includes/settings/tabs/wps-maintenance.php:77
2154
  msgid ""
2155
- "The number of hits required to delete the visitor. Invalid values will "
2156
- "disable the daily maintenance (must be 10 or greater)."
2157
  msgstr ""
2158
 
2159
  #: includes/settings/tabs/wps-notifications.php:44
@@ -2839,7 +2843,7 @@ msgstr ""
2839
  msgid "Manual file not found."
2840
  msgstr ""
2841
 
2842
- #: wp-statistics.php:689 wp-statistics.php:814 wp-statistics.php:848
2843
  msgid "You do not have sufficient permissions to access this page."
2844
  msgstr ""
2845
 
2
  # This file is distributed under the same license as the WP Statistics package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP Statistics 9.6.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-statistics\n"
7
+ "POT-Creation-Date: 2015-09-05 02:35:10+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2015-09-04 22:34-0400\n"
12
  "Last-Translator: \n"
13
  "Language-Team: \n"
14
  "X-Generator: Poedit 1.8.4\n"
21
  msgid "No agent data found to remove!"
22
  msgstr ""
23
 
24
+ #: ajax.php:38 ajax.php:68 ajax.php:120 ajax.php:126
25
  msgid "Please select the desired items."
26
  msgstr ""
27
 
28
+ #: ajax.php:41 ajax.php:71 ajax.php:129 ajax.php:154 ajax.php:184
29
  #: includes/optimization/wps-optimization.php:6
30
  msgid "Access denied!"
31
  msgstr ""
38
  msgid "No platform data found to remove!"
39
  msgstr ""
40
 
41
+ #: ajax.php:178 includes/functions/purge-hits.php:32
42
  msgid "Number of hits must be greater than or equal to 10!"
43
  msgstr ""
44
 
74
  msgid "Recent Visitors"
75
  msgstr ""
76
 
77
+ #: dashboard.php:62 includes/log/top-referring.php:48
78
+ #: includes/log/top-referring.php:65 includes/log/widgets/referring.php:11
79
  #: includes/settings/tabs/wps-overview-display.php:26
80
  msgid "Top Referring Sites"
81
  msgstr ""
254
  #: includes/log/last-visitor.php:67 includes/log/online.php:17
255
  #: includes/log/page-statistics.php:34 includes/log/search-statistics.php:27
256
  #: includes/log/top-pages.php:28 includes/log/top-pages.php:148
257
+ #: includes/log/top-referring.php:61 includes/log/widgets/about.php:7
258
  #: includes/log/widgets/browsers.php:9 includes/log/widgets/countries.php:9
259
  #: includes/log/widgets/google.map.php:8 includes/log/widgets/hits.php:9
260
  #: includes/log/widgets/jqv.map.php:8 includes/log/widgets/pages.php:12
275
  msgstr ""
276
 
277
  #: includes/log/all-browsers.php:99 includes/log/widgets/top.visitors.php:37
278
+ #: includes/optimization/tabs/wps-optimization-resources.php:313
279
  msgid "Platform"
280
  msgstr ""
281
 
376
  #: includes/log/exclusions.php:95 includes/log/hit-statistics.php:65
377
  #: includes/log/search-statistics.php:69 includes/log/widgets/hits.php:61
378
  #: includes/log/widgets/search.php:59
379
+ #: includes/optimization/tabs/wps-optimization-purging.php:208
380
  msgid "days"
381
  msgstr ""
382
 
425
  msgstr ""
426
 
427
  #: includes/log/last-search.php:47 includes/log/last-visitor.php:38
428
+ #: includes/log/top-referring.php:51 includes/log/top-referring.php:54
429
+ #: includes/optimization/tabs/wps-optimization-purging.php:192 widget.php:296
430
  msgid "All"
431
  msgstr ""
432
 
442
  msgstr ""
443
 
444
  #: includes/log/last-search.php:115 includes/log/last-visitor.php:106
445
+ #: includes/log/online.php:55 includes/log/top-referring.php:96
446
  #: includes/log/widgets/recent.php:38 includes/log/widgets/words.php:61
447
  #: includes/settings/tabs/wps-overview-display.php:33
448
  #: includes/settings/tabs/wps-overview-display.php:113
451
 
452
  #: includes/log/last-search.php:159 includes/log/last-visitor.php:139
453
  #: includes/log/online.php:109 includes/log/top-pages.php:198
454
+ #: includes/log/top-referring.php:137
455
  msgid "Page"
456
  msgstr ""
457
 
458
  #: includes/log/last-search.php:159 includes/log/last-visitor.php:139
459
  #: includes/log/online.php:109 includes/log/top-pages.php:198
460
+ #: includes/log/top-referring.php:137
461
  msgid "From"
462
  msgstr ""
463
 
587
  msgid "To be added soon"
588
  msgstr ""
589
 
590
+ #: includes/log/top-referring.php:63
591
  msgid "Referring sites from"
592
  msgstr ""
593
 
594
+ #: includes/log/top-referring.php:121 includes/log/widgets/referring.php:50
595
  msgid "References"
596
  msgstr ""
597
 
644
  msgid "Page Trending Stats"
645
  msgstr ""
646
 
647
+ #: includes/log/widgets/referring.php:51
648
  msgid "Address"
649
  msgstr ""
650
 
693
  msgstr ""
694
 
695
  #: includes/log/widgets/top.visitors.php:31
696
+ #: includes/settings/tabs/wps-maintenance.php:80 wp-statistics.php:301
697
  #: wp-statistics.php:379 wp-statistics.php:455
698
  msgid "Hits"
699
  msgstr ""
707
  msgstr ""
708
 
709
  #: includes/log/widgets/top.visitors.php:38
710
+ #: includes/optimization/tabs/wps-optimization-resources.php:302
711
  msgid "Version"
712
  msgstr ""
713
 
740
  msgid "Countries"
741
  msgstr ""
742
 
743
+ #: includes/optimization/tabs/wps-optimization-database.php:42
744
+ #: includes/optimization/tabs/wps-optimization-database.php:74
745
  #: includes/optimization/tabs/wps-optimization-updates.php:25
746
  #: includes/optimization/tabs/wps-optimization-updates.php:40
747
  msgid "Update Now!"
748
  msgstr ""
749
 
750
+ #: includes/optimization/tabs/wps-optimization-database.php:43
751
  msgid ""
752
  "Older installs of WP Statistics allow for duplicate entries in the visitors "
753
  "table in a corner case. Newer installs protect against this with a unique "
756
  "vistitors table, delete duplicate entries and add the index."
757
  msgstr ""
758
 
759
+ #: includes/optimization/tabs/wps-optimization-database.php:44
760
+ #: includes/optimization/tabs/wps-optimization-database.php:108
761
  msgid ""
762
  "This operation could take a long time on installs with many rows in the "
763
  "visitors table."
764
  msgstr ""
765
 
766
+ #: includes/optimization/tabs/wps-optimization-database.php:50
767
  msgid ""
768
  "Older installs of WP Statistics allow for duplicate entries in the visitors "
769
  "table in a corner case. Newer installs protect against this with a unique "
770
  "index on the table."
771
  msgstr ""
772
 
773
+ #: includes/optimization/tabs/wps-optimization-database.php:51
774
+ #: includes/optimization/tabs/wps-optimization-database.php:83
775
+ #: includes/optimization/tabs/wps-optimization-database.php:114
776
  msgid ""
777
  "Congratulations, your installation is already up to date, nothing to do."
778
  msgstr ""
779
 
780
+ #: includes/optimization/tabs/wps-optimization-database.php:60
781
  msgid "Visits Table"
782
  msgstr ""
783
 
784
+ #: includes/optimization/tabs/wps-optimization-database.php:75
785
  msgid ""
786
  "Older installs of WP Statistics allow for duplicate entries in the visits "
787
  "table in a corner case. Newer installs protect against this with a unique "
790
  "vistits table, delete duplicate entries and add the index."
791
  msgstr ""
792
 
793
+ #: includes/optimization/tabs/wps-optimization-database.php:76
794
  msgid ""
795
  "This operation could take a long time on installs with many rows in the "
796
  "visits table."
797
  msgstr ""
798
 
799
+ #: includes/optimization/tabs/wps-optimization-database.php:82
800
  msgid ""
801
  "Older installs of WP Statistics allow for duplicate entries in the visits "
802
  "table in a corner case. Newer installs protect against this with a unique "
803
  "index on the table."
804
  msgstr ""
805
 
806
+ #: includes/optimization/tabs/wps-optimization-database.php:94
807
  msgid "Search Table"
808
  msgstr ""
809
 
810
+ #: includes/optimization/tabs/wps-optimization-database.php:99
811
  msgid "Convert"
812
  msgstr ""
813
 
814
+ #: includes/optimization/tabs/wps-optimization-database.php:106
815
  msgid "Convert Now!"
816
  msgstr ""
817
 
818
+ #: includes/optimization/tabs/wps-optimization-database.php:107
819
  msgid ""
820
  "Older installs of WP Statistics store details of searches in the visitors "
821
  "table which can become a performance issue on large datasets. A new table "
824
  "be used."
825
  msgstr ""
826
 
827
+ #: includes/optimization/tabs/wps-optimization-database.php:113
828
  msgid ""
829
  "Older installs of WP Statistics store details of searches in the visitors "
830
  "table which can become a performance issue on large datasets. A new table "
843
  #: includes/optimization/tabs/wps-optimization-export.php:18
844
  #: includes/optimization/tabs/wps-optimization-export.php:37
845
  #: includes/optimization/tabs/wps-optimization-purging.php:185
846
+ #: includes/optimization/tabs/wps-optimization-purging.php:242
847
+ #: includes/optimization/tabs/wps-optimization-purging.php:266
848
  #: includes/settings/tabs/wps-notifications.php:134
849
  #: includes/settings/tabs/wps-notifications.php:164
850
  msgid "Please select"
921
  msgid "Empty Table"
922
  msgstr ""
923
 
924
+ #: includes/optimization/tabs/wps-optimization-purging.php:194
925
  msgid "All data table will be lost."
926
  msgstr ""
927
 
928
+ #: includes/optimization/tabs/wps-optimization-purging.php:195
929
  msgid "Clear now!"
930
  msgstr ""
931
 
932
+ #: includes/optimization/tabs/wps-optimization-purging.php:203
933
  msgid "Purge records older than"
934
  msgstr ""
935
 
936
+ #: includes/optimization/tabs/wps-optimization-purging.php:209
937
  msgid ""
938
  "Deleted user statistics data older than the selected number of days. "
939
  "Minimum value is 30 days."
940
  msgstr ""
941
 
942
+ #: includes/optimization/tabs/wps-optimization-purging.php:210
943
+ #: includes/optimization/tabs/wps-optimization-purging.php:225
944
  msgid "Purge now!"
945
  msgstr ""
946
 
947
+ #: includes/optimization/tabs/wps-optimization-purging.php:218
948
+ #: includes/settings/tabs/wps-maintenance.php:75
949
  msgid "Purge visitors with more than"
950
  msgstr ""
951
 
952
+ #: includes/optimization/tabs/wps-optimization-purging.php:223
953
  msgid "hits"
954
  msgstr ""
955
 
956
+ #: includes/optimization/tabs/wps-optimization-purging.php:224
957
  msgid ""
958
  "Deleted user statistics data where the user has more than the defined number "
959
  "of hits in a day. This can be useful to clear up old data when your site "
962
  "recorded on a per use basis. Minimum value is 10 hits."
963
  msgstr ""
964
 
965
+ #: includes/optimization/tabs/wps-optimization-purging.php:232
966
  msgid "Delete User Agent Types"
967
  msgstr ""
968
 
969
+ #: includes/optimization/tabs/wps-optimization-purging.php:237
970
  msgid "Delete Agents"
971
  msgstr ""
972
 
973
+ #: includes/optimization/tabs/wps-optimization-purging.php:252
974
  msgid "All visitor data will be lost for this agent type."
975
  msgstr ""
976
 
977
+ #: includes/optimization/tabs/wps-optimization-purging.php:253
978
+ #: includes/optimization/tabs/wps-optimization-purging.php:277
979
  msgid "Delete now!"
980
  msgstr ""
981
 
982
+ #: includes/optimization/tabs/wps-optimization-purging.php:261
983
  msgid "Delete Platforms"
984
  msgstr ""
985
 
986
+ #: includes/optimization/tabs/wps-optimization-purging.php:276
987
  msgid "All visitor data will be lost for this platform type."
988
  msgstr ""
989
 
1023
  #: includes/optimization/tabs/wps-optimization-resources.php:88
1024
  #: includes/optimization/tabs/wps-optimization-resources.php:99
1025
  #: includes/optimization/tabs/wps-optimization-resources.php:110
1026
+ #: includes/optimization/tabs/wps-optimization-resources.php:121
1027
  msgid "Number of rows in the %s table"
1028
  msgstr ""
1029
 
1033
  #: includes/optimization/tabs/wps-optimization-resources.php:92
1034
  #: includes/optimization/tabs/wps-optimization-resources.php:103
1035
  #: includes/optimization/tabs/wps-optimization-resources.php:114
1036
+ #: includes/optimization/tabs/wps-optimization-resources.php:125
1037
  msgid "Row"
1038
  msgstr ""
1039
 
1043
  #: includes/optimization/tabs/wps-optimization-resources.php:93
1044
  #: includes/optimization/tabs/wps-optimization-resources.php:104
1045
  #: includes/optimization/tabs/wps-optimization-resources.php:115
1046
+ #: includes/optimization/tabs/wps-optimization-resources.php:126
1047
  msgid "Number of rows"
1048
  msgstr ""
1049
 
1050
+ #: includes/optimization/tabs/wps-optimization-resources.php:131
1051
  msgid "Version Info"
1052
  msgstr ""
1053
 
1054
+ #: includes/optimization/tabs/wps-optimization-resources.php:136
1055
  msgid "WP Statistics Version"
1056
  msgstr ""
1057
 
1058
+ #: includes/optimization/tabs/wps-optimization-resources.php:141
1059
  msgid "The WP Statistics version you are running."
1060
  msgstr ""
1061
 
1062
+ #: includes/optimization/tabs/wps-optimization-resources.php:147
1063
  msgid "PHP Version"
1064
  msgstr ""
1065
 
1066
+ #: includes/optimization/tabs/wps-optimization-resources.php:152
1067
  msgid "The PHP version you are running."
1068
  msgstr ""
1069
 
1070
+ #: includes/optimization/tabs/wps-optimization-resources.php:158
1071
  msgid "PHP Safe Mode"
1072
  msgstr ""
1073
 
1074
+ #: includes/optimization/tabs/wps-optimization-resources.php:163
1075
  msgid "Is PHP Safe Mode active. The GeoIP code is not supported in Safe Mode."
1076
  msgstr ""
1077
 
1078
+ #: includes/optimization/tabs/wps-optimization-resources.php:169
1079
  msgid "jQuery Version"
1080
  msgstr ""
1081
 
1082
+ #: includes/optimization/tabs/wps-optimization-resources.php:174
1083
  msgid "The jQuery version you are running."
1084
  msgstr ""
1085
 
1086
+ #: includes/optimization/tabs/wps-optimization-resources.php:180
1087
  msgid "cURL Version"
1088
  msgstr ""
1089
 
1090
+ #: includes/optimization/tabs/wps-optimization-resources.php:184
1091
  msgid "cURL not installed"
1092
  msgstr ""
1093
 
1094
+ #: includes/optimization/tabs/wps-optimization-resources.php:185
1095
  msgid ""
1096
  "The PHP cURL Extension version you are running. cURL is required for the "
1097
  "GeoIP code, if it is not installed GeoIP will be disabled."
1098
  msgstr ""
1099
 
1100
+ #: includes/optimization/tabs/wps-optimization-resources.php:191
1101
  msgid "BC Math"
1102
  msgstr ""
1103
 
1104
+ #: includes/optimization/tabs/wps-optimization-resources.php:195
1105
  msgid "Installed"
1106
  msgstr ""
1107
 
1108
+ #: includes/optimization/tabs/wps-optimization-resources.php:195
1109
  msgid "Not installed"
1110
  msgstr ""
1111
 
1112
+ #: includes/optimization/tabs/wps-optimization-resources.php:196
1113
  msgid ""
1114
  "If the PHP BC Math Extension is installed. BC Math is no longer required "
1115
  "for the GeoIP code and is listed here only for historical reasons."
1116
  msgstr ""
1117
 
1118
+ #: includes/optimization/tabs/wps-optimization-resources.php:201
1119
  msgid "File Info"
1120
  msgstr ""
1121
 
1122
+ #: includes/optimization/tabs/wps-optimization-resources.php:206
1123
  msgid "GeoIP Database"
1124
  msgstr ""
1125
 
1126
+ #: includes/optimization/tabs/wps-optimization-resources.php:215
1127
  msgid "Database file does not exist."
1128
  msgstr ""
1129
 
1130
+ #: includes/optimization/tabs/wps-optimization-resources.php:217
1131
+ #: includes/optimization/tabs/wps-optimization-resources.php:236
1132
+ #: includes/optimization/tabs/wps-optimization-resources.php:255
1133
  msgid ", created on "
1134
  msgstr ""
1135
 
1136
+ #: includes/optimization/tabs/wps-optimization-resources.php:219
1137
  msgid "The file size and date of the GeoIP database."
1138
  msgstr ""
1139
 
1140
+ #: includes/optimization/tabs/wps-optimization-resources.php:225
1141
  msgid "browscap.ini File"
1142
  msgstr ""
1143
 
1144
+ #: includes/optimization/tabs/wps-optimization-resources.php:234
1145
  msgid "browscap.ini file does not exist."
1146
  msgstr ""
1147
 
1148
+ #: includes/optimization/tabs/wps-optimization-resources.php:238
1149
  msgid "The file size and date of the browscap.ini file."
1150
  msgstr ""
1151
 
1152
+ #: includes/optimization/tabs/wps-optimization-resources.php:244
1153
  msgid "browscap Cache File"
1154
  msgstr ""
1155
 
1156
+ #: includes/optimization/tabs/wps-optimization-resources.php:253
1157
  msgid "browscap cache file does not exist."
1158
  msgstr ""
1159
 
1160
+ #: includes/optimization/tabs/wps-optimization-resources.php:257
1161
  msgid "The file size and date of the browscap cache file."
1162
  msgstr ""
1163
 
1164
+ #: includes/optimization/tabs/wps-optimization-resources.php:262
1165
  msgid "Client Info"
1166
  msgstr ""
1167
 
1168
+ #: includes/optimization/tabs/wps-optimization-resources.php:267
1169
  msgid "Client IP"
1170
  msgstr ""
1171
 
1172
+ #: includes/optimization/tabs/wps-optimization-resources.php:272
1173
  msgid "The client IP address."
1174
  msgstr ""
1175
 
1176
+ #: includes/optimization/tabs/wps-optimization-resources.php:278
1177
  msgid "User Agent"
1178
  msgstr ""
1179
 
1180
+ #: includes/optimization/tabs/wps-optimization-resources.php:283
1181
  msgid "The client user agent string."
1182
  msgstr ""
1183
 
1184
+ #: includes/optimization/tabs/wps-optimization-resources.php:289
1185
  msgid "Browser"
1186
  msgstr ""
1187
 
1188
+ #: includes/optimization/tabs/wps-optimization-resources.php:296
1189
  msgid "The detected client browser."
1190
  msgstr ""
1191
 
1192
+ #: includes/optimization/tabs/wps-optimization-resources.php:307
1193
  msgid "The detected client browser version."
1194
  msgstr ""
1195
 
1196
+ #: includes/optimization/tabs/wps-optimization-resources.php:318
1197
  msgid "The detected client platform."
1198
  msgstr ""
1199
 
1468
  #: includes/settings/tabs/wps-exclusions.php:234
1469
  #: includes/settings/tabs/wps-externals.php:284
1470
  #: includes/settings/tabs/wps-general.php:349
1471
+ #: includes/settings/tabs/wps-maintenance.php:88
1472
  #: includes/settings/tabs/wps-notifications.php:201
1473
  #: includes/settings/tabs/wps-overview-display.php:388
1474
  #: includes/settings/tabs/wps-removal.php:42
1750
  #: includes/settings/tabs/wps-general.php:325
1751
  #: includes/settings/tabs/wps-general.php:341
1752
  #: includes/settings/tabs/wps-maintenance.php:40
1753
+ #: includes/settings/tabs/wps-maintenance.php:68
1754
  #: includes/settings/tabs/wps-notifications.php:69
1755
  #: includes/settings/tabs/wps-notifications.php:81
1756
  #: includes/settings/tabs/wps-notifications.php:93
2115
  msgstr ""
2116
 
2117
  #: includes/settings/tabs/wps-maintenance.php:30
2118
+ msgid "Purge Old Data Daily"
2119
  msgstr ""
2120
 
2121
  #: includes/settings/tabs/wps-maintenance.php:35
2122
+ #: includes/settings/tabs/wps-maintenance.php:63
2123
+ msgid "Enabled"
2124
  msgstr ""
2125
 
2126
  #: includes/settings/tabs/wps-maintenance.php:41
2127
  msgid ""
2128
+ "A WP Cron job will be run daily to purge any data older than a set number of "
2129
  "days."
2130
  msgstr ""
2131
 
2132
  #: includes/settings/tabs/wps-maintenance.php:47
2133
+ msgid "Purge data older than"
2134
  msgstr ""
2135
 
2136
  #: includes/settings/tabs/wps-maintenance.php:52
2143
  "Invalid values will disable the daily maintenance."
2144
  msgstr ""
2145
 
2146
+ #: includes/settings/tabs/wps-maintenance.php:58
2147
+ msgid "Purge High Hit Count Visitors Daily"
2148
+ msgstr ""
2149
+
2150
+ #: includes/settings/tabs/wps-maintenance.php:69
2151
  msgid ""
2152
+ "A WP Cron job will be run daily to purge any users statistics data where the "
2153
  "user has more than the defined number of hits in a day (aka they are "
2154
  "probably a bot)."
2155
  msgstr ""
2156
 
2157
+ #: includes/settings/tabs/wps-maintenance.php:81
 
 
 
 
2158
  msgid ""
2159
+ "The number of hits required to delete the visitor. Minimum value is 10 "
2160
+ "hits. Invalid values will disable the daily maintenance."
2161
  msgstr ""
2162
 
2163
  #: includes/settings/tabs/wps-notifications.php:44
2843
  msgid "Manual file not found."
2844
  msgstr ""
2845
 
2846
+ #: wp-statistics.php:689 wp-statistics.php:814 wp-statistics.php:849
2847
  msgid "You do not have sufficient permissions to access this page."
2848
  msgstr ""
2849
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wp-statistics.com/donate/
4
  Tags: statistics, stats, visit, visitors, chart, browser, blog, today, yesterday, week, month, year, total, post, page, sidebar, summary, feedburner, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 4.3
7
- Stable tag: 9.6.1
8
  License: GPL3
9
 
10
  Complete statistics for your WordPress site.
@@ -235,6 +235,10 @@ If you still have issues open a new thread on the support forum and we'll try an
235
  10. View latest search engine referrers Statistics page.
236
 
237
  == Upgrade Notice ==
 
 
 
 
238
  = 9.6.1 =
239
  Have you updated your database indexes and search table? If not please go to Statistics->Optimization->Database after you have installed the update and run the updates.
240
 
@@ -285,6 +289,15 @@ BACKUP YOUR DATABASE BEFORE INSTALLING! This release alters the table structure
285
  This release updates some core code to do with timezones, hence the change to version 9.0, if you see any issues with timezones, please let us know. In addition, you may see an increase in your visits count as a race condition that dropped some visits has been resolved.
286
 
287
  == Changelog ==
 
 
 
 
 
 
 
 
 
288
  = 9.6.1 =
289
  * Release Date: September 4, 2015
290
  * Fixed: Error with undeclared global $WP_Statistics when updating the database.
4
  Tags: statistics, stats, visit, visitors, chart, browser, blog, today, yesterday, week, month, year, total, post, page, sidebar, summary, feedburner, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 4.3
7
+ Stable tag: 9.6.2
8
  License: GPL3
9
 
10
  Complete statistics for your WordPress site.
235
  10. View latest search engine referrers Statistics page.
236
 
237
  == Upgrade Notice ==
238
+ = 9.6.2 =
239
+ This is a security release, please upgrade immediately.
240
+ Have you updated your database indexes and search table? If not please go to Statistics->Optimization->Database after you have installed the update and run the updates.
241
+
242
  = 9.6.1 =
243
  Have you updated your database indexes and search table? If not please go to Statistics->Optimization->Database after you have installed the update and run the updates.
244
 
289
  This release updates some core code to do with timezones, hence the change to version 9.0, if you see any issues with timezones, please let us know. In addition, you may see an increase in your visits count as a race condition that dropped some visits has been resolved.
290
 
291
  == Changelog ==
292
+ = 9.6.2 =
293
+ * Release Date: September 5, 2015
294
+ * Added: Search table to the empty table list.
295
+ * Added: Search table size to the optimization page.
296
+ * Added: Updated SQL calls to the pages table to use $wpdb->prepare() to protect against SQL inject attacks.
297
+ * Fixed: Check of $wp_roles type as it is an object and not an array which caused only admins to be able to view the statistics.
298
+ * Fixed: Top referring only displayed search engines.
299
+ * Updated: Layout of the maintenance tab.
300
+
301
  = 9.6.1 =
302
  * Release Date: September 4, 2015
303
  * Fixed: Error with undeclared global $WP_Statistics when updating the database.
wp-statistics.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Statistics
4
  Plugin URI: http://wp-statistics.com/
5
  Description: Complete statistics for your WordPress site.
6
- Version: 9.6.1
7
  Author: Mostafa Soufi & Greg Ross
8
  Author URI: http://wp-statistics.com/
9
  Text Domain: wp_statistics
@@ -12,7 +12,7 @@ License: GPL2
12
  */
13
 
14
  // These defines are used later for various reasons.
15
- define('WP_STATISTICS_VERSION', '9.6.1');
16
  define('WP_STATISTICS_MANUAL', 'manual/WP Statistics Admin Manual.');
17
  define('WP_STATISTICS_REQUIRED_PHP_VERSION', '5.3.0');
18
  define('WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION);
@@ -346,8 +346,8 @@ License: GPL2
346
 
347
  $role_list = $wp_roles->get_names();
348
 
349
- if( !is_array( $wp_roles ) || !is_array( $wp_roles->roles) ) { return 'manage_options'; }
350
-
351
  foreach( $wp_roles->roles as $role ) {
352
 
353
  $cap_list = $role['capabilities'];
@@ -835,6 +835,7 @@ License: GPL2
835
  $result['exclusions'] = $wpdb->get_var("SELECT COUNT(ID) FROM `{$wpdb->prefix}statistics_exclusions`");
836
  $result['pages'] = $wpdb->get_var("SELECT COUNT(uri) FROM `{$wpdb->prefix}statistics_pages`");
837
  $result['historical'] = $wpdb->get_Var("SELECT COUNT(ID) FROM `{$wpdb->prefix}statistics_historical`");
 
838
 
839
  include_once dirname( __FILE__ ) . "/includes/optimization/wps-optimization.php";
840
  }
3
  Plugin Name: WP Statistics
4
  Plugin URI: http://wp-statistics.com/
5
  Description: Complete statistics for your WordPress site.
6
+ Version: 9.6.2
7
  Author: Mostafa Soufi & Greg Ross
8
  Author URI: http://wp-statistics.com/
9
  Text Domain: wp_statistics
12
  */
13
 
14
  // These defines are used later for various reasons.
15
+ define('WP_STATISTICS_VERSION', '9.6.2');
16
  define('WP_STATISTICS_MANUAL', 'manual/WP Statistics Admin Manual.');
17
  define('WP_STATISTICS_REQUIRED_PHP_VERSION', '5.3.0');
18
  define('WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION);
346
 
347
  $role_list = $wp_roles->get_names();
348
 
349
+ if( !is_object( $wp_roles ) || !is_array( $wp_roles->roles) ) { return 'manage_options'; }
350
+
351
  foreach( $wp_roles->roles as $role ) {
352
 
353
  $cap_list = $role['capabilities'];
835
  $result['exclusions'] = $wpdb->get_var("SELECT COUNT(ID) FROM `{$wpdb->prefix}statistics_exclusions`");
836
  $result['pages'] = $wpdb->get_var("SELECT COUNT(uri) FROM `{$wpdb->prefix}statistics_pages`");
837
  $result['historical'] = $wpdb->get_Var("SELECT COUNT(ID) FROM `{$wpdb->prefix}statistics_historical`");
838
+ $result['search'] = $wpdb->get_Var("SELECT COUNT(ID) FROM `{$wpdb->prefix}statistics_search`");
839
 
840
  include_once dirname( __FILE__ ) . "/includes/optimization/wps-optimization.php";
841
  }