関数
LoginWithAmazon::executeLogin( string $email )
Populates $_SESSION['usces_member']
with login data
パラメータ パラメータ
(文字列) (必須)
ファイル: src/API/LoginWithAmazon.php
public function executeLogin($email) { global $usces, $wpdb; $member_table = $wpdb->prefix . 'usces_member'; $query = $wpdb->prepare("SELECT * FROM $member_table WHERE mem_email = %s", $email); $member = $wpdb->get_row($query, ARRAY_A); $_SESSION['usces_member']['ID'] = $member['ID']; $_SESSION['usces_member']['mailaddress1'] = $member['mem_email']; $_SESSION['usces_member']['mailaddress2'] = $member['mem_email']; $_SESSION['usces_member']['point'] = $member['mem_point']; $_SESSION['usces_member']['name1'] = $member['mem_name1']; $_SESSION['usces_member']['name2'] = $member['mem_name2']; $_SESSION['usces_member']['name3'] = $member['mem_name3']; $_SESSION['usces_member']['name4'] = $member['mem_name4']; $_SESSION['usces_member']['zipcode'] = $member['mem_zip']; $_SESSION['usces_member']['pref'] = $member['mem_pref']; $_SESSION['usces_member']['address1'] = $member['mem_address1']; $_SESSION['usces_member']['address2'] = $member['mem_address2']; $_SESSION['usces_member']['address3'] = $member['mem_address3']; $_SESSION['usces_member']['tel'] = $member['mem_tel']; $_SESSION['usces_member']['fax'] = $member['mem_fax']; $_SESSION['usces_member']['delivery_flag'] = $member['mem_delivery_flag']; $_SESSION['usces_member']['delivery'] = !empty($member['mem_delivery']) ? unserialize($member['mem_delivery']) : ''; $_SESSION['usces_member']['registered'] = $member['mem_registered']; $_SESSION['usces_member']['nicename'] = $member['mem_nicename']; $_SESSION['usces_member']['country'] = $usces->get_member_meta_value('customer_country', $member['ID']); $_SESSION['usces_member']['status'] = $member['mem_status']; $usces->set_session_custom_member($member['ID']); $usces->get_current_member(); }