Source for file LC_Page_Mypage_LoginCheck.php
Documentation is available at LC_Page_Mypage_LoginCheck.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");
* TODO frontparts/LC_Page_Frontparts_LoginCheck と抽象化させる
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Mypage_LoginCheck.php 17605 2008-09-10 11:50:26Z Seasoft $
$this->objFormParam->setParam($_POST);
if (!isset
($_POST['mode'])) $_POST['mode'] =
"";
$this->objFormParam->toLower('mypage_login_email');
$arrErr =
$this->objFormParam->checkError();
if (count($arrErr) >
0) {
$arrForm =
$this->objFormParam->getHashArray();
if ($arrForm['mypage_login_memory'] ==
"1" &&
$arrForm['mypage_login_email'] !=
"") {
$objCookie->setCookie('login_email', $_POST['mypage_login_email']);
$objCookie->setCookie('login_email', '');
if($objCustomer->getCustomerDataFromEmailPass($arrForm['mypage_login_pass'], $arrForm['mypage_login_email'], true)) {
$arrForm['mypage_login_email'] =
strtolower($arrForm['mypage_login_email']);
$where =
"(email = ? OR email_mobile = ?) AND status = 1 AND del_flg = 0";
$ret =
$objQuery->count("dtb_customer", $where, array($arrForm['mypage_login_email'], $arrForm['mypage_login_email']));
$this->objFormParam->addParam("記憶する", "mypage_login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("メールアドレス", "mypage_login_email", MTEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "EMAIL_CHECK", "NO_SPTAB" ,"EMAIL_CHAR_CHECK"));
$this->objFormParam->addParam("パスワード", "mypage_login_pass", MTEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
Documentation generated on Tue, 28 Apr 2009 18:12:34 +0900 by phpDocumentor 1.4.2