prefix."apt_appearence"; $staff_member = $_REQUEST['staff'] ; $service = $_REQUEST['service'] ; $booking_st = $_REQUEST['booking_st'] ; $apt_time_format = $_REQUEST['apt_time_format'] ; $login_email = $_REQUEST['login_email'] ; //login $login_password = $_REQUEST['login_password'] ; //login $client_email = $_REQUEST['client_email'] ; //registeration $appoint_username = $_REQUEST['appoint_username'] ; $full_name = $_REQUEST['full_name'] ; $client_contact = $_REQUEST['client_contact'] ; $skype_id = $_REQUEST['skype_id'] ; $apt_date = $_REQUEST['apt_date'] ; $first_name = $_REQUEST['first_name'] ; $last_name = $_REQUEST['last_name'] ; $appoint_notes = $_REQUEST['appoint_notes'] ; $client_password = $_REQUEST['client_password'] ; if ( empty( $appoint_username ) ) { $appoint_username = $client_email; } $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

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

Email Does Not Exist, Please Register Your Account.

Thank You

",WF_A_P_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.',WF_A_P_SYSTEM )."

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

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