/** * Page のプロセス. * * @return void */ function process() { parent::process(); // ログインチェック $objCustomer = new SC_Customer_Ex(); // ログインしていない場合は必ずログインページを表示する if ($objCustomer->isLoginSuccess(true) === false) { // クッキー管理クラス $objCookie = new SC_Cookie_Ex(); // クッキー判定(メールアドレスをクッキーに保存しているか) $this->tpl_login_email = $objCookie->getCookie('login_email'); if ($this->tpl_login_email != '') { $this->tpl_login_memory = '1'; } // POSTされてきたIDがある場合は優先する。 if (isset($_POST['login_email']) && $_POST['login_email'] != '') { $this->tpl_login_email = $_POST['login_email']; } // 携帯端末IDが一致する会員が存在するかどうかをチェックする。 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_MOBILE) { $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); } $this->tpl_title = t('c_MY page (login)_01'); $this->tpl_mainpage = 'mypage/login.tpl'; } else { //マイページ会員情報表示用共通処理 $this->tpl_login = true; $this->CustomerName1 = $objCustomer->getvalue('name01'); $this->CustomerName2 = $objCustomer->getvalue('name02'); $this->CustomerPoint = $objCustomer->getvalue('point'); $this->action(); } $this->sendResponse(); }