Source for file LC_Page_Regist.php
Documentation is available at LC_Page_Regist.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2011 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_EX_REALDIR . 'page_extends/LC_Page_Ex.php';
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Regist.php 21185 2011-08-11 10:37:10Z shutta $
switch ($this->getMode()) {
//-- 本登録完了のためにメールから接続した場合
$this->arrErr = $this->lfErrorCheck($_GET);
if ($this->arrErr) SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", true, $this->arrErr['id']);
$registSecretKey = $this->lfRegistData($_GET); //本会員登録(フラグ変更)
$this->lfSendRegistMail($registSecretKey); //本会員登録完了メール送信
SC_Response_Ex::sendRedirect('complete.php', array('ci' => SC_Helper_Customer_Ex::sfGetCustomerId($registSecretKey)));
SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", true, "無効なアクセスです。");
* @return string $arrRegist["secret_key"] 本登録ID
function lfRegistData($array) {
$objQuery = SC_Query_Ex::getSingletonInstance();
$arrRegist["secret_key"] = SC_Helper_Customer_Ex::sfGetUniqSecretKey(); //本登録ID発行
$arrRegist['status'] = 2;
$arrRegist["update_date"] = 'CURRENT_TIMESTAMP';
$objQuery->update("dtb_customer", $arrRegist, "secret_key = ? AND status = 1", array($array['id']));
return $arrRegist["secret_key"];
function lfErrorCheck($array) {
$objErr = new SC_CheckError_Ex($array);
if (preg_match("/^[[:alnum:]]+$/", $array['id'])) {
if (!is_numeric(SC_Helper_Customer_Ex::sfGetCustomerId($array['id'], true))) {
$objErr->arrErr['id'] = "※ 既に会員登録が完了しているか、無効なURLです。<br>";
$objErr->arrErr['id'] = "無効なURLです。メールに記載されている本会員登録用URLを再度ご確認ください。";
* @param mixed $registSecretKey
function lfSendRegistMail($registSecretKey) {
$objQuery = SC_Query_Ex::getSingletonInstance();
$objCustomer = new SC_Customer_Ex();
$objHelperMail = new SC_Helper_Mail_Ex();
$CONF = SC_Helper_DB_Ex::sfGetBasisData();
$arrCustomer = $objQuery->select("*", "dtb_customer", "secret_key = ?", array($registSecretKey));
$objCustomer->setLogin($data['email']);
$objMailText = new SC_SiteView_Ex();
$objMailText->assign('CONF', $CONF);
$objMailText->assign("name01", $data["name01"]);
$objMailText->assign("name02", $data["name02"]);
$toCustomerMail = $objMailText->fetch("mail_templates/customer_regist_mail.tpl");
$subject = $objHelperMail->sfMakesubject('会員登録が完了しました。');
, $CONF["email03"] // 配送元アドレス
, $CONF["shop_name"] // 配送元 名前
, $CONF["email03"] // reply_to
, $CONF["email04"] // return_path
, $CONF["email04"] // Errors_to
$name = $data["name01"] . $data["name02"] . " 様";
$objMail->setTo($data['email'], $name);
Documentation generated on Fri, 24 Feb 2012 14:02:14 +0900 by Seasoft
|