- Timestamp:
- 2011/01/02 21:25:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/regist/LC_Page_Regist.php
r19805 r19812 68 68 */ 69 69 function action() { 70 //$objView = new SC_SiteView();71 70 $objSiteInfo = $objView->objSiteInfo; 72 71 $objCustomer = new SC_Customer(); 73 72 $objDb = new SC_Helper_DB_Ex(); 74 73 $this->CONF = $objDb->sfGetBasisData(); 75 76 // キャンペーンからの登録の場合の処理77 78 if(!empty($_GET["cp"])) {79 $etc_val['cp'] = $_GET['cp'];80 }81 74 82 75 //-- 本登録完了のためにメールから接続した場合 … … 105 98 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, "", true, "無効なアクセスです。"); 106 99 } 107 108 //---- ページ表示109 //$objView->assignobj($this);110 //$objView->display(SITE_FRAME);111 }112 113 114 /**115 * モバイルページを初期化する.116 *117 * @return void118 */119 function mobileInit() {120 }121 122 /**123 * Page のプロセス(モバイル).124 *125 * @return void126 */127 function mobileProcess() {128 parent::mobileProcess();129 $this->mobileAction();130 $this->sendResponse();131 }132 133 /**134 * Page のAction(モバイル).135 *136 * @return void137 */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);176 100 } 177 101 … … 206 130 207 131 $objQuery->update("dtb_customer", $arrRegist, $where, array($array["id"])); 208 209 /* 購入時の自動会員登録は行わないためDEL210 // 購入時登録の場合、その回の購入を会員購入とみなす。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 225 132 $sql = "SELECT mailmaga_flg FROM dtb_customer WHERE email = ?"; 226 133 $result = $objQuery->getOne($sql, array($email));
Note: See TracChangeset
for help on using the changeset viewer.