$val) { if (in_array($key, $var_list)) { $$key = $val; } else { unset($$key); } } } // str_safeの通常変数 $brand = str_safe($brand); $damage_biko = str_safe($damage_biko); $returnsend = str_safe($returnsend); $ipt_sim_price = str_safe($ipt_sim_price); $ipt_sim_date = str_safe($ipt_sim_date); $simurator = str_safe($simurator); $hoken = str_safe($hoken); $bagkingaku = str_safe($bagkingaku); $linecoupon = str_safe($linecoupon); if(is_array($campaign)) { foreach($campaign as $num_camp => $val_camp) { $campaign[$num_camp] = str_safe($val_camp); } } $kojinorhojin = str_safe($kojinorhojin); $name = str_safe($name); $kana = str_safe($kana); $company = str_safe($company); $cp_tanto = str_safe($cp_tanto); $cp_tanto_kana = str_safe($cp_tanto_kana); $zip = str_safe($zip); $address1 = str_safe($address1); $address2 = str_safe($address2); $tel = str_safe($tel); $fax = str_safe($fax); $email = str_safe($email); $naiyo = str_safe($naiyo); $captchastring = str_safe($captchastring); $privacy = str_safe($privacy); // 以下のstr_safe関数は配列を想定しておく if(is_array($bdi)) { foreach($bdi as $bdi_num => $bdi_val) { $bdi[$bdi_num] = str_safe($bdi_val); } } if(is_array($etc)) { foreach($etc as $etc_num => $etc_val) { $etc[$etc_num] = str_safe($etc_val); } } if(is_array($img_cancel)) { foreach($img_cancel as $icl_num => $icl_val) { $img_cancel[$icl_num] = str_safe($icl_val); } } $mode = str_safe($mode); $encode_hint = str_safe($encode_hint); $monster = str_safe($monster); $page = str_safe($page); // モンスターをセッションへ登録 $_SESSION["monster"] = $monster; // pr_dump($mode, "mode"); // pr_dump($page, "page"); /* ** モード別 */ switch($mode) { case "confirm": // pr_dump($_SESSION, "SESSION"); /* リロード・ページ遷移キーのチェック ----------------------------------------------------------------------------------------- */ // tokenまたはmonsterがいづれかがnullなら強制null(後で必ずエラー)にする if(!strlen($_SESSION['token']) || !strlen($_SESSION['monster'])) { $_SESSION['token'] = "token"; $_SESSION['monster'] = "monster"; } // tokenエラーまたはページ遷移キーが無効の場合、最初からやり直し if ($_SESSION['token'] !== $_SESSION['monster'] || $_SESSION["entry"] !== md5($setSystem::ENTRY_START)) { //認証NGならセッション破壊して最初からやり直し sess_destroy(); $thxurl_url = "./error.html"; $thxurl_get = "ecd=FEM000"; header("Location: $thxurl_url?$thxurl_get"); exit; } // エラー件数初期化 $Err_count = 0; switch($page) { case 2: // フリガナを強制全角カタカナにする $kana = mb_convert_kana($kana, 'CKVa', 'utf-8'); // 全角数字を半角数字へ変換 $tel = mb_convert_kana($tel, "an", "UTF-8"); $fax = mb_convert_kana($fax, "an", "UTF-8"); $zip = mb_convert_kana($zip, "an", "UTF-8"); // 電話番号の数字以外を除去する $tel = preg_replace('/[^0-9]/', '', $tel); $fax = preg_replace('/[^0-9]/', '', $fax); $zip = preg_replace('/[^0-9]/', '', $zip); // メールアドレスの英数字を強制半角化 $email = mb_convert_kana($email, 'a', 'utf-8'); // セッションに入力内容を登録 $_SESSION["KojinOrHojin"] = $kojinorhojin; $_SESSION["Name"] = $name; $_SESSION["Kana"] = $kana; $_SESSION["Company"] = $company; $_SESSION["Cp_tanto"] = $cp_tanto; $_SESSION["Cp_tanto_kana"] = $cp_tanto_kana; $_SESSION["Zip"] = $zip; $_SESSION["Address1"] = $address1; $_SESSION["Address2"] = $address2; $_SESSION["Tel"] = $tel; $_SESSION["Fax"] = $fax; $_SESSION["Email"] = $email; $_SESSION["Naiyo"] = $naiyo; $_SESSION["Privacy"] = $privacy; require_once $setSystem::ENTRY_ERROR_CHECK_02; break; case 1: // エラーチェック用にLineクーポンリストを取得 $entry->get_linecoupon_list(); // 全角数字を半角数字へ変換 $bagkingaku = mb_convert_kana($bagkingaku, "a", "UTF-8"); // 購入金額の数字以外を除去する $bagkingaku = preg_replace('/[^0-9]/', '', $bagkingaku); $_SESSION["Brand"] = $brand; $_SESSION["Ddi"] = $bdi; $_SESSION["Etc"] = $etc; $_SESSION["DamageBiko"] = $damage_biko; $_SESSION["Returnsend"] = $returnsend; $_SESSION["Campaign"] = $campaign; $_SESSION["Hoken"] = $hoken; $_SESSION["BagKingaku"] = $bagkingaku; $_SESSION["LineCoupon"] = $linecoupon; include_once $setSystem::ENTRY_ERROR_CHECK_01; break; } if($Err_count > 0) { if($page == 2) { $ErrMes['captcha'] .= $setSystem->get_Message("FEM003"); } $TopErrMes = $ErrMes; // フォーム上部用に確保 foreach($ErrMes as $num => $val) { if(strlen($val)) { $ErrMes[$num] = "
\n"; $ErrMes[$num] .= "

".$val."

\n"; $ErrMes[$num] .= "
\n"; } } // HTML表示 switch($page) { case 2: require_once $setSystem::ENTRY_INC_INDEX_02; break; case 1: default: // 修理破損内容をデータベースから取得 $entry->set_brand_list(0, $brand); $entry->set_bodydamage_list(0, $bdi); $entry->set_etc_parts_list(0, $etc); $entry->get_campaign_list($campaign); require_once $setSystem::ENTRY_INC_INDEX_01; break; } exit; } // HTML表示 switch($page) { case 2: require_once $setSystem::ENTRY_INC_CONFIRM; break; case 1: require_once $setSystem::ENTRY_INC_INDEX_02; break; default: // 修理破損内容をデータベースから取得 $entry->set_brand_list(0, $brand); $entry->set_bodydamage_list(0); $entry->set_etc_parts_list(0); $entry->get_campaign_list($campaign); require_once $setSystem::ENTRY_INC_INDEX_01; break; } exit; break; case "entry": /* リロード・ページ遷移キーのチェック ----------------------------------------------------------------------------------------- */ // tokenまたはmonsterがいづれかがnullなら強制null(後で必ずエラー)にする if(!strlen($_SESSION['token']) || !strlen($_SESSION['monster'])) { $_SESSION['token'] = "token"; $_SESSION['monster'] = "monster"; } // tokenエラーまたはページ遷移キーが無効の場合、最初からやり直し if ($_SESSION['token'] !== $_SESSION['monster'] || $_SESSION["entry"] !== md5($setSystem::ENTRY_START)) { //認証NGならセッション破壊して最初からやり直し sess_destroy(); $thxurl_url = "./error.html"; $thxurl_get = "ecd=FEM000"; header("Location: $thxurl_url?$thxurl_get"); exit; } else { // 認証OKならインサート処理開始 // キャンペーンリスト $campaign_ids = ""; $campaign_ids_name = ""; $listCount = 0; if(isset($_SESSION["Campaign"])) { if(is_array($_SESSION["Campaign"]) && count($_SESSION["Campaign"]) > 0) { foreach($_SESSION["Campaign"] as $num_camp => $val_camp) { if($listCount > 0) { $campaign_ids .= ","; $campaign_ids_name .= ","; } if($val_camp == 1) { $campaign_ids .= $num_camp; $campaign_ids_name .= $entry->get_campaign_name($num_camp); $listCount++; } } } } // LINE@コード $coupon_ids_name = ""; if(strlen($_SESSION["LineCoupon"])) { $coupon_ids_name = $_SESSION["LineCoupon"]; } else { $coupon_ids_name = "LINE@クーポン 利用なし"; } $entry = new entry(); $arySqlContact = array( "flg_kojinorhojin" => $_SESSION['KojinOrHojin'], "dat_name" => $_SESSION['Name'], "namekana" => $_SESSION["Kana"], "dat_company" => $_SESSION['Company'], "dat_company_tanto" => $_SESSION['Cp_tanto'], "dat_company_tantokana" => $_SESSION['Cp_tanto_kana'], "dat_tel" => $_SESSION['Tel'], "dat_fax" => $_SESSION['Fax'], "dat_mail" => $_SESSION['Email'], "post" => $_SESSION['Zip'], "pref" => $_SESSION['Address1'], "jyusyo" => $_SESSION['Address2'], "dat_naiyo" => $_SESSION['Naiyo'], "dt_contact" => $toDay, "dat_useragent" => $_SESSION['UserAgent'], "dat_reffer" => $_SESSION['Reffer'], "flg_del" => "0", ); // その他破損状況を、$num@$valを一塊にして、ハイフンつなぎにする $sql_etc_parts = ""; $count_etc_parts = 0; if(count($_SESSION['Etc'])) { foreach($_SESSION['Etc'] as $num_etc => $val_etc) { if($count_etc_parts > 0) { $sql_etc_parts .= "-"; } $sql_etc_parts .= $num_etc."@".$val_etc; $count_etc_parts++; } } for($i=1;$i<=4;$i++) { if(!isset($_SESSION['img'][$i]['name'])) { $_SESSION['img'][$i]['name'] = ""; } } if(!strlen($_SESSION['Returnsend'])) { $_SESSION['Returnsend'] = -1; } if(!strlen($_SESSION['BagKingaku'])) { $_SESSION['BagKingaku'] = -1; } if(!strlen($_SESSION['SimPrice'])) { $_SESSION['SimPrice'] = "-1"; } if(!strlen($_SESSION['SimDate'])) { $_SESSION['SimDate'] = "-1"; } $arySqlOmitsumori = array( "dat_image_1" => $_SESSION['img'][1]['name'], "dat_image_2" => $_SESSION['img'][2]['name'], "dat_image_3" => $_SESSION['img'][3]['name'], "dat_image_4" => $_SESSION['img'][4]['name'], "nm_brand" => $_SESSION['Brand'], "dat_bdi" => implode("-", $_SESSION['Ddi']), "dat_etc_parts" => $sql_etc_parts, "dat_etc_biko" => $_SESSION['DamageBiko'], "flg_returnsend" => $_SESSION['Returnsend'], "kin_sim_price" => str_replace(",", "", $_SESSION['SimPrice']), "dt_sim_noki" => $_SESSION['SimDate'], "flg_hoken" => $_SESSION['Hoken'], "kin_bag" => $_SESSION['BagKingaku'], "add_date" => $toDay, "upd_date" => $toDay, "flg_del" => "0", "campaign" => $campaign_ids, "linecoupon" => $_SESSION["LineCoupon"] ); $result = $entry -> entry_form_insert($arySqlContact, $arySqlOmitsumori); // pr_dump($result); // exit; // メール作成 $goods_html = file($setSystem::ENTRY_TMP_MAIL_001); // ご本人用 $goods_html_2 = file($setSystem::ENTRY_TMP_MAIL_002); // 本部要 // 初期化 $dispCampaign = ""; $dispLineCoupon = ""; $dispHojinorKojin = ""; $dispTitleHojin = ""; $dispTitleKojin = ""; $dispHojin = ""; $dispKojin = ""; $dispZip = ""; $dispAddress = ""; $dispTel = ""; $dispFax = ""; $dispMail = ""; $dispBrand = ""; $dispImage = ""; $dispBodyDamage = ""; $dispEtcParts = ""; $dispEtcBiko = ""; $dispReturnSend = ""; $dispSimurator = ""; $dispHoken = ""; $dispLineCoupon = $coupon_ids_name; if(strlen($campaign_ids_name)) { $dispCampaign = $campaign_ids_name; } else { $dispCampaign = "選択なし"; } if(($_SESSION["Hoken"]) == 1) { $dispHoken = "利用しない"; } else { $dispHoken = "利用する(購入金額:".$_SESSION["BagKingaku"].")"; } if($_SESSION["KojinOrHojin"] == 2) {// 法人 $dispHojinorKojin = "法人"; $dispTitleHojin = $_SESSION["Company"]."\n"; $dispTitleHojin .= $_SESSION["Cp_tanto"]." 様\n"; $dispHojin = "■ 法人名\n"; $dispHojin .= "□ ".$_SESSION["Company"]."\n"; $dispHojin .= "\n"; $dispHojin .= "■ 御社ご担当者様名\n"; $dispHojin .= "□ ".$_SESSION["Cp_tanto"]."(".$_SESSION["Cp_tanto_kana"].")"; } else {// 個人または"法人以外" $dispHojinorKojin = "個人"; $dispTitleKojin .= $_SESSION["Name"]." 様"; $dispKojin = "■ お名前 \n"; $dispKojin .= "□ ".$_SESSION["Name"]."(".$_SESSION["Kana"].")"; } $dispZip = $_SESSION["Zip"]; $dispAddress = $_SESSION["Address1"]." ".$_SESSION["Address2"]; $dispTel = $_SESSION["Tel"]; $dispFax = $_SESSION["Fax"]; if(!strlen($dispFax)) { $dispFax = "入力なし"; } $dispMail = $_SESSION["Email"]; if(!strlen($dispMail)) { $dispMail = "入力なし"; } $dispNaiyo = $_SESSION["Naiyo"]; if(!strlen($dispNaiyo)) { $dispNaiyo = "入力なし"; } $dispBrand = $entry -> get_brand_name($_SESSION["Brand"]); for($i=1;$i<=4;$i++) { if($_SESSION['img'][$i]['name']) { $dispImage .= "□ No.".$i.":".ROOT_URL.$setSystem::ENTRY_IMG_UPLOAD_URL_MAIL.$_SESSION['img'][$i]['name']."\n"; } else { $dispImage .= "□ No.".$i.":登録なし\n"; } } $dispBodyDamage = $entry -> get_bodydamage($_SESSION['Ddi'], false); if(!strlen($dispBodyDamage)) { $dispBodyDamage = "□ 選択なし\n"; } $dispEtcParts = $entry -> get_etc_parts_list($_SESSION["Etc"], false); if(!strlen($dispEtcParts)) { $dispEtcParts = "□ 選択なし\n"; } $dispEtcBiko = $_SESSION["DamageBiko"]; if(!strlen($dispEtcBiko)) { $dispEtcBiko = "入力なし"; } if($_SESSION["Returnsend"] == 1) { $dispReturnSend = "返送希望"; } else if($_SESSION["Returnsend"] == 2) { $dispReturnSend = "廃棄希望"; } else { $dispReturnSend = "選択なし"; } if($_SESSION["Simurator"]) { $dispSimurator = "■ 簡単シミュレータ結果\n"; $dispSimurator .= "□ 金額:".$_SESSION['SimPrice']." 円\n"; $dispSimurator .= "□ 工期:".$_SESSION['SimDate']." 日\n"; } // ----------------------------- // 本人用メール形成 // ----------------------------- $to1 = $_SESSION['Email']; // TO $bcc1 = "m-nishimura@mofy-sysdev.jp"; // BCC $subject1 = "[株式会社ヒデ工房] 御見積り受付しました"; // 題名 $from1 = "info@hide-cobo.com"; // 差出人 $fromname1 = "株式会社ヒデ工房 御見積り自動受付"; // 差し出し人名 $message1 = ""; //表示用にテンプレファイルに置き換え作業 foreach($goods_html as $str) { //基礎情報 $str = str_replace("_%dispCampaign%_", $dispCampaign, $str); $str = str_replace("_%dispLineCoupon%_", $dispLineCoupon, $str); $str = str_replace("_%dispHojinorKojin%_", $dispHojinorKojin, $str); $str = str_replace("_%dispTitleHojin%_", $dispTitleHojin, $str); $str = str_replace("_%dispTitleKojin%_", $dispTitleKojin, $str); $str = str_replace("_%dispHojin%_", $dispHojin, $str); $str = str_replace("_%dispKojin%_", $dispKojin, $str); $str = str_replace("_%dispZip%_", $dispZip, $str); $str = str_replace("_%dispAddress%_", $dispAddress, $str); $str = str_replace("_%dispTel%_", $dispTel, $str); $str = str_replace("_%dispFax%_", $dispFax, $str); $str = str_replace("_%dispMail%_", $dispMail, $str); $str = str_replace("_%dispNaiyo%_", $dispNaiyo, $str); $str = str_replace("_%dispBrand%_", $dispBrand, $str); $str = str_replace("_%dispImage%_", $dispImage, $str); $str = str_replace("_%dispBodyDamage%_", $dispBodyDamage, $str); $str = str_replace("_%dispEtcParts%_", $dispEtcParts, $str); $str = str_replace("_%dispEtcBiko%_", $dispEtcBiko, $str); $str = str_replace("_%dispReturnSend%_", $dispReturnSend, $str); $str = str_replace("_%dispSimurator%_", $dispSimurator, $str); $str = str_replace("_%dispHoken%_", $dispHoken, $str); $message1 .= $str; } $mail1 = new JPHPMailer(); $mail1 -> addTo($to1); $mail1 -> addBcc($bcc1); $mail1 -> setFrom($from1, $fromname1); $mail1 -> setSubject($subject1); $mail1 -> setBody($message1); // ----------------------------- // 本部メール形成 // ----------------------------- $to2 = "info@hide-cobo.com"; // TO $cc2 = "h.tajima@hide-cobo.com"; // BCC $cc3 = "receipt-cobo@hide-cobo.com"; // BCC $bcc2 = "m-nishimura@mofy-sysdev.jp"; // BCC $subject2 = "ホームページからお見積りがありました。【株式会社ヒデ工房】"; // 題名 $from2 = "info@hide-cobo.co.jp"; // 差出人 $fromname2 = "株式会社ヒデ工房 御見積り自動受付"; // 差し出し人名 $message2 = ""; //表示用にテンプレファイルに置き換え作業 foreach($goods_html_2 as $str) { //基礎情報 $str = str_replace("_%dispCampaign%_", $dispCampaign, $str); $str = str_replace("_%dispLineCoupon%_", $dispLineCoupon, $str); $str = str_replace("_%dispHojinorKojin%_", $dispHojinorKojin, $str); $str = str_replace("_%dispTitleHojin%_", $dispTitleHojin, $str); $str = str_replace("_%dispTitleKojin%_", $dispTitleKojin, $str); $str = str_replace("_%dispHojin%_", $dispHojin, $str); $str = str_replace("_%dispKojin%_", $dispKojin, $str); $str = str_replace("_%dispZip%_", $dispZip, $str); $str = str_replace("_%dispAddress%_", $dispAddress, $str); $str = str_replace("_%dispTel%_", $dispTel, $str); $str = str_replace("_%dispFax%_", $dispFax, $str); $str = str_replace("_%dispMail%_", $dispMail, $str); $str = str_replace("_%dispNaiyo%_", $dispNaiyo, $str); $str = str_replace("_%dispBrand%_", $dispBrand, $str); $str = str_replace("_%dispImage%_", $dispImage, $str); $str = str_replace("_%dispBodyDamage%_", $dispBodyDamage, $str); $str = str_replace("_%dispEtcParts%_", $dispEtcParts, $str); $str = str_replace("_%dispEtcBiko%_", $dispEtcBiko, $str); $str = str_replace("_%dispReturnSend%_", $dispReturnSend, $str); $str = str_replace("_%dispSimurator%_", $dispSimurator, $str); $str = str_replace("_%dispHoken%_", $dispHoken, $str); $message2 .= $str; } $mail2 = new JPHPMailer(); // $mail2->setSmtpAuthHash( array( // "user" => "info@hide-cobo.com", // SMTP認証用のユーザーID // "password" => "hidecobo8833", // SMTP認証用のパスワード // "host" => "mail.hide-cobo.com", // SMTPサーバーのアドレス // "port" => "587" ) // SMTPサーバーのポート番号 // ); $mail2 -> addTo($to2); $mail2 -> addCc($cc2); $mail2 -> addCc($cc3); $mail2 -> addBcc($bcc2); $mail2 -> setFrom($from2, $fromname2); $mail2 -> setSubject($subject2); $mail2 -> setBody($message2); // メールを配信する $mailflg[1] = false; $mailflg[2] = false; if(strlen($_SESSION["Email"])) { if ($mail1 -> send()) { $mailflg[1] = true; } } else { // モフィーシステム開発には飛ばす $mail1 -> addTo($bcc1); $mail1 -> send(); $mailflg[1] = true; } if ($mail2 -> send()) { $mailflg[2] = true; } sess_destroy(); // DB登録とメール送信の両方に失敗した場合 if(!$result && (!$mailflg[1] || !$mailflg[2])) { $thxurl_url = "./error.html"; $thxurl_get = "ecd=DEM002-MEM002"; header("Location: $thxurl_url?$thxurl_get"); exit; } // DB登録に失敗した場合 if(!$result) // ※ データベースエラーがtrue=エラー時 { $thxurl_url = "./error.html"; $thxurl_get = "ecd=DEM002"; header("Location: $thxurl_url?$thxurl_get"); exit; } // メール送信に失敗した場合 if (!$mailflg[1] || !$mailflg[2]) { $thxurl_url = "./error.html"; $thxurl_get = "ecd=MEM002"; header("Location: $thxurl_url?$thxurl_get"); exit; } // 全部成功した場合 $thxurl_url = "./thanks.html"; $thxurl_get = ""; header("Location: $thxurl_url?$thxurl_get"); } exit; break; default: if(!isset($_SESSION['UserAgent']) && isset($_SERVER["HTTP_USER_AGENT"])) { $_SESSION['UserAgent'] = $_SERVER["HTTP_USER_AGENT"]; } if(!isset($_SESSION['Reffer']) && isset($_SERVER["HTTP_REFERER"])) { $_SESSION['Reffer'] = $_SERVER["HTTP_REFERER"]; } if(!strlen($_SESSION['UserAgent']) && isset($_SERVER["HTTP_USER_AGENT"])) { $_SESSION['UserAgent'] = $_SERVER["HTTP_USER_AGENT"]; } if(!strlen($_SESSION['Reffer']) && isset($_SERVER["HTTP_REFERER"])) { $_SESSION['Reffer'] = $_SERVER["HTTP_REFERER"]; } $useragent = $_SESSION['UserAgent']; $reffer = $_SESSION['Reffer']; // セッション初期化 $_SESSION["Simurator"] = ""; $_SESSION["Brand"] = ""; $_SESSION["Ddi"] = ""; $_SESSION["Etc"] = ""; $_SESSION["Img"] = ""; $_SESSION["DamageBiko"] = ""; $_SESSION["Returnsend"] = ""; $_SESSION['Hoken'] = ""; $_SESSION['BagKingaku'] = ""; $_SESSION["KojinOrHojin"] = ""; $_SESSION["Name"] = ""; $_SESSION["Kana"] = ""; $_SESSION["Company"] = ""; $_SESSION["Cp_tanto"] = ""; $_SESSION["Cp_tanto_kana"] = ""; $_SESSION["Zip"] = ""; $_SESSION["Address1"] = ""; $_SESSION["Address2"] = ""; $_SESSION["Tel"] = ""; $_SESSION["Fax"] = ""; $_SESSION["Email"] = ""; $_SESSION["Naiyo"] = ""; $_SESSION["Privacy"] = ""; $_SESSION['SimPrice'] = ""; $_SESSION['SimDate'] = ""; $_SESSION["LineCoupon"] = ""; $_SESSION["img"] = array(); $_SESSION['UserAgent'] = $useragent; $_SESSION['Reffer'] = $reffer; $_SESSION['CAPTCHAString'] = ""; // 簡単シミュレータからの遷移の場合は、セッションに引き継ぐ $_SESSION["Simurator"] = $simurator; if($_SESSION["Simurator"] == 1) { $_SESSION["Brand"] = $brand; $_SESSION["Ddi"] = $bdi; $_SESSION["Etc"] = $etc; $_SESSION['SimPrice'] = $ipt_sim_price; $_SESSION['SimDate'] = $ipt_sim_date; } // 一部データだけセッションに先行投入! $_SESSION["Campaign"] = $campaign; // 修理破損内容をデータベースから取得 $entry->set_brand_list($simurator, Null); $entry->set_bodydamage_list($simurator, Null); $entry->set_etc_parts_list($simurator, Null); $entry->get_campaign_list($campaign); /* リロードチェック用トークン生成 byMonster ------------------------------------------------------------------------------------------------*/ $_SESSION['token'] = md5(uniqid().mt_rand()); $_SESSION['token'] = htmlspecialchars($_SESSION['token'], ENT_QUOTES); $_SESSION["entry"] = md5($setSystem::ENTRY_START); // HTML表示 require_once $setSystem::ENTRY_INC_INDEX_01; break; } ?>