Changeset 16371 for branches/feature-module-update/data/class/pages
- Timestamp:
- 2007/10/10 18:16:13 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/regist/LC_Page_Regist.php
r16322 r16371 50 50 $objSiteInfo = $objView->objSiteInfo; 51 51 $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(); 53 54 $this->arrInfo = $objSiteInfo->data; 54 55 … … 61 62 if ($_GET["mode"] == "regist") { 62 63 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 63 122 //-- 入力チェック 64 123 $this->arrErr = lfErrorCheck($_GET); … … 71 130 //$this->tpl_mainpage = 'regist/complete.tpl'; 72 131 //$this->tpl_title = ' 会員登録(完了ページ)'; 73 $registSecretKey = $this->lfRegistData($_GET); //本会員登録(フラグ変更)74 $this->lfSendRegistMail($registSecretKey); //本会員登録完了メール送信132 $registSecretKey = lfRegistData($_GET); //本会員登録(フラグ変更) 133 lfSendRegistMail($registSecretKey); //本会員登録完了メール送信 75 134 76 135 // ログイン済みの状態にする。 136 $objQuery = new SC_Query(); 77 137 $email = $objQuery->get("dtb_customer", "email", "secret_key = ?", array($registSecretKey)); 78 138 $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")); 80 141 exit; 81 142 } 82 143 83 //-- それ以外のアクセスは無効とする144 //-- それ以外のアクセスは無効とする 84 145 } else { 85 146 $this->arrErr["id"] = "無効なアクセスです。";
Note: See TracChangeset
for help on using the changeset viewer.