Changeset 752231
- Timestamp:
- 08/06/2013 11:21:48 AM (13 years ago)
- Location:
- sexy-login/trunk
- Files:
-
- 3 edited
-
inc/activation.php (modified) (1 diff)
-
inc/class-sexy-login-attempts.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sexy-login/trunk/inc/activation.php
r697763 r752231 38 38 global $wpdb; 39 39 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 ); 49 48 50 }51 52 49 } 53 50 ?> -
sexy-login/trunk/inc/class-sexy-login-attempts.php
r671843 r752231 56 56 global $wpdb; 57 57 58 $query = ''; 59 $format = ''; 60 58 61 if ( $all ) { 59 62 $query = 'DELETE FROM ' . SL_LOGIN_TABLE . ' WHERE DATE_ADD( last_date , INTERVAL %d MINUTE ) < NOW()'; -
sexy-login/trunk/readme.txt
r752225 r752231 72 72 * Updated blockUI library. 73 73 * Fixed problems when user tries to Log on. 74 * Fixed a few minor bugs. 74 75 75 76 = 2.4 =
Note: See TracChangeset
for help on using the changeset viewer.