aaa

ID,’admin_email’,TRUE);
$admin_name = get_post_meta($post->ID,’admin_name’,TRUE);
$email_text = get_post_meta($post->ID,’email_text’,TRUE);
$email_subject = get_post_meta($post->ID,’email_subject’,TRUE);

$location = get_terms(‘location’ ,array(‘pad_counts’=>true,’hide_empty’=>false,’orderby’=>’slug’,’order’=>’ASC’));
$gender = get_terms(‘gender’ ,array(‘pad_counts’=>true,’hide_empty’=>false,’orderby’=>’slug’,’order’=>’ASC’));
$education = get_terms(‘education’ ,array(‘pad_counts’=>true,’hide_empty’=>false,’orderby’=>’slug’,’order’=>’ASC’));
$byte = get_terms(‘byte’ ,array(‘pad_counts’=>true,’hide_empty’=>false,’orderby’=>’slug’,’order’=>’ASC’));
$salary = get_terms(‘salary’ ,array(‘pad_counts’=>true,’hide_empty’=>false,’orderby’=>’slug’,’order’=>’ASC’));

if ( $_REQUEST[“__confirm__”] || $_REQUEST[“__submit__”] ) {
if ( $_REQUEST[“user_name”] == “” ) { $Error[“user_name”] = “お名前が未記入です。”; }
if ( $_REQUEST[“user_password”] == “” ) { $Error[“user_password”] = “パスワードが未記入です。”; }
if ( $_REQUEST[“telephone”] == “” ) { $Error[“telephone”] = “電話番号が未記入です。”; }
if ( $_REQUEST[“email”] == “” ) { $Error[“email”] = “メールアドレスが未記入です。”; }
elseif ( !preg_match(“/^([a-zA-Z0-9\.\-\_]+)@([a-zA-Z0-9\.\-\_]+)$/i”,$_REQUEST[“email”]) ) { $Error[“email”] = “メールアドレスが正しく記入されていません。”; }
else {
$check = get_posts(array(
‘post_type’=>’member’,
‘numberposts’=>-1,
‘meta_query’ => array(array(‘key’=>’email’,’value’=>$_REQUEST[“email”],’compare’=>’IN’)),
‘orderby’=>’post_date’));
if ( sizeof($check) > 0 ) { $Error[“email”] = “このメールアドレスは登録できません。”; } }
if ( empty($Error) ) { $confirm = true; } }

if ( $_REQUEST[“__submit__”] && $confirm ) {

$subject = “=?utf-8?B?”.base64_encode(“【新規会員申込】”).”?=”;
$header = “From: =?iso-2022-jp?B?”.base64_encode(mb_convert_encoding($_POST[“user_name”],”ISO-2022-JP-MS”,”UTF-8″)).”?=<".$_POST['email'].">\r\n”;
$header .= “Content-Type: text/plain; charset=UTF-8\r\n”;
$mail .= “━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n”;
$mail .= “■お名前\n”;
$mail .= “────────────────────────────────────────\n”;
$mail .= $_POST[“user_name”].”\n”;
$mail .= “\n”;
$mail .= “━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n”;
$mail .= “■電話番号\n”;
$mail .= “────────────────────────────────────────\n”;
$mail .= $_POST[“telephone”].”\n”;
$mail .= “\n”;
$mail .= “━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n”;
$mail .= “■メールアドレス\n”;
$mail .= “────────────────────────────────────────\n”;
$mail .= $_POST[“email”].”\n”;
$mail .= “\n”;
$mail .= “\n”;
mail($admin_email,$subject,$mail,$header);

$subject = “=?utf-8?B?”.base64_encode($email_subject).”?=”;
$header = “From: =?utf-8?B?”.base64_encode($admin_name).”?=<".$admin_email.">\r\n”;
if ( $bcc != ” ) { $header .= “Bcc: “.$bcc.”\r\n”; }
$header .= “Content-Type: text/plain; charset=UTF-8\r\n”;
if ( $_POST[“user_name”] ) { $mail = $_POST[“user_name”].”様\n\n”.$email_text; } else { $mail = $email_text; }
mail($_POST[‘email’],$subject,str_replace(“\r\n”,”\n”,$mail),$header);

$post_id = wp_insert_post(array(‘post_title’ =>$_REQUEST[“user_name”],’post_type’ => ‘member’,’post_status’ => ‘publish’,’post_author’ => 1),$wp_errer);
$wpdb->update($wpdb->posts,array(‘post_name’=>$post_id),array(‘ID’=>$post_id),array(‘%s’),array(‘%d’));
add_post_meta($post_id,’password’,crypt($_REQUEST[“user_password”]),true);
add_post_meta($post_id,’telephone’,$_REQUEST[“telephone”],true);
add_post_meta($post_id,’email’,$_REQUEST[“email”],true); }
?>

新規会員登録


新規会員登録、ありがとうございました。
メールを送信しておりますので、内容をご確認ください。

お名前*
” />
メールアドレス*
” />
電話番号*
” />
パスワード*
” />

お名前* ” class=”input-error” />

メールアドレス* ” class=”input-error” />

電話番号* ” class=”input-error” />

パスワード* ” class=”input-error” />

  • Copyright ©Re-circledge,Inc. all right reserved.