Plugin Directory

Changeset 685458


Ignore:
Timestamp:
03/22/2013 03:37:44 AM (13 years ago)
Author:
ericktedeschi
Message:

corrigindo commit

Location:
user-security-tools
Files:
3 deleted
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • user-security-tools/tags/1.1.2/list-ms-user-table.php

    r506483 r685458  
    224224     **************************************************************************/
    225225    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');
    227227
    228228        $columns = $this->get_columns();
  • user-security-tools/tags/1.1.2/readme.txt

    r514667 r685458  
    22Contributors: ericktedeschi
    33Tags: security, user, brute force, password, block, unblock, network install, password policy, password history
    4 Requires at least: 3.2.1
    5 Tested up to: 3.3.1
    6 Stable tag: 1.1.1
     4Requires at least: 3.3
     5Tested up to: 3.5.1
     6Stable tag: 1.1.2
    77
    88Security Tools for user management: stop brute force, password policy, password reset, password history.
     
    4343= 1.1.1 =
    4444* 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  
    44Plugin URI: http://oerick.com/user-security-tools
    55Description: Security Tools for user management: stop brute force, password policy, password reset, password history.
    6 Version: 1.1.1
     6Version: 1.1.2
    77Author: Erick Belluci Tedeschi
    88Author URI: http://oerick.com
     
    590590
    591591        if ($showListTable) {
     592        $usersListTable->prepare_items();
    592593?>
    593594            <div class="wrap">
     
    600601                <form id="users-filter" method="post">
    601602                    <input type="hidden" name="page" value="<?php echo esc_attr($_REQUEST['page']); ?>" />
    602                     <?php $usersListTable->prepare_items(); ?>
    603603                    <?php $usersListTable->display() ?>
    604604                </form>
     
    759759    public function pluginActivation() {
    760760        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
    761768        // TODO: Adds usermeta for all users
    762769        $users = $wpdb->get_results($wpdb->prepare("SELECT ID FROM {$wpdb->users};"), 'ARRAY_A');
     
    791798    public function addUserDefaultMeta($user_id) {
    792799        $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);
    794811        add_user_meta($user_id, 'sust_locked', 0, true);
    795812        add_user_meta($user_id, 'sust_last_login_fail', 0, true);
  • user-security-tools/trunk/list-ms-user-table.php

    r506483 r685458  
    224224     **************************************************************************/
    225225    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');
    227227
    228228        $columns = $this->get_columns();
  • user-security-tools/trunk/readme.txt

    r514667 r685458  
    22Contributors: ericktedeschi
    33Tags: security, user, brute force, password, block, unblock, network install, password policy, password history
    4 Requires at least: 3.2.1
    5 Tested up to: 3.3.1
    6 Stable tag: 1.1.1
     4Requires at least: 3.3
     5Tested up to: 3.5.1
     6Stable tag: 1.1.2
    77
    88Security Tools for user management: stop brute force, password policy, password reset, password history.
     
    4343= 1.1.1 =
    4444* 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  
    44Plugin URI: http://oerick.com/user-security-tools
    55Description: Security Tools for user management: stop brute force, password policy, password reset, password history.
    6 Version: 1.1.1
     6Version: 1.1.2
    77Author: Erick Belluci Tedeschi
    88Author URI: http://oerick.com
     
    590590
    591591        if ($showListTable) {
     592        $usersListTable->prepare_items();
    592593?>
    593594            <div class="wrap">
     
    600601                <form id="users-filter" method="post">
    601602                    <input type="hidden" name="page" value="<?php echo esc_attr($_REQUEST['page']); ?>" />
    602                     <?php $usersListTable->prepare_items(); ?>
    603603                    <?php $usersListTable->display() ?>
    604604                </form>
     
    759759    public function pluginActivation() {
    760760        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
    761768        // TODO: Adds usermeta for all users
    762769        $users = $wpdb->get_results($wpdb->prepare("SELECT ID FROM {$wpdb->users};"), 'ARRAY_A');
     
    791798    public function addUserDefaultMeta($user_id) {
    792799        $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);
    794811        add_user_meta($user_id, 'sust_locked', 0, true);
    795812        add_user_meta($user_id, 'sust_last_login_fail', 0, true);
Note: See TracChangeset for help on using the changeset viewer.