ID; ?>

Please enter your information in the form below.

Phone Number
(with Country Code)

Country

$count ) { if ( $role == "administrator" ) { $id = $count; } } global $current_user; $current_user = wp_get_current_user(); $id = $current_user->ID; //insert uid in users table global $wpdb; $table = $wpdb->prefix."2stepauth_users"; $data['userid'] = $id; $wpdb->insert( $table,$data ); update_option( '2stepauth_email_'.$id, $_POST['email'] ); update_option( '2stepauth_newphone_number_'.$id, $_POST['phone'] ); update_option( '2stepauth_newuser_'.$id, $_POST['sguser'] ); update_option( '2stepauth_newpass_'.$id, $_POST['sgpass'] ); update_option( '2stepauth_newphone_'.$id, 1 ); // Disable Email Authentication??? if ( $_POST['emailver'] != "on" ) { update_option( '2stepauth_emailverify_'.$id, 1 ); } else{ update_option( '2stepauth_emailverify_'.$id, 0 ); } // Get gateway+country information if ( $_POST['select1'] == "tm" ) { update_option( '2stepauth_newgateway_'.$id, 'tm' ); } if ( $_POST['select1'] == "sg" ) { update_option( '2stepauth_newgateway_'.$id, 'sg' ); } if ( $_POST['select'] == "india" ) { update_option( '2stepauth_newcountry_'.$id, 'india' ); } if ( $_POST['select'] == "other" ) { update_option( '2stepauth_newcountry_'.$id, 'other' ); } //user roles if ( $_POST['editorcheck'] == "on" ) { update_option('2stepauth_editor_'.$id,1); } else{ update_option('2stepauth_editor_'.$id,0); } if($_POST['authorcheck']=="on"){ update_option('2stepauth_author_'.$id,1); } else{ update_option('2stepauth_author_'.$id,0); } if($_POST['contricheck']=="on"){ update_option('2stepauth_contri_'.$id,1); } else{ update_option('2stepauth_contri_'.$id,0); } if($_POST['subcheck']=="on"){ update_option('2stepauth_sub_'.$id,1); } else{ update_option('2stepauth_sub_'.$id,0); } $url1 = admin_url( 'options-general.php?page=2stepauth&step=gui1' ); echo "

". __( "Email updated. Please continue to Step 2 to validate Phone number.", '2step_auth' ) . "

"; ?>

". __( "Please enter a valid Email Address", '2step_auth' ) . "

"; } } } else { echo "

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

"; } } ?>

disabled type="checkbox" name="disablecheck" />

disabled name="submit1" />

". __( "2StepAuth Disabled for your Account. To re-enable, complete the 3 steps", '2step_auth' ) . "

"; } } ?>