Changeset 685458
- Timestamp:
- 03/22/2013 03:37:44 AM (13 years ago)
- Location:
- user-security-tools
- Files:
-
- 3 deleted
- 6 edited
- 1 copied
-
list-ms-user-table.php (deleted)
-
readme.txt (deleted)
-
tags/1.1.2 (copied) (copied from user-security-tools/trunk)
-
tags/1.1.2/list-ms-user-table.php (modified) (1 diff)
-
tags/1.1.2/readme.txt (modified) (2 diffs)
-
tags/1.1.2/user-security-tools.php (modified) (5 diffs)
-
trunk/list-ms-user-table.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/user-security-tools.php (modified) (5 diffs)
-
user-security-tools.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
user-security-tools/tags/1.1.2/list-ms-user-table.php
r506483 r685458 224 224 **************************************************************************/ 225 225 function prepare_items() { 226 $per_page = 5; //$this->get_items_per_page('users_network_per_page');226 $per_page = $this->get_items_per_page('users_network_per_page'); 227 227 228 228 $columns = $this->get_columns(); -
user-security-tools/tags/1.1.2/readme.txt
r514667 r685458 2 2 Contributors: ericktedeschi 3 3 Tags: security, user, brute force, password, block, unblock, network install, password policy, password history 4 Requires at least: 3. 2.15 Tested up to: 3. 3.16 Stable tag: 1.1. 14 Requires at least: 3.3 5 Tested up to: 3.5.1 6 Stable tag: 1.1.2 7 7 8 8 Security Tools for user management: stop brute force, password policy, password reset, password history. … … 43 43 = 1.1.1 = 44 44 * BUG: The password policy is not applied when user's password is reset 45 46 = 1.1.2 = 47 * Show the search field on User Security Tools page 48 * The list of the users shows more than fixed 5 items 49 * BUG: When a new user is created, include the 'first' password to the history (bug reported by Jason Buscema) 50 -
user-security-tools/tags/1.1.2/user-security-tools.php
r514667 r685458 4 4 Plugin URI: http://oerick.com/user-security-tools 5 5 Description: Security Tools for user management: stop brute force, password policy, password reset, password history. 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author: Erick Belluci Tedeschi 8 8 Author URI: http://oerick.com … … 590 590 591 591 if ($showListTable) { 592 $usersListTable->prepare_items(); 592 593 ?> 593 594 <div class="wrap"> … … 600 601 <form id="users-filter" method="post"> 601 602 <input type="hidden" name="page" value="<?php echo esc_attr($_REQUEST['page']); ?>" /> 602 <?php $usersListTable->prepare_items(); ?>603 603 <?php $usersListTable->display() ?> 604 604 </form> … … 759 759 public function pluginActivation() { 760 760 global $wpdb; 761 762 // If is an network installation, the plugin only can be activated from 763 // Network Admin Screen 764 if (is_multisite() && !is_network_admin()) { 765 die('In Network install, the plugin must be activated from Network Admin Screen'); 766 } 767 761 768 // TODO: Adds usermeta for all users 762 769 $users = $wpdb->get_results($wpdb->prepare("SELECT ID FROM {$wpdb->users};"), 'ARRAY_A'); … … 791 798 public function addUserDefaultMeta($user_id) { 792 799 $user_id = (int)$user_id; 793 add_user_meta($user_id, 'sust_lastpasswords', array(), true); 800 801 // BUG BY: Jason Buscema - Include the password of the new user in 802 // history 803 804 $user_data = get_user_by('id', $user_id); 805 $sust_lastpasswords[] = array( 806 'date' => date('Y-m-d H:i:s', time()), 807 'hash' => $user_data->user_pass 808 ); 809 810 add_user_meta($user_id, 'sust_lastpasswords', $sust_lastpasswords, true); 794 811 add_user_meta($user_id, 'sust_locked', 0, true); 795 812 add_user_meta($user_id, 'sust_last_login_fail', 0, true); -
user-security-tools/trunk/list-ms-user-table.php
r506483 r685458 224 224 **************************************************************************/ 225 225 function prepare_items() { 226 $per_page = 5; //$this->get_items_per_page('users_network_per_page');226 $per_page = $this->get_items_per_page('users_network_per_page'); 227 227 228 228 $columns = $this->get_columns(); -
user-security-tools/trunk/readme.txt
r514667 r685458 2 2 Contributors: ericktedeschi 3 3 Tags: security, user, brute force, password, block, unblock, network install, password policy, password history 4 Requires at least: 3. 2.15 Tested up to: 3. 3.16 Stable tag: 1.1. 14 Requires at least: 3.3 5 Tested up to: 3.5.1 6 Stable tag: 1.1.2 7 7 8 8 Security Tools for user management: stop brute force, password policy, password reset, password history. … … 43 43 = 1.1.1 = 44 44 * BUG: The password policy is not applied when user's password is reset 45 46 = 1.1.2 = 47 * Show the search field on User Security Tools page 48 * The list of the users shows more than fixed 5 items 49 * BUG: When a new user is created, include the 'first' password to the history (bug reported by Jason Buscema) 50 -
user-security-tools/trunk/user-security-tools.php
r514667 r685458 4 4 Plugin URI: http://oerick.com/user-security-tools 5 5 Description: Security Tools for user management: stop brute force, password policy, password reset, password history. 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author: Erick Belluci Tedeschi 8 8 Author URI: http://oerick.com … … 590 590 591 591 if ($showListTable) { 592 $usersListTable->prepare_items(); 592 593 ?> 593 594 <div class="wrap"> … … 600 601 <form id="users-filter" method="post"> 601 602 <input type="hidden" name="page" value="<?php echo esc_attr($_REQUEST['page']); ?>" /> 602 <?php $usersListTable->prepare_items(); ?>603 603 <?php $usersListTable->display() ?> 604 604 </form> … … 759 759 public function pluginActivation() { 760 760 global $wpdb; 761 762 // If is an network installation, the plugin only can be activated from 763 // Network Admin Screen 764 if (is_multisite() && !is_network_admin()) { 765 die('In Network install, the plugin must be activated from Network Admin Screen'); 766 } 767 761 768 // TODO: Adds usermeta for all users 762 769 $users = $wpdb->get_results($wpdb->prepare("SELECT ID FROM {$wpdb->users};"), 'ARRAY_A'); … … 791 798 public function addUserDefaultMeta($user_id) { 792 799 $user_id = (int)$user_id; 793 add_user_meta($user_id, 'sust_lastpasswords', array(), true); 800 801 // BUG BY: Jason Buscema - Include the password of the new user in 802 // history 803 804 $user_data = get_user_by('id', $user_id); 805 $sust_lastpasswords[] = array( 806 'date' => date('Y-m-d H:i:s', time()), 807 'hash' => $user_data->user_pass 808 ); 809 810 add_user_meta($user_id, 'sust_lastpasswords', $sust_lastpasswords, true); 794 811 add_user_meta($user_id, 'sust_locked', 0, true); 795 812 add_user_meta($user_id, 'sust_last_login_fail', 0, true);
Note: See TracChangeset
for help on using the changeset viewer.