Ignore:
Timestamp:
2011/01/02 21:25:13 (13 years ago)
Author:
fukuda
Message:

#880(mobile/sphoneディレクトリを削除)に対応。まずmobileのみ意図通りの動作になるように一部コミット(registディレクトリ)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/regist/LC_Page_Regist.php

    r19805 r19812  
    6868     */ 
    6969    function action() { 
    70         //$objView = new SC_SiteView(); 
    7170        $objSiteInfo = $objView->objSiteInfo; 
    7271        $objCustomer = new SC_Customer(); 
    7372        $objDb = new SC_Helper_DB_Ex(); 
    7473        $this->CONF = $objDb->sfGetBasisData(); 
    75  
    76         // キャンペーンからの登録の場合の処理 
    77  
    78         if(!empty($_GET["cp"])) { 
    79             $etc_val['cp'] = $_GET['cp']; 
    80         } 
    8174 
    8275        //-- 本登録完了のためにメールから接続した場合 
     
    10598            SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", true, "無効なアクセスです。"); 
    10699        } 
    107  
    108         //---- ページ表示 
    109         //$objView->assignobj($this); 
    110         //$objView->display(SITE_FRAME); 
    111     } 
    112  
    113  
    114     /** 
    115      * モバイルページを初期化する. 
    116      * 
    117      * @return void 
    118      */ 
    119     function mobileInit() { 
    120     } 
    121  
    122     /** 
    123      * Page のプロセス(モバイル). 
    124      * 
    125      * @return void 
    126      */ 
    127     function mobileProcess() { 
    128         parent::mobileProcess(); 
    129         $this->mobileAction(); 
    130         $this->sendResponse(); 
    131     } 
    132  
    133     /** 
    134      * Page のAction(モバイル). 
    135      * 
    136      * @return void 
    137      */ 
    138     function mobileAction() { 
    139         //$objView = new SC_MobileView(); 
    140         $objSiteInfo = $objView->objSiteInfo; 
    141         $objCustomer = new SC_Customer(); 
    142         $objDb = new SC_Helper_DB_Ex(); 
    143         $this->CONF = $objDb->sfGetBasisData(); 
    144  
    145         //-- 本登録完了のためにメールから接続した場合 
    146         if ($_GET["mode"] == "regist") { 
    147  
    148             //-- 入力チェック 
    149             $this->arrErr = $this->lfErrorCheck($_GET); 
    150             if ($this->arrErr) { 
    151                 $this->tpl_mainpage = 'regist/error.tpl'; 
    152                 $this->tpl_title = 'エラー'; 
    153  
    154             } else { 
    155                 $registSecretKey = $this->lfRegistData($_GET);          //本会員登録(フラグ変更) 
    156                 $this->lfSendRegistMail($registSecretKey);              //本会員登録完了メール送信 
    157  
    158                 // ログイン済みの状態にする。 
    159                 $objQuery = new SC_Query(); 
    160                 $email = $objQuery->get("email", "dtb_customer", "secret_key = ?", array($registSecretKey)); 
    161                 $objCustomer->setLogin($email); 
    162                 $this->objDisplay->redirect($this->getLocation("./complete.php")); 
    163                 exit; 
    164             } 
    165  
    166             //-- それ以外のアクセスは無効とする 
    167         } else { 
    168             $this->arrErr["id"] = "無効なアクセスです。"; 
    169             $this->tpl_mainpage = 'regist/error.tpl'; 
    170             $this->tpl_title = 'エラー'; 
    171         } 
    172  
    173         //---- ページ表示 
    174         //$objView->assignobj($this); 
    175         //$objView->display(SITE_FRAME); 
    176100    } 
    177101 
     
    206130 
    207131        $objQuery->update("dtb_customer", $arrRegist, $where, array($array["id"])); 
    208  
    209         /* 購入時の自動会員登録は行わないためDEL 
    210         // 購入時登録の場合、その回の購入を会員購入とみなす。 
    211         // 会員情報の読み込み 
    212         $where1 = "secret_key = ? AND status = 2"; 
    213         $customer = $objQuery->select("*", "dtb_customer", $where1, array($secret)); 
    214         // 初回購入情報の読み込み 
    215         $order_temp_id = $objQuery->get("order_temp_id", "dtb_order_temp"); 
    216         // 購入情報の更新 
    217         if ($order_temp_id != null) { 
    218             $arrCustomer['customer_id'] = $customer[0]['customer_id']; 
    219             $where3 = "order_temp_id = ?"; 
    220             $objQuery->update("dtb_order_temp", $arrCustomer, $where3, array($order_temp_id)); 
    221             $objQuery->update("dtb_order", $arrCustomer, $where3, array($order_temp_id)); 
    222         } 
    223         */ 
    224  
    225132        $sql = "SELECT mailmaga_flg FROM dtb_customer WHERE email = ?"; 
    226133        $result = $objQuery->getOne($sql, array($email)); 
Note: See TracChangeset for help on using the changeset viewer.