Source for file LC_Page_Entry.php
Documentation is available at LC_Page_Entry.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(CLASS_PATH .
"pages/LC_Page.php");
* @author LOCKON CO.,LTD.
* @version $Id:LC_Page_Entry.php 15532 2007-08-31 14:39:46Z nanasess $
$this->arrPref =
$masterData->getMasterData("mtb_pref",
array("pref_id", "pref_name", "rank"));
$this->arrJob =
$masterData->getMasterData("mtb_job");
$this->arrReminder =
$masterData->getMasterData("mtb_reminder");
$this->arrYear =
$objDate->getYear('', 1950, '');
$this->arrMonth =
$objDate->getMonth(true);
$this->arrDay =
$objDate->getDay(true);
$CONF =
$objDb->sf_getBasisData();
// 規約ページからの遷移でなければエラー画面へ遷移する
$objLayout->sfGetPageLayout($this, false, DEF_LAYOUT);
$arrRegistColumn =
array(
array( "column" =>
"name01", "convert" =>
"aKV" ),
array( "column" =>
"name02", "convert" =>
"aKV" ),
array( "column" =>
"kana01", "convert" =>
"CKV" ),
array( "column" =>
"kana02", "convert" =>
"CKV" ),
array( "column" =>
"zip01", "convert" =>
"n" ),
array( "column" =>
"zip02", "convert" =>
"n" ),
array( "column" =>
"pref", "convert" =>
"n" ),
array( "column" =>
"addr01", "convert" =>
"aKV" ),
array( "column" =>
"addr02", "convert" =>
"aKV" ),
array( "column" =>
"email", "convert" =>
"a" ),
array( "column" =>
"email2", "convert" =>
"a" ),
array( "column" =>
"email_mobile", "convert" =>
"a" ),
array( "column" =>
"email_mobile2", "convert" =>
"a" ),
array( "column" =>
"tel01", "convert" =>
"n" ),
array( "column" =>
"tel02", "convert" =>
"n" ),
array( "column" =>
"tel03", "convert" =>
"n" ),
array( "column" =>
"fax01", "convert" =>
"n" ),
array( "column" =>
"fax02", "convert" =>
"n" ),
array( "column" =>
"fax03", "convert" =>
"n" ),
array( "column" =>
"sex", "convert" =>
"n" ),
array( "column" =>
"job", "convert" =>
"n" ),
array( "column" =>
"birth", "convert" =>
"n" ),
array( "column" =>
"reminder", "convert" =>
"n" ),
array( "column" =>
"reminder_answer", "convert" =>
"aKV"),
array( "column" =>
"password", "convert" =>
"a" ),
array( "column" =>
"password02", "convert" =>
"a" ),
array( "column" =>
"mailmaga_flg", "convert" =>
"n" ),
$arrRejectRegistColumn =
array("year", "month", "day", "email02", "email_mobile02", "password02");
if ($_SERVER["REQUEST_METHOD"] ==
"POST") {
$this->arrForm['email'] =
strtolower($this->arrForm['email']); // emailはすべて小文字で処理
$this->arrForm['email02'] =
strtolower($this->arrForm['email02']); // emailはすべて小文字で処理
$this->arrForm =
$this->lfConvertParam($this->arrForm, $arrRegistColumn);
if ($this->arrErr ||
$_POST["mode"] ==
"return") { // 入力エラーのチェック
foreach($this->arrForm as $key =>
$val) {
if ($_POST["mode"] ==
"confirm") {
foreach($this->arrForm as $key =>
$val) {
if ($key !=
"mode" &&
$key !=
"subm") $this->list_data[ $key ] =
$val;
$passlen =
strlen($this->arrForm['password']);
$this->tpl_css =
'/css/layout/entry/confirm.css';
if ($_POST["mode"] ==
"complete") {
if($objCampaignSess->getIsCampaign()) {
$this->etc_value =
"&cp=".
$objCampaignSess->getCampaignId();
$this->uniqid =
$this->lfRegistData ($this->arrForm, $arrRegistColumn, $arrRejectRegistColumn, CUSTOMER_CONFIRM_MAIL);
$this->tpl_css =
'/css/layout/entry/complete.css';
$this->name01 =
$_POST['name01'];
$this->name02 =
$_POST['name02'];
$objMailText->assignobj($this);
if(CUSTOMER_CONFIRM_MAIL ==
true) {
$subject =
$objHelperMail->sfMakeSubject('会員登録のご確認');
$toCustomerMail =
$objMailText->fetch("mail_templates/customer_mail.tpl");
$subject =
$objHelperMail->sfMakeSubject('会員登録のご完了');
$toCustomerMail =
$objMailText->fetch("mail_templates/customer_regist_mail.tpl");
$objCustomer->setLogin($_POST["email"]);
, $CONF["email03"] // 配送元アドレス
, $CONF["shop_name"] // 配送元 名前
, $CONF["email03"] // reply_to
, $CONF["email04"] // return_path
, $CONF["email04"] // Errors_to
, $CONF["email01"] // Bcc
$name =
$_POST["name01"] .
$_POST["name02"] .
" 様";
$objMail->setTo($_POST["email"], $name);
$customer_id =
$objQuery->get("dtb_customer", "customer_id", "secret_key = ?", array($this->uniqid));
$objView->assignobj($this);
// フレームを選択(キャンペーンページから遷移なら変更)
$objCampaignSess->pageView($objView);
$CONF =
$objDb->sf_getBasisData(); // 店舗基本情報
if (isset
($_SESSION['mobile']['kara_mail_from'])) {
$_POST['email'] =
$_SESSION['mobile']['kara_mail_from'];
$this->tpl_kara_mail_from =
$_POST['email'];
} elseif (MOBILE_USE_KARA_MAIL) {
$token =
$objMobile->gfPrepareKaraMail('entry/' .
DIR_INDEX_URL);
$this->tpl_kara_mail_to =
MOBILE_KARA_MAIL_ADDRESS_USER .
MOBILE_KARA_MAIL_ADDRESS_DELIMITER .
'entry_' .
$token .
'@' .
MOBILE_KARA_MAIL_ADDRESS_DOMAIN;
$this->tpl_from_address =
$CONF['email03'];
$objLayout->sfGetPageLayout($this, false, DEF_LAYOUT);
$arrRegistColumn =
array(
array( "column" =>
"name01", "convert" =>
"aKV" ),
array( "column" =>
"name02", "convert" =>
"aKV" ),
array( "column" =>
"kana01", "convert" =>
"CKV" ),
array( "column" =>
"kana02", "convert" =>
"CKV" ),
array( "column" =>
"zip01", "convert" =>
"n" ),
array( "column" =>
"zip02", "convert" =>
"n" ),
array( "column" =>
"pref", "convert" =>
"n" ),
array( "column" =>
"addr01", "convert" =>
"aKV" ),
array( "column" =>
"addr02", "convert" =>
"aKV" ),
array( "column" =>
"email", "convert" =>
"a" ),
array( "column" =>
"email2", "convert" =>
"a" ),
array( "column" =>
"email_mobile", "convert" =>
"a" ),
array( "column" =>
"email_mobile2", "convert" =>
"a" ),
array( "column" =>
"tel01", "convert" =>
"n" ),
array( "column" =>
"tel02", "convert" =>
"n" ),
array( "column" =>
"tel03", "convert" =>
"n" ),
array( "column" =>
"fax01", "convert" =>
"n" ),
array( "column" =>
"fax02", "convert" =>
"n" ),
array( "column" =>
"fax03", "convert" =>
"n" ),
array( "column" =>
"sex", "convert" =>
"n" ),
array( "column" =>
"job", "convert" =>
"n" ),
array( "column" =>
"birth", "convert" =>
"n" ),
array( "column" =>
"reminder", "convert" =>
"n" ),
array( "column" =>
"reminder_answer", "convert" =>
"aKV"),
array( "column" =>
"password", "convert" =>
"a" ),
array( "column" =>
"password02", "convert" =>
"a" ),
array( "column" =>
"mailmaga_flg", "convert" =>
"n" ),
$arrRejectRegistColumn =
array("year", "month", "day", "email02", "email_mobile02", "password02");
if ($_SERVER["REQUEST_METHOD"] ==
"POST") {
$this->arrForm['email'] =
strtolower($this->arrForm['email']); // emailはすべて小文字で処理
$this->arrForm =
$this->lfConvertParam($this->arrForm, $arrRegistColumn);
if (!empty($_POST["return"])) {
switch ($_POST["mode"]) {
if ($_POST["mode"] ==
"set1") {
} elseif ($_POST["mode"] ==
"set2") {
foreach($this->arrForm as $key =>
$val) {
if ($this->arrErr ||
!empty($_POST["return"])) { // 入力エラーのチェック
if ($_POST["mode"] ==
"set1") {
$checkVal =
array("email", "password", "reminder", "reminder_answer", "name01", "name02", "kana01", "kana02");
} elseif ($_POST["mode"] ==
"set2") {
$checkVal =
array("sex", "year", "month", "day", "zip01", "zip02");
$checkVal =
array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mailmaga_flg");
foreach($this->arrForm as $key =>
$val) {
if ($key !=
"mode" &&
$key !=
"submit" &&
$key !=
"return" &&
$key !=
session_name() &&
!in_array($key, $checkVal))
$this->list_data[ $key ] =
$val;
if ($_POST["mode"] ==
"set1") {
} elseif ($_POST["mode"] ==
"set2") {
if (@$this->arrForm['pref'] ==
"" &&
@$this->arrForm['addr01'] ==
"" &&
@$this->arrForm['addr02'] ==
"") {
$address =
$this->lfGetAddress($_REQUEST['zip01'].
$_REQUEST['zip02']);
$this->pref =
@$address[0]['state'];
$this->addr01 =
@$address[0]['city'] .
@$address[0]['town'];
} elseif ($_POST["mode"] ==
"confirm") {
$passlen =
strlen($this->arrForm['password']);
if (!isset
($this->arrForm['mailmaga_flg'])) $this->arrForm['mailmaga_flg'] =
"";
if (strtolower($this->arrForm['mailmaga_flg']) ==
"on") {
$this->arrForm['mailmaga_flg'] =
"2";
$this->arrForm['mailmaga_flg'] =
"3";
if ($_POST["mode"] ==
"set1") {
$checkVal =
array("sex", "year", "month", "day", "zip01", "zip02");
} elseif ($_POST["mode"] ==
"set2") {
$checkVal =
array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mailmaga_flg");
foreach($this->arrForm as $key =>
$val) {
if ($key !=
"mode" &&
$key !=
"submit" &&
$key !=
"confirm" &&
$key !=
"return" &&
$key !=
session_name() &&
!in_array($key, $checkVal)) {
$this->list_data[ $key ] =
$val;
if ($_POST["mode"] ==
"complete") {
// 確認画面で再度エラーチェックを行う。(画面1)
$objView->assignobj($this);
$objView->display(SITE_FRAME);
// 確認画面で再度エラーチェックを行う。(画面2)
$objView->assignobj($this);
$objView->display(SITE_FRAME);
// 確認画面で再度エラーチェックを行う。(画面3)
$objView->assignobj($this);
$objView->display(SITE_FRAME);
$this->uniqid =
$this->lfRegistData ($this->arrForm, $arrRegistColumn, $arrRejectRegistColumn, CUSTOMER_CONFIRM_MAIL, true, $this->arrForm["email"]);
// 空メールを受信済みの場合はすぐに本登録完了にする。
if (isset
($_SESSION['mobile']['kara_mail_from'])) {
$param =
array("mode" =>
"regist",
$objMobile->sfMobileSetExtSessionId('id', $this->uniqid, 'regist/' .
DIR_INDEX_URL);
$this->to_name01 =
$_POST['name01'];
$this->to_name02 =
$_POST['name02'];
$objMailText->assignobj($this);
if(CUSTOMER_CONFIRM_MAIL ==
true) {
// Moba8パラメーターを保持する場合はカラム追加
if (isset
($_SESSION['a8'])) $this->etc_value =
"&a8=".
$_SESSION['a8'];
$subject =
$objHelperMail->sfMakeSubject('会員登録のご確認');
$toCustomerMail =
$objMailText->fetch("mail_templates/customer_mail.tpl");
$subject =
$objHelperMail->sfMakeSubject('会員登録のご完了');
$toCustomerMail =
$objMailText->fetch("mail_templates/customer_regist_mail.tpl");
$objCustomer->setLogin($_POST["email"]);
, $CONF["email03"] // 配送元アドレス
, $CONF["shop_name"] // 配送元 名前
, $CONF["email03"] // reply_to
, $CONF["email04"] // return_path
, $CONF["email04"] // Errors_to
, $CONF["email01"] // Bcc
$name =
$_POST["name01"] .
$_POST["name02"] .
" 様";
$objMail->setTo($_POST["email"], $name);
$objView->assignobj($this);
$objView->display(SITE_FRAME);
// {{{ protected functions
function lfRegistData ($array, $arrRegistColumn, $arrRejectRegistColumn, $confirm_flg, $isMobile =
false, $email_mobile =
"") {
foreach ($arrRegistColumn as $data) {
if (strlen($array[ $data["column"] ]) >
0 &&
! in_array($data["column"], $arrRejectRegistColumn)) {
$arrRegist[ $data["column"] ] =
$array[ $data["column"] ];
if (strlen($array["year"]) >
0 ) {
$arrRegist["birth"] =
$array["year"] .
"/".
$array["month"] .
"/".
$array["day"] .
" 00:00:00";
$arrRegist["password"] =
sha1($arrRegist["password"] .
":" .
AUTH_MAGIC);
if($confirm_flg ==
true) {
$count =
$objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid));
switch($array["mailmaga_flg"]) {
$arrRegist["mailmaga_flg"] =
4;
$arrRegist["mailmaga_flg"] =
5;
$arrRegist["mailmaga_flg"] =
6;
$arrRegist["status"] =
"1"; // 仮会員
$count =
$objConn->getOne("SELECT COUNT(*) FROM dtb_customer WHERE secret_key = ?", array($uniqid));
$arrRegist["status"] =
"2"; // 本会員
secret_keyは、テーブルで重複許可されていない場合があるので、
$arrRegist["secret_key"] =
$uniqid; // 会員登録キー
$arrRegist["create_date"] =
"now()"; // 作成日
$arrRegist["update_date"] =
"now()"; // 更新日
$arrRegist["first_buy_date"] =
""; // 最初の購入日
$arrRegist["point"] =
$this->CONF["welcome_point"]; // 入会時ポイント
$arrRegist['email_mobile'] =
$arrRegist['email'];
$arrRegist['mobile_phone_id'] =
$phoneId;
$objConn->query("BEGIN");
$objQuery->insert("dtb_customer", $arrRegist);
/* メルマガ会員機能は現在停止中 2007/03/07
$sql = "SELECT count(*) FROM dtb_customer_mail WHERE email = ?";
$mailResult = $objConn->getOne($sql, array($arrRegist["email"]));
$arrRegistMail["email"] = $arrRegist["email"];
if ($array["mailmaga_flg"] == 1) {
$arrRegistMail["mailmaga_flg"] = 4;
} elseif ($array["mailmaga_flg"] == 2) {
$arrRegistMail["mailmaga_flg"] = 5;
$arrRegistMail["mailmaga_flg"] = 6;
$arrRegistMail["update_date"] = "now()";
$objQuery->update("dtb_customer_mail", $arrRegistMail, "email = '" .addslashes($arrRegistMail["email"]). "'");
$arrRegistMail["create_date"] = "now()";
$objQuery->insert("dtb_customer_mail", $arrRegistMail);
$objConn->query("COMMIT");
* K : 「半角(ハンカク)片仮名」を「全角片仮名」に変換
* C : 「全角ひら仮名」を「全角かた仮名」に変換
* V : 濁点付きの文字を一文字に変換。"K","H"と共に使用します
* n : 「全角」数字を「半角(ハンカク)」に変換
foreach ($arrRegistColumn as $data) {
$arrConvList[ $data["column"] ] =
$data["convert"];
foreach ($arrConvList as $key =>
$val) {
if(isset
($array[$key]) &&
strlen($array[$key]) >
0) {
$objErr->doFunc(array("お名前(姓)", 'name01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
$objErr->doFunc(array("お名前(名)", 'name02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
$objErr->doFunc(array("フリガナ(セイ)", 'kana01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
$objErr->doFunc(array("フリガナ(メイ)", 'kana02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
$objErr->doFunc(array("郵便番号1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK"));
$objErr->doFunc(array("郵便番号2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK"));
$objErr->doFunc(array("郵便番号", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
$objErr->doFunc(array("都道府県", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
$objErr->doFunc(array("ご住所1", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
$objErr->doFunc(array("ご住所2", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
$objErr->doFunc(array('メールアドレス', "email", MTEXT_LEN) ,array("NO_SPTAB", "EXIST_CHECK", "EMAIL_CHECK", "SPTAB_CHECK" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
$objErr->doFunc(array('メールアドレス(確認)', "email02", MTEXT_LEN) ,array("NO_SPTAB", "EXIST_CHECK", "EMAIL_CHECK","SPTAB_CHECK" , "EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
$objErr->doFunc(array('メールアドレス', 'メールアドレス(確認)', "email", "email02") ,array("EQUAL_CHECK"));
//現会員の判定 → 現会員もしくは仮登録中は、メアド一意が前提になってるので同じメアドで登録不可
if (strlen($array["email"]) >
0) {
$arrRet =
$objQuery->select("email, update_date, del_flg", "dtb_customer","email = ? ORDER BY del_flg", array($array["email"]));
if($arrRet[0]['del_flg'] !=
'1') {
if (!isset
($objErr->arrErr['email'])) $objErr->arrErr['email'] =
"";
$objErr->arrErr["email"] .=
"※ すでに会員登録で使用されているメールアドレスです。<br />";
$leave_time =
SC_Utils_Ex::sfDBDatetoTime($arrRet[0]['update_date']);
$pass_time =
$now_time -
$leave_time;
$limit_time =
ENTRY_LIMIT_HOUR *
3600;
if($pass_time <
$limit_time) {
if (!isset
($objErr->arrErr['email'])) $objErr->arrErr['email'] =
"";
$objErr->arrErr["email"] .=
"※ 退会から一定期間の間は、同じメールアドレスを使用することはできません。<br />";
$objErr->doFunc(array("お電話番号1", 'tel01'), array("EXIST_CHECK","SPTAB_CHECK" ));
$objErr->doFunc(array("お電話番号2", 'tel02'), array("EXIST_CHECK","SPTAB_CHECK" ));
$objErr->doFunc(array("お電話番号3", 'tel03'), array("EXIST_CHECK","SPTAB_CHECK" ));
$objErr->doFunc(array("お電話番号", "tel01", "tel02", "tel03",TEL_ITEM_LEN) ,array("TEL_CHECK"));
$objErr->doFunc(array("FAX番号1", 'fax01'), array("SPTAB_CHECK"));
$objErr->doFunc(array("FAX番号2", 'fax02'), array("SPTAB_CHECK"));
$objErr->doFunc(array("FAX番号3", 'fax03'), array("SPTAB_CHECK"));
$objErr->doFunc(array("FAX番号", "fax01", "fax02", "fax03", TEL_ITEM_LEN) ,array("TEL_CHECK"));
$objErr->doFunc(array("ご性別", "sex") ,array("SELECT_CHECK", "NUM_CHECK"));
$objErr->doFunc(array("パスワード", 'password', PASSWORD_LEN1, PASSWORD_LEN2), array("EXIST_CHECK", "SPTAB_CHECK" ,"ALNUM_CHECK", "NUM_RANGE_CHECK"));
$objErr->doFunc(array("パスワード(確認)", 'password02', PASSWORD_LEN1, PASSWORD_LEN2), array("EXIST_CHECK", "SPTAB_CHECK" ,"ALNUM_CHECK", "NUM_RANGE_CHECK"));
$objErr->doFunc(array('パスワード', 'パスワード(確認)', "password", "password02") ,array("EQUAL_CHECK"));
$objErr->doFunc(array("パスワードを忘れたときのヒント 質問", "reminder") ,array("SELECT_CHECK", "NUM_CHECK"));
$objErr->doFunc(array("パスワードを忘れたときのヒント 答え", "reminder_answer", STEXT_LEN) ,array("EXIST_CHECK","SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
$objErr->doFunc(array("メールマガジン", "mailmaga_flg") ,array("SELECT_CHECK", "NUM_CHECK"));
$objErr->doFunc(array("生年月日", "year", "month", "day"), array("CHECK_BIRTHDAY"));
$objErr->doFunc(array("メールマガジン", 'mailmaga_flg'), array("SELECT_CHECK"));
for ($i=
0;$i<
$passlen;true){
$conn =
new SC_DBconn(ZIP_DSN);
$sqlse =
"SELECT state, city, town FROM mtb_zip WHERE zipcode = ?";
$data_list =
$conn->getAll($sqlse, array($zipcode));
総務省からダウンロードしたデータをそのままインポートすると
$town =
$data_list[0]['town'];
$data_list[0]['town'] =
$town;
$data_list[0]['state'] =
$arrREV_PREF[$data_list[0]['state']];
$objErr->doFunc(array("お名前(姓)", 'name01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
$objErr->doFunc(array("お名前(名)", 'name02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
$objErr->doFunc(array("お名前(カナ/姓)", 'kana01', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
$objErr->doFunc(array("お名前(カナ/名)", 'kana02', STEXT_LEN), array("EXIST_CHECK", "NO_SPTAB", "SPTAB_CHECK" ,"MAX_LENGTH_CHECK", "KANA_CHECK"));
$objErr->doFunc(array('メールアドレス', "email", MTEXT_LEN) ,array("NO_SPTAB", "EXIST_CHECK", "EMAIL_CHECK", "SPTAB_CHECK" ,"EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK", "MOBILE_EMAIL_CHECK"));
//現会員の判定 → 現会員もしくは仮登録中は、メアド一意が前提になってるので同じメアドで登録不可
if (strlen($array["email"]) >
0) {
$arrRet =
$objQuery->select("email, update_date, del_flg", "dtb_customer","email = ? OR email_mobile = ? ORDER BY del_flg", array($array["email"], $array["email"]));
if($arrRet[0]['del_flg'] !=
'1') {
$objErr->arrErr["email"] .=
"※ すでに会員登録で使用されているメールアドレスです。<br />";
$leave_time =
SC_Utils_Ex::sfDBDatetoTime($arrRet[0]['update_date']);
$pass_time =
$now_time -
$leave_time;
$limit_time =
ENTRY_LIMIT_HOUR *
3600;
if($pass_time <
$limit_time) {
$objErr->arrErr["email"] .=
"※ 退会から一定期間の間は、同じメールアドレスを使用することはできません。<br />";
$objErr->doFunc(array("パスワード", 'password', PASSWORD_LEN1, PASSWORD_LEN2), array("EXIST_CHECK", "SPTAB_CHECK" ,"ALNUM_CHECK", "NUM_RANGE_CHECK"));
$objErr->doFunc(array("パスワード確認用の質問", "reminder") ,array("SELECT_CHECK", "NUM_CHECK"));
$objErr->doFunc(array("パスワード確認用の質問の答え", "reminder_answer", STEXT_LEN) ,array("EXIST_CHECK","SPTAB_CHECK" , "MAX_LENGTH_CHECK"));
$objErr->doFunc(array("郵便番号1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK"));
$objErr->doFunc(array("郵便番号2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK"));
$objErr->doFunc(array("郵便番号", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
$objErr->doFunc(array("性別", "sex") ,array("SELECT_CHECK", "NUM_CHECK"));
$objErr->doFunc(array("生年月日", "year", "month", "day"), array("CHECK_BIRTHDAY"));
$objErr->doFunc(array("都道府県", 'pref'), array("SELECT_CHECK","NUM_CHECK"));
$objErr->doFunc(array("市区町村", "addr01", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
$objErr->doFunc(array("番地", "addr02", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK" ,"MAX_LENGTH_CHECK"));
$objErr->doFunc(array("電話番号1", 'tel01'), array("EXIST_CHECK","SPTAB_CHECK" ));
$objErr->doFunc(array("電話番号2", 'tel02'), array("EXIST_CHECK","SPTAB_CHECK" ));
$objErr->doFunc(array("電話番号3", 'tel03'), array("EXIST_CHECK","SPTAB_CHECK" ));
$objErr->doFunc(array("電話番号", "tel01", "tel02", "tel03",TEL_ITEM_LEN) ,array("TEL_CHECK"));
Documentation generated on Tue, 28 Apr 2009 18:12:07 +0900 by phpDocumentor 1.4.2