登録メールアドレス宛に、ご登録確認の返信とプレゼント壁紙を
送信致しました。

※ご登録されたメールアドレスによっては、確認メールが
 迷惑メールフォルダ等に格納されてしまう可能性があります。
 ご確認下さい。 "; //最後の場所で表示する文字 $ret_url = "http://www.otomate.jp/hanaoni/"; //最後の「戻る」ボタンのURL //メールのfrom $from = "ideaf@ideaf.co.jp"; //メールのサブジェクト $subject = "【オトメイト】バナーキャンペーン登録ありがとうございます"; $ret_url = "http://www.otomate.jp/hanaoni/"; //最後の「戻る」ボタンのURL //メールメッセージ(NAME がハンドルネームに置き換えられます。) $message = ' NAME様 『華鬼 〜恋い初める刻 永久の印〜』応援バナーキャンペーンへのご登録ありがとうございました。 下記のURLから、壁紙のダウンロードを行ってください。 バナーキャンペーン特製壁紙 【PC用】サイズ:1280x1024 http://www.otomate.jp/hanaoni/banner/img/hana_wall_pc01.jpg http://www.otomate.jp/hanaoni/banner/img/hana_wall_pc02.jpg http://www.otomate.jp/hanaoni/banner/img/hana_wall_pc03.jpg 【PSP用】サイズ:480x272 http://www.otomate.jp/hanaoni/banner/img/hana_wall_psp01.jpg http://www.otomate.jp/hanaoni/banner/img/hana_wall_psp02.jpg http://www.otomate.jp/hanaoni/banner/img/hana_wall_psp03.jpg 今後ともご支援賜りますよう、宜しくお願い致します。 ===================================== ■華鬼 〜恋い初める刻 永久の印〜 http://www.otomate.jp/hanaoni/ ===================================== '; $colorA = "690D0D"; //------------------------------------------------------------------// // main $chk_flg = $_POST['check_flg']; if(!$chk_flg) $chk_flg = $_GET['step']; echo_html_head(); switch($chk_flg){ case 1: echo_html_second_step(); break; case 2: echo_html_third_step(); break; case "end": echo_html_end_step(); break; default : echo_html_fast_step(); break; } echo_html_end(); //------------------------------------------------------------------// // functions function echo_html_head( $title /* char */) { global $this_pg,$this_host,$g_title; if(!$title){ $title=$g_title; } echo << $g_title

HTML; } function echo_html_end(){ global $this_pg; echo <<

©梨沙/イースト・プレス ©2010 IDEA FACTORY/DESIGN FACTORY

HTML; } function echo_html_fast_step(){ global $colorA,$colorB,$fast_step_msg,$this_pg,$arr_anq1,$arr_anq2,$arr_anq3; echo <<
$fast_step_msg
  必須項目 : ※
ハンドルネーム (全角)
メールアドレス (半角)
バナー設置アドレス (半角)
気に入ってくれた
理由は何ですか?
HTML; echo ''; echo<<
誰の花嫁に
なりたいですか?
HTML; echo ''; echo<<
攻略対象とのデートは
どんなシチュエーション
がいいですか?
HTML; echo ''; echo<<
HTML; } function echo_html_second_step() { global $colorA,$colorB,$fast_step_msg,$this_pg,$arr_anq1,$arr_anq2,$arr_anq3; $colorAA = "EDECEC"; // $g_name = mb_convert_kana(trim($_POST['name']),"KVR"); $g_mail = mb_convert_kana(trim($_POST['mail']),"a"); $g_banner = mb_convert_kana(trim($_POST['banner']),"a"); $g_anq1 = $_POST['anq1']; $g_anq2 = $_POST['anq2']; $g_anq3 = $_POST['anq3']; $chk_frg=1; if(!$g_name){ $chk_frg=0; } if(!$g_mail){ $chk_frg=0; } if($g_mail){ if(mail_check($g_mail)==0) $chk_frg=0; // 登録メール if(do_common_mail_check($g_mail)) $chk_frg=0; } if(!$g_banner){ $chk_frg=0; } if($g_banner){ if(url_checkk($g_banner)==0) $chk_frg=0; if(do_common_banner_check($g_banner)) $chk_frg=0; } if(!$g_anq1){ $chk_frg=0; } if(!$g_anq2){ $chk_frg=0; } if(!$g_anq3){ $chk_frg=0; } if($chk_frg!=1 || $_POST['correction_flg']==1) { echo <<
$fast_step_msg
  必須項目 : ※
ハンドルネーム (全角)
HTML; if(!$g_name){ error("!ハンドルネームが入っていません。!"); } echo <<
メールアドレス (半角)
HTML; if(!$g_mail){ error("!メールアドレスが入っていません。!"); } if($g_mail){ if(mail_check($g_mail)==0) error("!メールアドレスの記述に誤りがあります。!"); if(do_common_mail_check($g_mail)) error("!このPCメールアドレスはすでに登録されています。!"); } echo <<
バナー設置アドレス (半角)
HTML; if(!$g_banner){ error("!バナー設置アドレスが入っていません。!"); } if($g_banner){ if(url_checkk($g_banner)==0) error("!バナー設置アドレスの記述に誤りがあります。!"); if(do_common_banner_check($g_banner)) error("!このバナー設置アドレスはすでに登録されています。!"); } echo <<
気に入ってくれた
理由は何ですか?
HTML; echo ''; echo<<
HTML; if(!$g_anq1){ error("!選択されていません。!"); } echo <<
誰の花嫁に
なりたいですか?
HTML; echo ''; echo<<
HTML; if(!$g_anq2){ error("!選択されていません。!"); } echo <<
攻略対象とのデートは
どんなシチュエーション
がいいですか?
HTML; echo ''; echo<<
HTML; if(!$g_anq3){ error("!選択されていません。!"); } echo <<
HTML; }else{ echo <<
$fast_step_msg
ハンドルネーム   $g_name
メールアドレス   $g_mail
バナー設置アドレス   $g_banner
HTML; echo ''; echo <<
気に入ってくれた
理由は何ですか?
  '; echo $arr_anq1[$g_anq1-1]; echo '
HTML; echo ''; echo <<
誰の花嫁に
なりたいですか?
  '; echo $arr_anq2[$g_anq2-1]; echo '
HTML; echo ''; echo <<
攻略対象とのデートは
どんなシチュエーション
がいいですか?
  '; echo $arr_anq3[$g_anq3-1]; echo '


この内容で宜しいでしょうか?

HTML; } } function echo_html_end_step() { global $end_msg,$ret_url; echo << -->
$end_msg
HTML; } function echo_html_third_step() { global $message,$from,$subject,$this_pg; $g_name = mb_convert_kana(trim($_POST['name']),"KVR"); $g_mail = mb_convert_kana(trim($_POST['mail']),"a"); $g_banner = mb_convert_kana(trim($_POST['banner']),"a"); $g_anq1 = $_POST['anq1']; $g_anq2 = $_POST['anq2']; $g_anq3 = $_POST['anq3']; $message = mbereg_replace( "NAME", $g_name, $message); do_common_file_write( $g_mail, $g_name, $g_banner, $g_anq1, $g_anq2, $g_anq3); //sendAttachMail( $from, $g_mail, $subject, $message); mb_send_mail ($g_mail, $subject, $message,"From: ".$from); header("Location: ".$this_pg."?step=end"); } function url_checkk($url){ if (preg_match('/^(http|HTTP|ftp)(s|S)?:\/\/+[A-Za-z0-9]+\.[A-Za-z0-9]/',$url)) { return 1; } else{ return 0; } } function do_common_banner_check($mail){ global $file_path; $file_temp = file($file_path); for($i=0; $i'.$err_msg.'
'; } function sendAttachMail ( $from, $to, $subject, $body) { global $image_url; //内部のエンコード echo "1"; phpinfo(); //画像の取得と画像のエンコード /* $img = file_get_contents( $image_url); $img_encode64_000 = chunk_split( base64_encode($img)); $body = mbereg_replace( "img_encode64_000", $img_encode64_000, $body); */ ### サブジェクトを jis にして、MIME エンコード $subject = i18n_mime_header_encode( i18n_convert($subject, "JIS") ); // $subject = i18n_convert($subject, "JIS"); echo "2"; ### 本文を jis に $body = i18n_convert($body, "JIS"); ### メールの送信 $mp = popen("/usr/sbin/sendmail -f $from $to", "w"); //$mp = popen("/var/qmail/bin/qmail-inject -f $from $to", "w"); ########################## メールの組み上げ ### 全体のヘッダ fputs($mp, "MIME-Version: 1.0\n"); fputs($mp, 'Content-type: text/html; charset=iso-8859-1' . "\r\n"); fputs($mp, "Content-Type: text/plain; charset=\"ISO-2022-JP\"\n"); // fputs($mp, 'Content-Type: multipart/related;boundary="1000000000"' . "\r\n"); echo "3"; fputs($mp, "Content-Transfer-Encoding: 7bit\n"); fputs($mp, "From: $from\n"); fputs($mp, "To: $to\n"); fputs($mp, "Subject: $subject\n"); ### メール本文のパート fputs($mp, "\n"); fputs($mp, "$body\n"); pclose($mp); echo "4"; } /* タイトル



説明を入力してください。説明を入力してください。説明を入力してください。説明を入力してください。説明を入力してください。



ここに項目名 フォーム
ここに項目名 フォーム
ここに項目名 フォーム
ここに項目名 フォーム
ここに項目名 フォーム

©2010 IDEA FACTORY/DESIGN FACTORY

*/ ?>