//include_once('session_check.php'); //2013/7/20 New Server// if($_REQUEST['function']=="send"){ //サニタイズ function sanitize ($str) { if(!is_array($str)){ //チェックボックスの値など配列の場合は除外 $str = htmlspecialchars ($str); $str = strip_tags ($str); $str = stripslashes ($str); } $str = preg_replace("/'/", "", $str); //$str = preg_replace("/\@/", "", $str); //E-Mailとして扱う場合は除外 $str = preg_replace("/\*/", "", $str); return $str; } //送信されたパラメータをサニタイズし変数へ foreach($_REQUEST as $key3 => $value3){ ${$key3}=sanitize($_REQUEST[$key3]); //echo ${$key3}; } $find_email=preg_replace("/\@/", "", sanitize ($_REQUEST['email'])); //$yourname=urldecode($_REQUEST['yourname']); $yourname = str_replace(" ", "", $_REQUEST['yourname']); include_once('FX/FX.php'); include_once('FX/server_data.php'); $search=new FX($serverIP,$webCompanionPort,'FMPro7'); $search->SetCharacterEncoding('utf8'); $search->SetDataParamsEncoding('utf8'); $search->SetDBData('CUSTOMER.fp7','entry'); $search->SetDBPassword($webPW,$webUN); if($_REQUEST['yourid']){ $search->AddDBParam('CUSTOMER ID',sanitize ($_REQUEST['yourid'])); } if($_REQUEST['yourname']){ $search->AddDBParam('ATTENTION_calc',$yourname); } $search->AddDBParam('email_calc_3',$find_email); $searchResult=$search->FMFind(); $result= $searchResult['foundCount']; if($result=="1"){ foreach($searchResult['data'] as $key=> $value) $mail_title=$value['TITLE'][0]." "; $mail_title.=$value['ATTENTION'][0]." "; $id=$value['CUSTOMER ID'][0]; $pass=$value['indivisualpassword'][0]; $contact=$value['Person In Charge'][0]; $email =$_REQUEST['email']; //////////mail////////////////////////// $message = ("Dear $mail_title, ID Number: $id Login Password: $pass Your Contact: $contact Log in now! http://www.papera.com/ If you log in your Papera Account, you can see the CIF and C&F price up to the port easily. You can enquire to your sales representative at Papera. You are able to check your payment and purchase history in your account. We look forward to hearing from you. Yours faithfully, Papera Traders Co., Ltd. Address: 2F, 3-20-11 Takada Toshima-ku Tokyo Japan 171-0033 Tel: 81+3-5979-6271 Fax: 81+3-5979-6281 Home Page: http://www.papera.com/ E-mail : papera@papera.co.jp "); $subject="Your customer Information. [PAPERA TRADERS]"; $recipient=$email; $headers = "From:papera@papera.co.jp\r\n"; //$headers .= "bcc:papera@papera.co.jp\r\n"; mb_language("en") ; mb_internal_encoding("UTF-8"); mb_send_mail($recipient, $subject, $message, $headers); } } ?>
Pepera support you. Enter your Customer ID below and Click the Submit button.