Changeset 16069


Ignore:
Timestamp:
2007/09/27 10:50:57 (16 years ago)
Author:
nanasess
Message:

クラス化に伴う修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/forgot/LC_Page_Forgot.php

    r15532 r16069  
    1414 * @package Page 
    1515 * @author LOCKON CO.,LTD. 
    16  * @version $Id$ 
     16 * @version $Id:LC_Page_Forgot.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    1818class LC_Page_Forgot extends LC_Page { 
     
    5555        // 店舗基本情報を取得 
    5656        $objDb = new SC_Helper_DB_Ex(); 
    57         $CONF = $objb->sf_getBasisData(); 
     57        $CONF = $objDb->sf_getBasisData(); 
     58 
     59        $masterData = new SC_DB_MasterData_Ex(); 
     60        $arrReminder = $masterData->getMasterData("mtb_reminder"); 
    5861 
    5962        // クッキー管理クラス 
    6063        $objCookie = new SC_Cookie(COOKIE_EXPIRE); 
     64 
     65        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
     66        if (!isset($_POST['email'])) $_POST['email'] = ""; 
    6167 
    6268        if ( $_POST['mode'] == 'mail_check' ){ 
     
    6672            $result = $conn->getAll($sql, array($_POST['email']) ); 
    6773 
    68             if ( $result[0]['reminder'] ){      // 本会員登録済みの場合 
     74            // 本会員登録済みの場合 
     75            if (isset($result[0]['reminder']) &&  $result[0]['reminder']){ 
    6976                // 入力emailが存在する 
    7077                $_SESSION['forgot']['email'] = $_POST['email']; 
     
    97104 
    98105                    // 新しいパスワードを設定する 
    99                     $this->temp_password = gfMakePassword(8); 
     106                    $this->temp_password = GC_Utils_Ex::gfMakePassword(8); 
    100107 
    101108                    if(FORGOT_MAIL == 1) { 
     
    165172    function lfSendMail($CONF, $email, $customer_name, $temp_password){ 
    166173        // パスワード変更お知らせメール送信 
    167  
    168         $objPage = new LC_Page(); 
    169         $objPage->customer_name = $customer_name; 
    170         $objPage->temp_password = $temp_password; 
     174        $this->customer_name = $customer_name; 
     175        $this->temp_password = $temp_password; 
    171176        $objMailText = new SC_SiteView(); 
    172         $objMailText->assignobj($objPage); 
     177        $objMailText->assignobj($this); 
    173178 
    174179        $toCustomerMail = $objMailText->fetch("mail_templates/forgot_mail.tpl"); 
Note: See TracChangeset for help on using the changeset viewer.