Ignore:
Timestamp:
2007/10/10 18:16:13 (17 years ago)
Author:
nanasess
Message:

モバイル対応の関数追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/regist/LC_Page_Regist.php

    r16322 r16371  
    5050        $objSiteInfo = $objView->objSiteInfo; 
    5151        $objCustomer = new SC_Customer(); 
    52         $this->CONF = SC_Utils_Ex::sf_getBasisData(); 
     52        $objDb = new SC_Helper_DB_Ex(); 
     53        $this->CONF = $objDb->sf_getBasisData(); 
    5354        $this->arrInfo = $objSiteInfo->data; 
    5455 
     
    6162        if ($_GET["mode"] == "regist") { 
    6263 
     64            //-- 入力チェック 
     65            $this->arrErr = $this->lfErrorCheck($_GET); 
     66            if ($this->arrErr) { 
     67                $this->tpl_mainpage = 'regist/error.tpl'; 
     68                $this->tpl_css = "/css/layout/regist/error.css"; 
     69                $this->tpl_title = 'エラー'; 
     70 
     71            } else { 
     72                $registSecretKey = $this->lfRegistData($_GET);          //本会員登録(フラグ変更) 
     73                $this->lfSendRegistMail($registSecretKey);              //本会員登録完了メール送信 
     74 
     75                // ログイン済みの状態にする。 
     76                $email = $objQuery->get("dtb_customer", "email", "secret_key = ?", array($registSecretKey)); 
     77                $objCustomer->setLogin($email); 
     78                $this->sendRedirect($this->getLocation("./complate.php", $etc_val)); 
     79                exit; 
     80            } 
     81 
     82        //-- それ以外のアクセスは無効とする 
     83        } else { 
     84            $this->arrErr["id"] = "無効なアクセスです。"; 
     85            $this->tpl_mainpage = 'regist/error.tpl'; 
     86            $this->tpl_css = "/css/layout/regist/error.css"; 
     87            $this->tpl_title = 'エラー'; 
     88 
     89        } 
     90 
     91        //---- ページ表示 
     92        $objView->assignobj($this); 
     93        $objView->display(SITE_FRAME); 
     94    } 
     95 
     96 
     97    /** 
     98     * モバイルページを初期化する. 
     99     * 
     100     * @return void 
     101     */ 
     102    function mobileInit() { 
     103    } 
     104 
     105    /** 
     106     * Page のプロセス(モバイル). 
     107     * 
     108     * @return void 
     109     */ 
     110    function mobileProcess() { 
     111        $objConn = new SC_DBConn(); 
     112        $objView = new SC_MobileView(); 
     113        $objSiteInfo = $objView->objSiteInfo; 
     114        $objCustomer = new SC_Customer(); 
     115        $objDb = new SC_Helper_DB_Ex(); 
     116        $this->CONF = $objDb->sf_getBasisData(); 
     117        $arrInfo = $objSiteInfo->data; 
     118 
     119        //-- 本登録完了のためにメールから接続した場合 
     120        if ($_GET["mode"] == "regist") { 
     121     
    63122            //-- 入力チェック 
    64123            $this->arrErr = lfErrorCheck($_GET); 
     
    71130                //$this->tpl_mainpage = 'regist/complete.tpl'; 
    72131                //$this->tpl_title = ' 会員登録(完了ページ)'; 
    73                 $registSecretKey = $this->lfRegistData($_GET);          //本会員登録(フラグ変更) 
    74                 $this->lfSendRegistMail($registSecretKey);              //本会員登録完了メール送信 
     132                $registSecretKey = lfRegistData($_GET);         //本会員登録(フラグ変更) 
     133                lfSendRegistMail($registSecretKey);             //本会員登録完了メール送信 
    75134 
    76135                // ログイン済みの状態にする。 
     136                $objQuery = new SC_Query(); 
    77137                $email = $objQuery->get("dtb_customer", "email", "secret_key = ?", array($registSecretKey)); 
    78138                $objCustomer->setLogin($email); 
    79                 $this->sendRedirect($this->getLocation("./complate.php", $etc_val)); 
     139                $this->sendRedirect($this->getLocation("./complete.php")); 
     140                header("Location: " . gfAddSessionId("./complete.php")); 
    80141                exit; 
    81142            } 
    82143 
    83         //-- それ以外のアクセスは無効とする 
     144            //-- それ以外のアクセスは無効とする 
    84145        } else { 
    85146            $this->arrErr["id"] = "無効なアクセスです。"; 
Note: See TracChangeset for help on using the changeset viewer.