prefix."backup"; global $current_user; $current_user = wp_get_current_user(); $uid = $current_user->ID; ?>

If mobile phone is not with you or say you have lost your mobile phone, use these Backup Codes to gain access to your Wordpress.
Make sure you print or save these Backup codes at a safe location.


Backup Codes:
prefix."backup"; $return = $wpdb->get_results("Select backup from ".$table." where userid=".$uid); foreach ( $return as $r ) { $codes[] = $r->backup; } ?>

". __( "You do not have sufficient privilege to access this resource", '2step_auth' ) . "

"; } } if ( $_POST['generate'] ) { // allow only if user is administrator if ( current_user_can ( 'administrator' ) ) { update_option( '2stepauth_generate_'.$uid, 1 ); require_once plugin_dir_path(__FILE__) . 'random.php'; //insert uid in users table global $wpdb; $table = $wpdb->prefix . "2stepauth_users"; $data['userid'] = $uid; $wpdb->insert($table,$data); update_option( '2stepauth_completed_'.$uid, 1 ); update_option( '2stepauth_lowbackup_'.$uid, 0 ); update_option( '2stepauth_validated_'.$uid, 1 ); update_option( '2stepauth_elbackup_'.$uid, 0 ); for ( $i = 0; $i < 7 ; $i++ ) { if ( $i = 0 ) { $code = send111(); $codes[0] = $code*11; } if ( $i = 1 ) { $code = send111(); $codes[1] = $code*13; } if ( $i = 2 ) { $code = send111(); $codes[2] = $code*17; } if ( $i = 3 ) { $code = send111(); $codes[3] = $code*19; } if ( $i = 4 ) { $code = send111(); $codes[4] = $code*15; } if ( $i = 5 ) { $code = send111(); $codes[5] = $code*18; } if ( $i = 6 ) { $code = send111(); $codes[6] = $code*21; } global $wpdb; $table = $wpdb->prefix."backup"; $wpdb->query("Delete from $table where userid=".$uid); for ( $i = 1 ; $i < 7 ; $i++) { $data['userid'] = $uid; $data['backup'] = $codes[$i]; $wpdb->insert($table,$data); } } ?>

". __( "Backup Codes saved. 2stepAuth is now ready!!!", '2step_auth' ) . "

"; } else { echo "

". __( "You do not have sufficient privilege to access this resource", '2step_auth' ) . "

"; } } ?>