Version Description
Download this release
Release Info
Developer | maxchirkov |
Plugin | Simple Login Log |
Version | 1.0 |
Comparing to | |
See all releases |
Code changes from version 0.9.6 to 1.0
- readme.txt +7 -3
- simple-login-log.php +19 -19
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Plugin Name ===
|
2 |
-
Contributors:
|
3 |
Donate link: http://www.ibsteam.net/donate
|
4 |
Tags: login, log, users
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 0
|
8 |
|
9 |
This plugin keeps a log of WordPress user logins. Offers user and date filtering, and export features.
|
10 |
|
@@ -47,6 +47,10 @@ Screen Options are available at the top of the Login Log page. Click on the *Sec
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
|
|
|
|
|
|
|
|
50 |
**Version 0.9.6**
|
51 |
|
52 |
- Bug Fix: records weren't truncated in multi-site setup.
|
1 |
=== Plugin Name ===
|
2 |
+
Contributors: maxchirkov
|
3 |
Donate link: http://www.ibsteam.net/donate
|
4 |
Tags: login, log, users
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 3.8
|
7 |
+
Stable tag: 1.0
|
8 |
|
9 |
This plugin keeps a log of WordPress user logins. Offers user and date filtering, and export features.
|
10 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
**Version 1.0**
|
51 |
+
|
52 |
+
- WP 3.8 compatibility update.
|
53 |
+
|
54 |
**Version 0.9.6**
|
55 |
|
56 |
- Bug Fix: records weren't truncated in multi-site setup.
|
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
|
8 |
Author URI: http://SimpleRealtyTheme.com
|
9 |
*/
|
10 |
|
@@ -45,28 +45,28 @@ if( !class_exists( 'SimpleLoginLog' ) )
|
|
45 |
|
46 |
|
47 |
|
48 |
-
add_action( 'admin_menu', array(
|
49 |
-
add_action('admin_init', array(
|
50 |
-
add_action('admin_head', array(
|
51 |
|
52 |
//check if db needs to be upgraded after plugin update was completed
|
53 |
-
add_action('plugins_loaded', array(
|
54 |
|
55 |
//Init login actions
|
56 |
-
add_action( 'init', array(
|
57 |
|
58 |
//Init CSV Export
|
59 |
-
add_action('admin_init', array(
|
60 |
|
61 |
//Style the log table
|
62 |
-
add_action( 'admin_head', array(
|
63 |
|
64 |
-
//Initialize scheduled events
|
65 |
-
add_action( 'wp', array(
|
66 |
-
add_action('truncate_sll', array(
|
67 |
|
68 |
//Load Locale
|
69 |
-
add_action('plugins_loaded', array(
|
70 |
|
71 |
//For translation purposes
|
72 |
$this->data_labels = array(
|
@@ -87,7 +87,7 @@ if( !class_exists( 'SimpleLoginLog' ) )
|
|
87 |
);
|
88 |
|
89 |
//Deactivation hook
|
90 |
-
register_deactivation_hook(__FILE__, array(
|
91 |
|
92 |
}
|
93 |
|
@@ -144,11 +144,11 @@ if( !class_exists( 'SimpleLoginLog' ) )
|
|
144 |
//condition to check if "log failed attemts" option is selected
|
145 |
|
146 |
//Action on successfull login
|
147 |
-
add_action( 'wp_login', array(
|
148 |
|
149 |
//Action on failed login
|
150 |
if( isset($this->opt['failed_attempts']) ){
|
151 |
-
add_action( 'wp_login_failed', array(
|
152 |
}
|
153 |
|
154 |
}
|
@@ -337,9 +337,9 @@ if( !class_exists( 'SimpleLoginLog' ) )
|
|
337 |
//Initializing Settings
|
338 |
function settings_api_init()
|
339 |
{
|
340 |
-
add_settings_section('simple_login_log', __('Simple Login Log', 'sll'), array(
|
341 |
-
add_settings_field('field_log_duration', __('Truncate Log Entries', 'sll'), array(
|
342 |
-
add_settings_field('field_log_failed_attempts', __('Log Failed Attempts', 'sll'), array(
|
343 |
register_setting( 'general', 'simple_login_log' );
|
344 |
|
345 |
}
|
@@ -347,7 +347,7 @@ if( !class_exists( 'SimpleLoginLog' ) )
|
|
347 |
|
348 |
function sll_admin_menu()
|
349 |
{
|
350 |
-
add_submenu_page( 'users.php', __('Simple Login Log', 'sll'), __('Login Log', 'sll'), 'list_users', 'login_log', array(
|
351 |
}
|
352 |
|
353 |
|
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: 1.0
|
8 |
Author URI: http://SimpleRealtyTheme.com
|
9 |
*/
|
10 |
|
45 |
|
46 |
|
47 |
|
48 |
+
add_action( 'admin_menu', array($this, 'sll_admin_menu') );
|
49 |
+
add_action('admin_init', array($this, 'settings_api_init') );
|
50 |
+
add_action('admin_head', array($this, 'screen_options') );
|
51 |
|
52 |
//check if db needs to be upgraded after plugin update was completed
|
53 |
+
add_action('plugins_loaded', array($this, 'update_db_check') );
|
54 |
|
55 |
//Init login actions
|
56 |
+
add_action( 'init', array($this, 'init_login_actions') );
|
57 |
|
58 |
//Init CSV Export
|
59 |
+
add_action('admin_init', array($this, 'init_csv_export') );
|
60 |
|
61 |
//Style the log table
|
62 |
+
add_action( 'admin_head', array($this, 'admin_header') );
|
63 |
|
64 |
+
//Initialize scheduled events (when some one visits site in front-end)
|
65 |
+
add_action( 'wp', array($this, 'init_scheduled_events') );
|
66 |
+
add_action('truncate_sll', array($this, 'cron') );
|
67 |
|
68 |
//Load Locale
|
69 |
+
add_action('plugins_loaded', array($this, 'load_locale'), 10 );
|
70 |
|
71 |
//For translation purposes
|
72 |
$this->data_labels = array(
|
87 |
);
|
88 |
|
89 |
//Deactivation hook
|
90 |
+
register_deactivation_hook(__FILE__, array($this, 'deactivation') );
|
91 |
|
92 |
}
|
93 |
|
144 |
//condition to check if "log failed attemts" option is selected
|
145 |
|
146 |
//Action on successfull login
|
147 |
+
add_action( 'wp_login', array($this, 'login_success') );
|
148 |
|
149 |
//Action on failed login
|
150 |
if( isset($this->opt['failed_attempts']) ){
|
151 |
+
add_action( 'wp_login_failed', array($this, 'login_failed') );
|
152 |
}
|
153 |
|
154 |
}
|
337 |
//Initializing Settings
|
338 |
function settings_api_init()
|
339 |
{
|
340 |
+
add_settings_section('simple_login_log', __('Simple Login Log', 'sll'), array($this, 'sll_settings'), 'general');
|
341 |
+
add_settings_field('field_log_duration', __('Truncate Log Entries', 'sll'), array($this, 'field_log_duration'), 'general', 'simple_login_log');
|
342 |
+
add_settings_field('field_log_failed_attempts', __('Log Failed Attempts', 'sll'), array($this, 'field_log_failed_attempts'), 'general', 'simple_login_log');
|
343 |
register_setting( 'general', 'simple_login_log' );
|
344 |
|
345 |
}
|
347 |
|
348 |
function sll_admin_menu()
|
349 |
{
|
350 |
+
add_submenu_page( 'users.php', __('Simple Login Log', 'sll'), __('Login Log', 'sll'), 'list_users', 'login_log', array($this, 'log_manager') );
|
351 |
}
|
352 |
|
353 |
|