Simple Login Log - Version 0.9.6

Version Description

Download this release

Release Info

Developer maxchirkov
Plugin Icon wp plugin Simple Login Log
Version 0.9.6
Comparing to
See all releases

Code changes from version 0.9.5 to 0.9.6

languages/sll-de_DE.mo ADDED
Binary file
languages/sll-ru_RU.mo ADDED
Binary file
languages/sll-ua_UA.mo ADDED
Binary file
readme.txt CHANGED
@@ -3,20 +3,20 @@ Contributors: Max Chirkov
3
  Donate link: http://www.ibsteam.net/donate
4
  Tags: login, log, users
5
  Requires at least: 3.0
6
- Tested up to: 3.5
7
- Stable tag: 0.9.5
8
 
9
  This plugin keeps a log of WordPress user logins. Offers user and date filtering, and export features.
10
 
11
  == Description ==
12
 
13
- Simple log of user logins. Tracks username, time of login, IP address and browser user agent.
14
 
15
  [Demo Video](http://screenr.com/kfEs "Demo Video")
16
 
17
  **Features include:**
18
 
19
- 1. ability to filter by username, successful/failed logins, month and year;
20
  2. export into CSV file;
21
  3. log auto-truncation;
22
  4. option to record failed login attempts.
@@ -24,6 +24,9 @@ Simple log of user logins. Tracks username, time of login, IP address and browse
24
  **Translations:**
25
 
26
  - Persian [fa_IR] by [MohammadHadi Nasiri](http://taktaweb.ir/)
 
 
 
27
 
28
  * Author: Max Chirkov
29
  * Author URI: [http://simplerealtytheme.com/](http://simplerealtytheme.com/ "Real Estate Themes & Plugins for WordPress")
@@ -32,7 +35,7 @@ Simple log of user logins. Tracks username, time of login, IP address and browse
32
  == Installation ==
33
 
34
  1. Install and activate like any other basic plugin.
35
- 2. If you wish to set log trancation or opt-in to record failed login attempts, go to Settings => General. Scroll down to Simple Login Log.
36
  3. To view login log, go to Users => Login Log. You can export the log to CSV file form the same page.
37
 
38
  Screen Options are available at the top of the Login Log page. Click on the *Secreen Options* tab to expand the options section. You'll be able to change the number of results per page as well as hide/display table columns.
@@ -44,6 +47,11 @@ Screen Options are available at the top of the Login Log page. Click on the *Sec
44
 
45
  == Changelog ==
46
 
 
 
 
 
 
47
  **Version 0.9.5**
48
 
49
  - Fixed: filtered log results weren't getting exported correctly.
@@ -121,4 +129,4 @@ function link_location_by_ip($item){
121
 
122
  = Translation =
123
 
124
- Currently there are no translations available. If you would like to contribute, the POT file is available in the *languages* folder. Translation file name convention is *sll-{locale}.mo*, where {locale} is the locale of your language. Fore example, Russian file name would be *sll-ru_RU.po*.
3
  Donate link: http://www.ibsteam.net/donate
4
  Tags: login, log, users
5
  Requires at least: 3.0
6
+ Tested up to: 3.5.1
7
+ Stable tag: 0.9.6
8
 
9
  This plugin keeps a log of WordPress user logins. Offers user and date filtering, and export features.
10
 
11
  == Description ==
12
 
13
+ Simple log of user logins. Tracks user name, time of login, IP address and browser user agent.
14
 
15
  [Demo Video](http://screenr.com/kfEs "Demo Video")
16
 
17
  **Features include:**
18
 
19
+ 1. ability to filter by user name, successful/failed logins, month and year;
20
  2. export into CSV file;
21
  3. log auto-truncation;
22
  4. option to record failed login attempts.
24
  **Translations:**
25
 
26
  - Persian [fa_IR] by [MohammadHadi Nasiri](http://taktaweb.ir/)
27
+ - German [de_DE] by Philipp Moore
28
+ - Russian [ru_RU]
29
+ - Ukrainian [ua_UA]
30
 
31
  * Author: Max Chirkov
32
  * Author URI: [http://simplerealtytheme.com/](http://simplerealtytheme.com/ "Real Estate Themes & Plugins for WordPress")
35
  == Installation ==
36
 
37
  1. Install and activate like any other basic plugin.
38
+ 2. If you wish to set log truncation or opt-in to record failed login attempts, go to Settings => General. Scroll down to Simple Login Log.
39
  3. To view login log, go to Users => Login Log. You can export the log to CSV file form the same page.
40
 
41
  Screen Options are available at the top of the Login Log page. Click on the *Secreen Options* tab to expand the options section. You'll be able to change the number of results per page as well as hide/display table columns.
47
 
48
  == Changelog ==
49
 
50
+ **Version 0.9.6**
51
+
52
+ - Bug Fix: records weren't truncated in multi-site setup.
53
+ - Added German, Russian and Ukrainian translations.
54
+
55
  **Version 0.9.5**
56
 
57
  - Fixed: filtered log results weren't getting exported correctly.
129
 
130
  = Translation =
131
 
132
+ If you would like to contribute, the POT file is available in the *languages* folder. Translation file name convention is *sll-{locale}.mo*, where {locale} is the locale of your language. Fore example, Russian file name would be *sll-ru_RU.po*.
simple-login-log.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://simplerealtytheme.com
5
  Description: This plugin keeps a log of WordPress user logins. Offers user filtering and export features.
6
  Author: Max Chirkov
7
- Version: 0.9.5
8
  Author URI: http://SimpleRealtyTheme.com
9
  */
10
 
@@ -202,10 +202,8 @@ if( !class_exists( 'SimpleLoginLog' ) )
202
  $opt = get_option('simple_login_log');
203
  $log_duration = (int)$opt['log_duration'];
204
 
205
- $table = $wpdb->prefix . 'simple_login_log';
206
-
207
  if( 0 < $log_duration ){
208
- $sql = $wpdb->prepare( "DELETE FROM {$table} WHERE time < DATE_SUB(CURDATE(),INTERVAL %d DAY)", $log_duration);
209
  $wpdb->query($sql);
210
  }
211
 
@@ -723,7 +721,7 @@ class SLL_List_Table extends WP_List_Table
723
  return ( is_object($user_info) ) ? $user_info->first_name . " " . $user_info->last_name : false;
724
  case 'login_result':
725
  if ( '' == $item[$column_name]) return '';
726
- return ( '1' == $item[$column_name] ) ? $this->data_labels['Successful'] : '<div class="login-failed">' . $this->data_labels['Failed'] . '</div>';
727
  case 'user_role':
728
  if( !$item['uid'] )
729
  return;
4
  Plugin URI: http://simplerealtytheme.com
5
  Description: This plugin keeps a log of WordPress user logins. Offers user filtering and export features.
6
  Author: Max Chirkov
7
+ Version: 0.9.6
8
  Author URI: http://SimpleRealtyTheme.com
9
  */
10
 
202
  $opt = get_option('simple_login_log');
203
  $log_duration = (int)$opt['log_duration'];
204
 
 
 
205
  if( 0 < $log_duration ){
206
+ $sql = $wpdb->prepare( "DELETE FROM {$this->table} WHERE time < DATE_SUB(CURDATE(),INTERVAL %d DAY)", $log_duration);
207
  $wpdb->query($sql);
208
  }
209
 
721
  return ( is_object($user_info) ) ? $user_info->first_name . " " . $user_info->last_name : false;
722
  case 'login_result':
723
  if ( '' == $item[$column_name]) return '';
724
+ return ( '1' == $item[$column_name] ) ? __($this->data_labels['Successful'], 'sll') : '<div class="login-failed">' . __($this->data_labels['Failed'], 'sll') . '</div>';
725
  case 'user_role':
726
  if( !$item['uid'] )
727
  return;