Changeset 18864


Ignore:
Timestamp:
2010/10/25 16:20:11 (11 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20101021091242-zmf1sgnqnjj8z2bm
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/pages/shopping/LC_Page_Shopping_LoadPaymentModule.php lc_page_shopping_loa-20101025071457-rpmc2g2y1ik9lyow-1
data/class_extends/page_extends/shopping/LC_Page_Shopping_LoadPaymentModule_Ex.php lc_page_shopping_loa-20101025071457-rpmc2g2y1ik9lyow-2
html/shopping/load_payment_module.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Fshopping%2Fload_payment_module.php
test/class/page/shopping shopping-20101025071457-rpmc2g2y1ik9lyow-3
test/class/page/shopping/LC_Page_Shopping_LoadPaymentModule_Test.php lc_page_shopping_loa-20101025071501-16934ygv2y12gz92-1
bzr:mapping-version:
v4
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20101025072007-arqxjf340sqyjr8e
bzr:revno:
2344
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:timestamp:
2010-10-25 16:20:07.926000118 +0900
bzr:user-agent:
bzr2.2.0+bzr-svn1.0.3
svn:original-date:
2010-10-25T07:20:07.926000Z
Message:

決済モジュールから load_payment_module へ戻った場合の挙動を改善(#842)

Location:
branches/version-2_5-dev
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/html/shopping/load_payment_module.php

    r18701 r18864  
    2121 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    2222 */ 
     23 
     24// {{{ requires 
    2325require_once("../require.php"); 
     26require_once(CLASS_EX_PATH . "page_extends/shopping/LC_Page_Shopping_LoadPaymentModule_Ex.php"); 
    2427 
    25 $objSiteSess = new SC_SiteSession(); 
    26 $objCartSess = new SC_CartSession(); 
    27 $objQuery = new SC_Query(); 
     28// }}} 
     29// {{{ generate page 
    2830 
    29 // 前のページで正しく登録手続きが行われた記録があるか判定 
    30 SC_Utils::sfIsPrePage($objSiteSess); 
    31 GC_Utils::gfPrintLog("before"); 
    32 // SPSモジュール連携用 
    33 if (file_exists(MODULE_PATH . 'mdl_sps/inc/include.php') 
    34  && !$objCartSess->getTotalQuantity()) { 
    35  
    36     require_once MODULE_PATH . 'mdl_sps/inc/include.php'; 
    37     header("Location: " . ERROR_URL); 
    38     exit; 
    39 } 
    40  
    41 // アクセスの正当性の判定 
    42 $uniqid = SC_Utils::sfCheckNormalAccess($objSiteSess, $objCartSess); 
    43 GC_Utils::gfPrintLog("after"); 
    44  
    45 $payment_id = $_SESSION["payment_id"]; 
    46  
    47 // 支払いIDが無い場合にはエラー 
    48 if($payment_id == ""){ 
    49     SC_Utils::sfDispSiteError(PAGE_ERROR, "", true); 
    50 } 
    51  
    52 // 決済情報を取得する 
    53 $objDB = new SC_Helper_DB_Ex(); 
    54  
    55 if($objDB->sfColumnExists("dtb_payment", "memo01")){ 
    56     $sql = "SELECT module_path, memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 FROM dtb_payment WHERE payment_id = ?"; 
    57     $arrPayment = $objQuery->getall($sql, array($payment_id)); 
    58 } 
    59  
    60 if(count($arrPayment) > 0) { 
    61     $path = $arrPayment[0]['module_path']; 
    62     if(file_exists($path)) { 
    63         require_once($path); 
    64         exit; 
    65     } else { 
    66         SC_Utils::sfDispSiteError(FREE_ERROR_MSG, "", true, "モジュールファイルの取得に失敗しました。<br />この手続きは無効となりました。"); 
    67     } 
    68 } 
    69  
     31$objPage = new LC_Page_Shopping_LoadPaymentModule_Ex(); 
     32register_shutdown_function(array($objPage, "destroy")); 
     33$objPage->init(); 
     34$objPage->process(); 
    7035?> 
Note: See TracChangeset for help on using the changeset viewer.