Plugin Directory

Changeset 752231


Ignore:
Timestamp:
08/06/2013 11:21:48 AM (13 years ago)
Author:
OptimalDevs
Message:

Fixed a few minor bugs

Location:
sexy-login/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sexy-login/trunk/inc/activation.php

    r697763 r752231  
    3838    global $wpdb;
    3939   
    40     if( $wpdb->get_var( 'SHOW TABLES LIKE "' . SL_LOGIN_TABLE . '"' ) != SL_LOGIN_TABLE ) {
    41    
    42         $create_table   = 'CREATE TABLE ' . SL_LOGIN_TABLE . ' (
    43             ip varchar(255) NOT NULL,
    44             last_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    45             login_attempts tinyint DEFAULT 1,
    46             PRIMARY KEY  (ip)
    47         );';
    48         $wpdb->query( $create_table );
     40    $wpdb->query( '
     41        CREATE TABLE IF NOT EXISTS ' . SL_LOGIN_TABLE . ' (
     42        ip varchar(255) NOT NULL,
     43        last_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
     44        login_attempts tinyint DEFAULT 1,
     45        PRIMARY KEY  (ip)
     46        );'
     47    );
    4948       
    50     }
    51    
    5249}
    5350?>
  • sexy-login/trunk/inc/class-sexy-login-attempts.php

    r671843 r752231  
    5656        global $wpdb;
    5757       
     58        $query  = '';
     59        $format = '';
     60       
    5861        if ( $all ) {
    5962            $query = 'DELETE FROM ' . SL_LOGIN_TABLE . ' WHERE DATE_ADD( last_date , INTERVAL %d MINUTE ) < NOW()';
  • sexy-login/trunk/readme.txt

    r752225 r752231  
    7272* Updated blockUI library.
    7373* Fixed problems when user tries to Log on.
     74* Fixed a few minor bugs.
    7475
    7576= 2.4 =
Note: See TracChangeset for help on using the changeset viewer.