質問 > 管理機能 > 共有SSLの問題を皆で解決しましょう!(というか本当に必要です;) |
管理機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
tonton |
投稿日時: 2008/10/25 22:34
対応状況: −−−
|
仙人 登録日: 2008/8/14 居住地: 投稿: 437 |
Re: 共有SSLの問題を皆で解決しましょう!(というか本当に必要です;) >seasoftさま
いくつかの標準的なパターンで購入動作してみていますが、動作に問題はないようです。 いい感じですね! もう少し見てみます。 (気になるけど、良く分からないこと★) /shopping/SC_PageShopping.php で前半の記述が、下記のようになっているのですが、 deliv.phpのみ「./devliv.php」と直に記述されていて、payment.phpなどは、「URL_SHOP_PAYMENT」と変数で指定されているのですが、「./devliv.php」を「URL_DELIV_TOP」とすると、その手前のページから動作しなくなり、「URL_SHOP_PAYMENT」を「./payment.php」にしても同様に表示は違いますが動作しなくなります。 これが、カートの動作の途中でおかしくなることに関係するのでは、と想像しました。が、これも想像の範囲ですので、もう少し触ってみようと思いますが、こちらについても何か分かれば・・・と。 閲覧していらっしゃる方で、何かご存知の方がいらっしゃいましたら、お助けいただけませんでしょうか。 宜しくお願いします。 ------------------------- require_once(CLASS_PATH . "pages/LC_Page.php"); /** * ショッピングログインのページクラス. * * @package Page * @author LOCKON CO.,LTD. * @version $Id:LC_Page_Shopping.php 15532 2007-08-31 14:39:46Z nanasess $ */ class LC_Page_Shopping extends LC_Page { // {{{ properties /** フォームパラメータ */ var $objFormParam; /** 年 */ var $year; // }}} // {{{ functions /** * Page を初期化する. * * @return void */ function init() { parent::init(); $this->tpl_mainpage = 'shopping/index.tpl'; $this->tpl_column_num = 1; $masterData = new SC_DB_MasterData(); $this->arrPref = $masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank")); $this->arrSex = $masterData->getMasterData("mtb_sex"); $this->arrJob = $masterData->getMasterData("mtb_job"); $this->tpl_onload = 'fnCheckInputDeliv();'; $this->allowClientCache(); } /** * Page のプロセス. * * @return void */ function process() { global $objCampaignSess; $conn = new SC_DBConn(); $objView = new SC_SiteView(); $objSiteSess = new SC_SiteSession(); $objCartSess = new SC_CartSession(); $objCampaignSess = new SC_CampaignSession(); $objCustomer = new SC_Customer(); $objCookie = new SC_Cookie(); $this->objFormParam = new SC_FormParam(); // フォーム用 $this->lfInitParam(); // パラメータ情報の初期化 $this->objFormParam->setParam($_POST); // POST値の取得 // ユーザユニークIDの取得と購入状態の正当性をチェック $uniqid = SC_Utils_Ex::sfCheckNormalAccess($objSiteSess, $objCartSess); $this->tpl_uniqid = $uniqid; // ログインチェック if($objCustomer->isLoginSuccess()) { // すでにログインされている場合は、お届け先設定画面に転送 $this->sendRedirect($this->getLocation("./deliv.php"), array()); exit; } if ($_SERVER["REQUEST_METHOD"] == "POST") { if (!$this->isValidToken()) { SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, "", true); } } if (!isset($_POST['mode'])) $_POST['mode'] = ""; switch($_POST['mode']) { case 'nonmember_confirm': $this->lfSetNonMember($this); // ※breakなし case 'confirm': // 入力値の変換 $this->objFormParam->convParam(); $this->objFormParam->toLower('order_mail'); $this->objFormParam->toLower('order_mail_check'); $this->arrErr = $this->lfCheckError(); // 入力エラーなし if(count($this->arrErr) == 0) { // DBへのデータ登録 $this->lfRegistData($uniqid); // お届け先のコピー $this->lfCopyDeliv($uniqid, $_POST); // 正常に登録されたことを記録しておく $objSiteSess->setRegistFlag(); // お支払い方法選択ページへ移動 $this->sendRedirect($this->getLocation(URL_SHOP_PAYMENT)); exit; } break; // 前のページに戻る case 'return': // 確認ページへ移動 $this->sendRedirect($this->getLocation(URL_CART_TOP)); exit; break; case 'nonmember': $this->lfSetNonMember($this); // ※breakなし default: if(isset($_GET['from']) && $_GET['from'] == 'nonmember') { $this->lfSetNonMember($this); } // ユーザユニークIDの取得 $uniqid = $objSiteSess->getUniqId(); $objQuery = new SC_Query(); $where = "order_temp_id = ?"; $arrRet = $objQuery->select("*", "dtb_order_temp", $where, array($uniqid)); if (empty($arrRet)) $arrRet = array( array('order_email' => "", 'order_birth' => "")); // DB値の取得 $this->objFormParam->setParam($arrRet[0]); $this->objFormParam->setValue('order_email_check', $arrRet[0]['order_email']); $this->objFormParam->setDBDate($arrRet[0]['order_birth']); break; } // クッキー判定 $this->tpl_login_email = $objCookie->getCookie('login_email'); if($this->tpl_login_email != "") { $this->tpl_login_memory = "1"; } // 選択用日付の取得 $objDate = new SC_Date(START_BIRTH_YEAR); $this->arrYear = $objDate->getYear('', 1950); // 日付プルダウン設定 $this->arrMonth = $objDate->getMonth(); $this->arrDay = $objDate->getDay(); if($this->year == '') { $this->year = '----'; } // 入力値の取得 $this->arrForm = $this->objFormParam->getFormParamList(); if(empty($this->arrForm['year']['value'])){ $this->arrForm['year']['value'] = '----'; } $this->transactionid = $this->getToken(); $objView->assignobj($this); // フレームを選択(キャンペーンページから遷移なら変更) $objCampaignSess->pageView($objView); } ------------------------- |
フラット表示 | 前のトピック | 次のトピック |