prefix . "apt_appearence"; $staff_member = sanitize_text_field( $_REQUEST['staff'] ); $service = sanitize_text_field( $_REQUEST['service'] ); $booking_st = sanitize_text_field( $_REQUEST['booking_st'] ); $apt_time_format = sanitize_text_field( $_REQUEST['apt_time_format'] ); $login_email = sanitize_text_field( $_REQUEST['login_email'] ); /* login */ $login_password = sanitize_text_field( $_REQUEST['login_password'] ); /* login */ $client_email = sanitize_text_field( $_REQUEST['client_email'] ); /* registeration */ $appoint_username = sanitize_text_field( $_REQUEST['appoint_username'] ); $full_name = sanitize_text_field( $_REQUEST['full_name'] ); $client_contact = sanitize_text_field( $_REQUEST['client_contact'] ); $skype_id = sanitize_text_field( $_REQUEST['skype_id'] ); $apt_date = sanitize_text_field( $_REQUEST['apt_date'] ); $first_name = sanitize_text_field( $_REQUEST['first_name'] ); $last_name = sanitize_text_field( $_REQUEST['last_name'] ); $appoint_notes = sanitize_text_field( $_REQUEST['appoint_notes'] ); $client_password = sanitize_text_field( $_REQUEST['client_password'] ); $date_format = get_option( 'date_format' ); $appt_date_format = date( $date_format, strtotime( $apt_date ) ); $time_format = get_option( 'time_format' ); $temp_time_slot_format = strtotime( $booking_st ); $time_slot_format = date( $time_format, $temp_time_slot_format ); /* LOGIN ACCOUNT */ if ( isset( $_REQUEST['login_email'] ) ) { $client = get_user_by( 'email', $login_email ); if ( ! empty( $client ) ) { $user_password = $client->user_pass; require_once( ABSPATH . WPINC . '/class-phpass.php' ); $wp_hasher = new PasswordHash( 8, true ); if ( $wp_hasher->CheckPassword( $login_password, $user_password ) ) { ?>

    " . $confirm_editor_content . ""; ?>

You have entered invalid Password, Please Try Again.

Thank You

", WL_ABS_SYSTEM ); ?>
" . $detail_editor_content . ""; ?>

Email Does Not Exist, Please Register Your Account.

Thank You

", WL_ABS_SYSTEM ); ?>
" . $detail_editor_content . ""; ?>
insert( $wpdb->prefix . 'apt_clients', array( 'first_name' => $first_name, 'last_name' => $last_name, 'phone' => $client_contact, 'skype_id' => $skype_id, 'email' => $client_email, 'notes' => $appoint_notes, ) ); $user_data = array( 'first_name' => $first_name, 'last_name' => $last_name, 'user_pass' => $client_password, 'user_email' => $client_email, 'user_login' => $client_email, 'role' => 'subscriber' // Use default role or another role, e.g. 'editor' ); $user_id = wp_insert_user( $user_data ); add_action( 'admin_init', 'wp_insert_user' ); ?>

Service Detail

User Detail

    " . $confirm_editor_content . ""; ?>

" . __( 'The Email You Entered is already registered with us, Please Login Your Account.', WL_ABS_SYSTEM ) . "

" . __( 'Thank You', WL_ABS_SYSTEM ) . "

"; ?>
" . $detail_editor_content . ""; ?>