Version Description
- [Note] Our Reports API (wp-slimstat-reports.php) does not extend wp-slimstat-admin anymore, for extra flexibility in building third-party solutions
- [New] Added support for generating email reports
- [Update] MaxMind's IP Database has been updated to the latest version (2014-09-04)
- [Fix] Some settings could not be turned off, because of the Network Settings functionality (thank you, LeonardShelby)
Download this release
Release Info
Developer | coolmann |
Plugin | Slimstat Analytics |
Version | 3.7.1 |
Comparing to | |
See all releases |
Code changes from version 3.7 to 3.7.1
- admin/view/index.php +3 -3
- admin/view/wp-slimstat-reports.php +55 -7
- admin/wp-slimstat-admin.php +20 -43
- databases/maxmind.dat +0 -0
- readme.txt +7 -1
- wp-slimstat.php +9 -9
admin/view/index.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php if (!function_exists('add_action')) exit(0); ?>
|
2 |
|
3 |
<div class="wrap slimstat">
|
4 |
-
<h2><?php echo wp_slimstat_reports::$screen_names[
|
5 |
-
|
6 |
<form action="<?php echo wp_slimstat_reports::fs_url(); ?>" method="post" id="slimstat-filters-form">
|
7 |
<fieldset id="slimstat-filters"><?php
|
8 |
$filter_name_html = '<select name="f" id="slimstat-filter-name">';
|
@@ -113,7 +113,7 @@
|
|
113 |
<div class="meta-box-sortables">
|
114 |
<form style="display:none" method="get" action=""><input type="hidden" id="meta-box-order-nonce" name="meta-box-order-nonce" value="<?php echo wp_slimstat_reports::$meta_report_order_nonce ?>" /></form><?php
|
115 |
|
116 |
-
switch(
|
117 |
case 1:
|
118 |
include_once(dirname(__FILE__).'/right-now.php');
|
119 |
break;
|
1 |
<?php if (!function_exists('add_action')) exit(0); ?>
|
2 |
|
3 |
<div class="wrap slimstat">
|
4 |
+
<h2><?php echo wp_slimstat_reports::$screen_names[wp_slimstat_admin::$current_tab] ?></h2>
|
5 |
+
|
6 |
<form action="<?php echo wp_slimstat_reports::fs_url(); ?>" method="post" id="slimstat-filters-form">
|
7 |
<fieldset id="slimstat-filters"><?php
|
8 |
$filter_name_html = '<select name="f" id="slimstat-filter-name">';
|
113 |
<div class="meta-box-sortables">
|
114 |
<form style="display:none" method="get" action=""><input type="hidden" id="meta-box-order-nonce" name="meta-box-order-nonce" value="<?php echo wp_slimstat_reports::$meta_report_order_nonce ?>" /></form><?php
|
115 |
|
116 |
+
switch(wp_slimstat_admin::$current_tab){
|
117 |
case 1:
|
118 |
include_once(dirname(__FILE__).'/right-now.php');
|
119 |
break;
|
admin/view/wp-slimstat-reports.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class wp_slimstat_reports
|
4 |
// Hidden filters are not displayed to the user, but are applied to the reports
|
5 |
public static $hidden_filters = array('hour' => 1, 'day' => 1, 'month' => 1, 'year' => 1, 'interval' => 1, 'direction' => 1, 'limit_results' => 1, 'start_from' => 1);
|
6 |
|
@@ -17,11 +17,20 @@ class wp_slimstat_reports extends wp_slimstat_admin{
|
|
17 |
|
18 |
// Shared descriptions
|
19 |
public static $chart_tooltip = '';
|
|
|
|
|
|
|
|
|
20 |
|
21 |
/**
|
22 |
* Initalizes class properties
|
23 |
*/
|
24 |
-
public static function init(){
|
|
|
|
|
|
|
|
|
|
|
25 |
self::$screen_names = array(
|
26 |
1 => __('Real-Time Log','wp-slimstat'),
|
27 |
2 => __('Overview','wp-slimstat'),
|
@@ -47,7 +56,7 @@ class wp_slimstat_reports extends wp_slimstat_admin{
|
|
47 |
'slim_p1_15' => __('Rankings','wp-slimstat'),
|
48 |
'slim_p1_17' => __('Top Language Families','wp-slimstat'),
|
49 |
'slim_p2_01' => __('Human Visits (chart)','wp-slimstat'),
|
50 |
-
'slim_p2_02' => __('
|
51 |
'slim_p2_03' => __('Top Languages','wp-slimstat'),
|
52 |
'slim_p2_04' => __('Top Browsers','wp-slimstat'),
|
53 |
'slim_p2_05' => __('Top Service Providers','wp-slimstat'),
|
@@ -97,9 +106,11 @@ class wp_slimstat_reports extends wp_slimstat_admin{
|
|
97 |
'slim_p4_21' => __('Top OutLinks and Downloads','wp-slimstat'),
|
98 |
'slim_p4_22' => __('Your Website','wp-slimstat'),
|
99 |
'slim_p6_01' => __('World Map','wp-slimstat'),
|
100 |
-
'slim_p7_02' => __('
|
101 |
);
|
102 |
|
|
|
|
|
103 |
// TO BE REVIEWED AND CLEANED UP
|
104 |
self::$meta_report_order_nonce = wp_create_nonce('meta-box-order');
|
105 |
|
@@ -279,6 +290,43 @@ class wp_slimstat_reports extends wp_slimstat_admin{
|
|
279 |
echo '</div></div>';
|
280 |
}
|
281 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
public static function report_pagination($_id = 'p0', $_count_page_results = 0, $_count_all_results = 0){
|
283 |
$endpoint = min($_count_all_results, wp_slimstat_db::$filters_normalized['misc']['start_from'] + wp_slimstat_db::$filters_normalized['misc']['limit_results']);
|
284 |
$pagination_buttons = '';
|
@@ -489,7 +537,7 @@ class wp_slimstat_reports extends wp_slimstat_admin{
|
|
489 |
$row_details = date_i18n(wp_slimstat_db::$formats['date_time_format'], $results[$i]['dt'], true).$row_details;
|
490 |
}
|
491 |
else{
|
492 |
-
$percentage = '<span>'.(($_args['total_for_percentage'] > 0)?number_format(sprintf("%01.2f", (100*$results[$i]['counthits']/$_args['total_for_percentage'])), 2, wp_slimstat_db::$formats['decimal'], wp_slimstat_db::$formats['thousand']):0).'%</span>';
|
493 |
$row_details = __('Hits','wp-slimstat').': '.number_format($results[$i]['counthits'], 0, wp_slimstat_db::$formats['decimal'], wp_slimstat_db::$formats['thousand']).$row_details;
|
494 |
}
|
495 |
|
@@ -1046,7 +1094,7 @@ class wp_slimstat_reports extends wp_slimstat_admin{
|
|
1046 |
<p><?php _e('Avg Posts Per Day', 'wp-slimstat') ?> <span><?php echo number_format($your_content['avg_posts_per_day'], 2, wp_slimstat_db::$formats['decimal'], wp_slimstat_db::$formats['thousand']) ?></span></p><?php
|
1047 |
}
|
1048 |
|
1049 |
-
public static function show_report_wrapper($_report_id = 'p0'){
|
1050 |
$is_ajax = false;
|
1051 |
if (!empty($_POST['report_id'])){
|
1052 |
// Let's make sure the request is coming from the right place
|
@@ -1055,7 +1103,7 @@ class wp_slimstat_reports extends wp_slimstat_admin{
|
|
1055 |
$is_ajax = true;
|
1056 |
}
|
1057 |
|
1058 |
-
if (!$is_ajax && (in_array($_report_id, self::$hidden_reports) || wp_slimstat::$options['async_load'] == 'yes')) return;
|
1059 |
|
1060 |
// Some boxes need extra information
|
1061 |
if (in_array($_report_id, array('slim_p1_03', 'slim_p1_08', 'slim_p1_10', 'slim_p1_13', 'slim_p1_17', 'slim_p2_03', 'slim_p2_04', 'slim_p2_05', 'slim_p2_06', 'slim_p2_18', 'slim_p2_19', 'slim_p2_10', 'slim_p3_02', 'slim_p3_04', 'slim_p3_05'))){
|
1 |
<?php
|
2 |
|
3 |
+
class wp_slimstat_reports {
|
4 |
// Hidden filters are not displayed to the user, but are applied to the reports
|
5 |
public static $hidden_filters = array('hour' => 1, 'day' => 1, 'month' => 1, 'year' => 1, 'interval' => 1, 'direction' => 1, 'limit_results' => 1, 'start_from' => 1);
|
6 |
|
17 |
|
18 |
// Shared descriptions
|
19 |
public static $chart_tooltip = '';
|
20 |
+
|
21 |
+
// Private variables
|
22 |
+
protected static $current_tab = 1;
|
23 |
+
protected static $view_url = '';
|
24 |
|
25 |
/**
|
26 |
* Initalizes class properties
|
27 |
*/
|
28 |
+
public static function init($_args = array()){
|
29 |
+
// Args
|
30 |
+
if (!empty($_args['current_tab'])){
|
31 |
+
self::$current_tab = $_args['current_tab'];
|
32 |
+
}
|
33 |
+
|
34 |
self::$screen_names = array(
|
35 |
1 => __('Real-Time Log','wp-slimstat'),
|
36 |
2 => __('Overview','wp-slimstat'),
|
56 |
'slim_p1_15' => __('Rankings','wp-slimstat'),
|
57 |
'slim_p1_17' => __('Top Language Families','wp-slimstat'),
|
58 |
'slim_p2_01' => __('Human Visits (chart)','wp-slimstat'),
|
59 |
+
'slim_p2_02' => __('Audience Overview','wp-slimstat'),
|
60 |
'slim_p2_03' => __('Top Languages','wp-slimstat'),
|
61 |
'slim_p2_04' => __('Top Browsers','wp-slimstat'),
|
62 |
'slim_p2_05' => __('Top Service Providers','wp-slimstat'),
|
106 |
'slim_p4_21' => __('Top OutLinks and Downloads','wp-slimstat'),
|
107 |
'slim_p4_22' => __('Your Website','wp-slimstat'),
|
108 |
'slim_p6_01' => __('World Map','wp-slimstat'),
|
109 |
+
'slim_p7_02' => __('Activity','wp-slimstat')
|
110 |
);
|
111 |
|
112 |
+
self::$view_url = ((wp_slimstat::$options['use_separate_menu'] == 'no')?'options.php':'admin.php').'?page=wp-slim-view-'.self::$current_tab;
|
113 |
+
|
114 |
// TO BE REVIEWED AND CLEANED UP
|
115 |
self::$meta_report_order_nonce = wp_create_nonce('meta-box-order');
|
116 |
|
290 |
echo '</div></div>';
|
291 |
}
|
292 |
|
293 |
+
public static function fs_url($_filters = '', $_view_url = ''){
|
294 |
+
$filtered_url = !empty($_view_url)?$_view_url:self::$view_url;
|
295 |
+
|
296 |
+
// Backward compatibility
|
297 |
+
if (is_array($_filters)){
|
298 |
+
$flat_filters = array();
|
299 |
+
foreach($_filters as $a_key => $a_filter_data){
|
300 |
+
$flat_filters[] = "$a_key $a_filter_data";
|
301 |
+
}
|
302 |
+
$_filters = implode('&&&', $flat_filters);
|
303 |
+
}
|
304 |
+
|
305 |
+
// Columns
|
306 |
+
$filters_normalized = wp_slimstat_db::parse_filters($_filters, false);
|
307 |
+
if (!empty($filters_normalized['columns'])){
|
308 |
+
foreach($filters_normalized['columns'] as $a_key => $a_filter){
|
309 |
+
$filtered_url .= "&fs%5B$a_key%5D=".urlencode($a_filter[0].' '.$a_filter[1]);
|
310 |
+
}
|
311 |
+
}
|
312 |
+
|
313 |
+
// Date ranges
|
314 |
+
if (!empty($filters_normalized['date'])){
|
315 |
+
foreach($filters_normalized['date'] as $a_key => $a_filter){
|
316 |
+
$filtered_url .= "&fs%5B$a_key%5D=".urlencode('equals '.$a_filter);
|
317 |
+
}
|
318 |
+
}
|
319 |
+
|
320 |
+
// Misc filters
|
321 |
+
if (!empty($filters_normalized['misc'])){
|
322 |
+
foreach($filters_normalized['misc'] as $a_key => $a_filter){
|
323 |
+
$filtered_url .= "&fs%5B$a_key%5D=".urlencode('equals '.$a_filter);
|
324 |
+
}
|
325 |
+
}
|
326 |
+
|
327 |
+
return $filtered_url;
|
328 |
+
}
|
329 |
+
|
330 |
public static function report_pagination($_id = 'p0', $_count_page_results = 0, $_count_all_results = 0){
|
331 |
$endpoint = min($_count_all_results, wp_slimstat_db::$filters_normalized['misc']['start_from'] + wp_slimstat_db::$filters_normalized['misc']['limit_results']);
|
332 |
$pagination_buttons = '';
|
537 |
$row_details = date_i18n(wp_slimstat_db::$formats['date_time_format'], $results[$i]['dt'], true).$row_details;
|
538 |
}
|
539 |
else{
|
540 |
+
$percentage = ' <span>'.(($_args['total_for_percentage'] > 0)?number_format(sprintf("%01.2f", (100*$results[$i]['counthits']/$_args['total_for_percentage'])), 2, wp_slimstat_db::$formats['decimal'], wp_slimstat_db::$formats['thousand']):0).'%</span>';
|
541 |
$row_details = __('Hits','wp-slimstat').': '.number_format($results[$i]['counthits'], 0, wp_slimstat_db::$formats['decimal'], wp_slimstat_db::$formats['thousand']).$row_details;
|
542 |
}
|
543 |
|
1094 |
<p><?php _e('Avg Posts Per Day', 'wp-slimstat') ?> <span><?php echo number_format($your_content['avg_posts_per_day'], 2, wp_slimstat_db::$formats['decimal'], wp_slimstat_db::$formats['thousand']) ?></span></p><?php
|
1095 |
}
|
1096 |
|
1097 |
+
public static function show_report_wrapper($_report_id = 'p0', $_force_return = false){
|
1098 |
$is_ajax = false;
|
1099 |
if (!empty($_POST['report_id'])){
|
1100 |
// Let's make sure the request is coming from the right place
|
1103 |
$is_ajax = true;
|
1104 |
}
|
1105 |
|
1106 |
+
if (!$_force_return && !$is_ajax && (in_array($_report_id, self::$hidden_reports) || wp_slimstat::$options['async_load'] == 'yes')) return;
|
1107 |
|
1108 |
// Some boxes need extra information
|
1109 |
if (in_array($_report_id, array('slim_p1_03', 'slim_p1_08', 'slim_p1_10', 'slim_p1_13', 'slim_p1_17', 'slim_p2_03', 'slim_p2_04', 'slim_p2_05', 'slim_p2_06', 'slim_p2_18', 'slim_p2_19', 'slim_p2_10', 'slim_p3_02', 'slim_p3_04', 'slim_p3_05'))){
|
admin/wp-slimstat-admin.php
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
class wp_slimstat_admin{
|
4 |
-
|
5 |
-
public static $view_url = '';
|
6 |
public static $config_url = '';
|
7 |
public static $current_tab = 1;
|
8 |
public static $faulty_fields = array();
|
@@ -19,7 +17,8 @@ class wp_slimstat_admin{
|
|
19 |
}
|
20 |
|
21 |
if (wp_slimstat::$options['enable_ads_network'] == 'yes' || wp_slimstat::$options['enable_ads_network'] == 'no') {
|
22 |
-
self::$admin_notice = "
|
|
|
23 |
}
|
24 |
else {
|
25 |
self::$admin_notice = "
|
@@ -79,7 +78,6 @@ class wp_slimstat_admin{
|
|
79 |
|
80 |
// Settings URL
|
81 |
self::$config_url = ((wp_slimstat::$options['use_separate_menu'] == 'no')?'options.php':'admin.php').'?page=wp-slim-config&tab=';
|
82 |
-
self::$view_url = ((wp_slimstat::$options['use_separate_menu'] == 'no')?'options.php':'admin.php').'?page=wp-slim-view-'.self::$current_tab;
|
83 |
|
84 |
// Load language files
|
85 |
load_plugin_textdomain('wp-slimstat', WP_PLUGIN_DIR .'/wp-slimstat/admin/lang', '/wp-slimstat/admin/lang');
|
@@ -137,7 +135,8 @@ class wp_slimstat_admin{
|
|
137 |
// Load the library of functions to generate the reports
|
138 |
if ((!empty($_GET['page']) && strpos($_GET['page'], 'wp-slim-view') !== false) || (!empty($_POST['action']) && $_POST['action'] == 'slimstat_load_report')){
|
139 |
include_once(dirname(__FILE__).'/view/wp-slimstat-reports.php');
|
140 |
-
|
|
|
141 |
}
|
142 |
|
143 |
// AJAX Handlers
|
@@ -590,7 +589,7 @@ class wp_slimstat_admin{
|
|
590 |
$parsed_permalink = $parsed_permalink['path'].(!empty($parsed_permalink['query'])?'?'.$parsed_permalink['query']:'');
|
591 |
wp_slimstat_db::init('resource contains '.$parsed_permalink.'&&&hour equals 0&&&day equals '.date_i18n('d').'&&&month equals '.date_i18n('m').'&&&year equals '.date_i18n('Y').'&&&interval equals -365');
|
592 |
$count = wp_slimstat_db::count_records();
|
593 |
-
echo '<a href="'.
|
594 |
}
|
595 |
// end add_column
|
596 |
|
@@ -616,43 +615,6 @@ class wp_slimstat_admin{
|
|
616 |
|
617 |
return $current;
|
618 |
}
|
619 |
-
|
620 |
-
public static function fs_url($_filters = '', $_view_url = ''){
|
621 |
-
$filtered_url = !empty($_view_url)?$_view_url:self::$view_url;
|
622 |
-
|
623 |
-
// Backward compatibility
|
624 |
-
if (is_array($_filters)){
|
625 |
-
$flat_filters = array();
|
626 |
-
foreach($_filters as $a_key => $a_filter_data){
|
627 |
-
$flat_filters[] = "$a_key $a_filter_data";
|
628 |
-
}
|
629 |
-
$_filters = implode('&&&', $flat_filters);
|
630 |
-
}
|
631 |
-
|
632 |
-
// Columns
|
633 |
-
$filters_normalized = wp_slimstat_db::parse_filters($_filters, false);
|
634 |
-
if (!empty($filters_normalized['columns'])){
|
635 |
-
foreach($filters_normalized['columns'] as $a_key => $a_filter){
|
636 |
-
$filtered_url .= "&fs%5B$a_key%5D=".urlencode($a_filter[0].' '.$a_filter[1]);
|
637 |
-
}
|
638 |
-
}
|
639 |
-
|
640 |
-
// Date ranges
|
641 |
-
if (!empty($filters_normalized['date'])){
|
642 |
-
foreach($filters_normalized['date'] as $a_key => $a_filter){
|
643 |
-
$filtered_url .= "&fs%5B$a_key%5D=".urlencode('equals '.$a_filter);
|
644 |
-
}
|
645 |
-
}
|
646 |
-
|
647 |
-
// Misc filters
|
648 |
-
if (!empty($filters_normalized['misc'])){
|
649 |
-
foreach($filters_normalized['misc'] as $a_key => $a_filter){
|
650 |
-
$filtered_url .= "&fs%5B$a_key%5D=".urlencode('equals '.$a_filter);
|
651 |
-
}
|
652 |
-
}
|
653 |
-
|
654 |
-
return $filtered_url;
|
655 |
-
}
|
656 |
|
657 |
/**
|
658 |
* Displays an alert message
|
@@ -758,6 +720,21 @@ class wp_slimstat_admin{
|
|
758 |
<span class="description"><?php echo $_option_details['long_description'] ?></span>
|
759 |
</td><?php
|
760 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
761 |
case 'text':
|
762 |
case 'integer': ?>
|
763 |
<th scope="row"><label for="<?php echo $_option_name ?>"><?php echo $_option_details['description'] ?></label></th>
|
1 |
<?php
|
2 |
|
3 |
class wp_slimstat_admin{
|
|
|
|
|
4 |
public static $config_url = '';
|
5 |
public static $current_tab = 1;
|
6 |
public static $faulty_fields = array();
|
17 |
}
|
18 |
|
19 |
if (wp_slimstat::$options['enable_ads_network'] == 'yes' || wp_slimstat::$options['enable_ads_network'] == 'no') {
|
20 |
+
// self::$admin_notice = "We are putting the final touches on a new premium add-on to schedule email reports. If you would like to help us test it, please <a href='http://support.getused.to.it/' target='_blank'>contact us</a> to get your FREE copy today! Hurry, this offer is limited to the first 10 users.";
|
21 |
+
self::$admin_notice = "Do you sell tickets online? <a href='http://wordpress.org/plugins/opentickets-community-edition/' target='_blank'>OpenTickets Community Edition</a> is a free WordPress plugin I contribute to. Get your FREE copy today!";
|
22 |
}
|
23 |
else {
|
24 |
self::$admin_notice = "
|
78 |
|
79 |
// Settings URL
|
80 |
self::$config_url = ((wp_slimstat::$options['use_separate_menu'] == 'no')?'options.php':'admin.php').'?page=wp-slim-config&tab=';
|
|
|
81 |
|
82 |
// Load language files
|
83 |
load_plugin_textdomain('wp-slimstat', WP_PLUGIN_DIR .'/wp-slimstat/admin/lang', '/wp-slimstat/admin/lang');
|
135 |
// Load the library of functions to generate the reports
|
136 |
if ((!empty($_GET['page']) && strpos($_GET['page'], 'wp-slim-view') !== false) || (!empty($_POST['action']) && $_POST['action'] == 'slimstat_load_report')){
|
137 |
include_once(dirname(__FILE__).'/view/wp-slimstat-reports.php');
|
138 |
+
$args = array('current_tab' => self::$current_tab);
|
139 |
+
wp_slimstat_reports::init($args);
|
140 |
}
|
141 |
|
142 |
// AJAX Handlers
|
589 |
$parsed_permalink = $parsed_permalink['path'].(!empty($parsed_permalink['query'])?'?'.$parsed_permalink['query']:'');
|
590 |
wp_slimstat_db::init('resource contains '.$parsed_permalink.'&&&hour equals 0&&&day equals '.date_i18n('d').'&&&month equals '.date_i18n('m').'&&&year equals '.date_i18n('Y').'&&&interval equals -365');
|
591 |
$count = wp_slimstat_db::count_records();
|
592 |
+
echo '<a href="'.wp_slimstat_reports::fs_url("resource contains $parsed_permalink&&&day equals ".date_i18n('d').'&&&month equals '.date_i18n('m').'&&&year equals '.date_i18n('Y').'&&&interval equals -365').'">'.$count.'</a>';
|
593 |
}
|
594 |
// end add_column
|
595 |
|
615 |
|
616 |
return $current;
|
617 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
618 |
|
619 |
/**
|
620 |
* Displays an alert message
|
720 |
<span class="description"><?php echo $_option_details['long_description'] ?></span>
|
721 |
</td><?php
|
722 |
break;
|
723 |
+
case 'select': ?>
|
724 |
+
<th scope="row"><label for="<?php echo $_option_name ?>"><?php echo $_option_details['description'] ?></label></th>
|
725 |
+
<td>
|
726 |
+
<span class="block-element">
|
727 |
+
<select <?php echo $is_disabled ?> name="options[<?php echo $_option_name ?>]" id="<?php echo $_option_name ?>"><?php
|
728 |
+
foreach($_option_details['values'] as $a_key => $a_value){
|
729 |
+
$is_selected = (wp_slimstat::$options[$_option_name] == $a_key)?' selected':'';
|
730 |
+
echo "<option$is_selected value='$a_key'>$a_value</option>";
|
731 |
+
}
|
732 |
+
?></select>
|
733 |
+
</span>
|
734 |
+
<span class="description"><?php echo $_option_details['long_description'] ?></span>
|
735 |
+
</td><?php
|
736 |
+
break;
|
737 |
+
|
738 |
case 'text':
|
739 |
case 'integer': ?>
|
740 |
<th scope="row"><label for="<?php echo $_option_name ?>"><?php echo $_option_details['description'] ?></label></th>
|
databases/maxmind.dat
CHANGED
Binary file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: analytics, tracking, reports, analyze, wassup, geolocation, online users, spider, tracker, pageviews, stats, maxmind, statistics, statpress
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.0
|
7 |
-
Stable tag: 3.7
|
8 |
|
9 |
== Description ==
|
10 |
Visit our [website](http://slimstat.getused.to.it/) for more information, or find us on [GitHub](https://github.com/getusedtoit/wp-slimstat).
|
@@ -271,6 +271,12 @@ foreach ($results...`
|
|
271 |
|
272 |
== Changelog ==
|
273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
= 3.7 =
|
275 |
* [New] Japanese localization added (thank you, [h_a_l_f](http://wordpress.org/support/topic/japanese-localization))
|
276 |
* [New] Added support for [SOV Languages](http://en.wikipedia.org/wiki/Subject%E2%80%93object%E2%80%93verb) (thank you, h_a_l_f)
|
4 |
Tags: analytics, tracking, reports, analyze, wassup, geolocation, online users, spider, tracker, pageviews, stats, maxmind, statistics, statpress
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 3.7.1
|
8 |
|
9 |
== Description ==
|
10 |
Visit our [website](http://slimstat.getused.to.it/) for more information, or find us on [GitHub](https://github.com/getusedtoit/wp-slimstat).
|
271 |
|
272 |
== Changelog ==
|
273 |
|
274 |
+
= 3.7.1 =
|
275 |
+
* [Note] Our Reports API (wp-slimstat-reports.php) does not extend wp-slimstat-admin anymore, for extra flexibility in building third-party solutions
|
276 |
+
* [New] Added support for generating email reports
|
277 |
+
* [Update] MaxMind's IP Database has been updated to the latest version (2014-09-04)
|
278 |
+
* [Fix] Some settings could not be turned off, because of the Network Settings functionality (thank you, [LeonardShelby](http://wordpress.org/support/topic/cannot-disable-live-stream))
|
279 |
+
|
280 |
= 3.7 =
|
281 |
* [New] Japanese localization added (thank you, [h_a_l_f](http://wordpress.org/support/topic/japanese-localization))
|
282 |
* [New] Added support for [SOV Languages](http://en.wikipedia.org/wiki/Subject%E2%80%93object%E2%80%93verb) (thank you, h_a_l_f)
|
wp-slimstat.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Slimstat
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
-
Version: 3.7
|
7 |
Author: Camu
|
8 |
Author URI: http://slimstat.getused.to.it/
|
9 |
*/
|
@@ -11,7 +11,7 @@ Author URI: http://slimstat.getused.to.it/
|
|
11 |
if (!empty(wp_slimstat::$options)) return true;
|
12 |
|
13 |
class wp_slimstat{
|
14 |
-
public static $version = '3.7';
|
15 |
public static $options = array();
|
16 |
|
17 |
public static $wpdb = '';
|
@@ -30,7 +30,7 @@ class wp_slimstat{
|
|
30 |
|
31 |
// Load all the settings
|
32 |
self::$options = is_network_admin()?get_site_option('slimstat_options', array()):get_option('slimstat_options', array());
|
33 |
-
self::$options = array_merge(self::init_options(),
|
34 |
|
35 |
// Allow third party tools to edit the options
|
36 |
self::$options = apply_filters('slimstat_init_options', self::$options);
|
@@ -1086,7 +1086,7 @@ class wp_slimstat{
|
|
1086 |
'javascript_mode' => $val_yes,
|
1087 |
'add_posts_column' => $val_no,
|
1088 |
'use_separate_menu' => $val_yes,
|
1089 |
-
'auto_purge' => '120',
|
1090 |
|
1091 |
// Views
|
1092 |
'convert_ip_addresses' => $val_no,
|
@@ -1098,9 +1098,9 @@ class wp_slimstat{
|
|
1098 |
'async_load' => $val_no,
|
1099 |
'use_slimscroll' => $val_yes,
|
1100 |
'expand_details' => $val_no,
|
1101 |
-
'rows_to_show' => '20',
|
1102 |
-
'refresh_interval' => '60',
|
1103 |
-
'number_results_raw_data' => '50',
|
1104 |
'include_outbound_links_right_now' => $val_yes,
|
1105 |
|
1106 |
// Filters
|
@@ -1118,9 +1118,9 @@ class wp_slimstat{
|
|
1118 |
|
1119 |
// Permissions
|
1120 |
'restrict_authors_view' => $val_yes,
|
1121 |
-
'capability_can_view' => 'activate_plugins',
|
1122 |
'can_view' => '',
|
1123 |
-
'capability_can_admin' => 'activate_plugins',
|
1124 |
'can_admin' => '',
|
1125 |
|
1126 |
// Advanced
|
3 |
Plugin Name: WP Slimstat
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
+
Version: 3.7.1
|
7 |
Author: Camu
|
8 |
Author URI: http://slimstat.getused.to.it/
|
9 |
*/
|
11 |
if (!empty(wp_slimstat::$options)) return true;
|
12 |
|
13 |
class wp_slimstat{
|
14 |
+
public static $version = '3.7.1';
|
15 |
public static $options = array();
|
16 |
|
17 |
public static $wpdb = '';
|
30 |
|
31 |
// Load all the settings
|
32 |
self::$options = is_network_admin()?get_site_option('slimstat_options', array()):get_option('slimstat_options', array());
|
33 |
+
self::$options = array_merge(self::init_options(), self::$options);
|
34 |
|
35 |
// Allow third party tools to edit the options
|
36 |
self::$options = apply_filters('slimstat_init_options', self::$options);
|
1086 |
'javascript_mode' => $val_yes,
|
1087 |
'add_posts_column' => $val_no,
|
1088 |
'use_separate_menu' => $val_yes,
|
1089 |
+
'auto_purge' => ($val_yes == 'null')?'0':'120',
|
1090 |
|
1091 |
// Views
|
1092 |
'convert_ip_addresses' => $val_no,
|
1098 |
'async_load' => $val_no,
|
1099 |
'use_slimscroll' => $val_yes,
|
1100 |
'expand_details' => $val_no,
|
1101 |
+
'rows_to_show' => ($val_yes == 'null')?'0':'20',
|
1102 |
+
'refresh_interval' => ($val_yes == 'null')?'0':'60',
|
1103 |
+
'number_results_raw_data' => ($val_yes == 'null')?'0':'50',
|
1104 |
'include_outbound_links_right_now' => $val_yes,
|
1105 |
|
1106 |
// Filters
|
1118 |
|
1119 |
// Permissions
|
1120 |
'restrict_authors_view' => $val_yes,
|
1121 |
+
'capability_can_view' => ($val_yes == 'null')?'':'activate_plugins',
|
1122 |
'can_view' => '',
|
1123 |
+
'capability_can_admin' => ($val_yes == 'null')?'':'activate_plugins',
|
1124 |
'can_admin' => '',
|
1125 |
|
1126 |
// Advanced
|