Changeset 16983


Ignore:
Timestamp:
2008/01/15 20:10:33 (16 years ago)
Author:
naka
Message:

モバイル用load_payment_module.phpの修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/mobile/shopping/load_payment_module.php

    r16582 r16983  
    2121 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    2222 */ 
    23 require_once("../require.php"); 
    24  
    25 $objSiteSess = new SC_SiteSession(); 
    26 $objCartSess = new SC_CartSession(); 
    27 $objQuery = new SC_Query(); 
    28  
    29 // 前のページで正しく登録手続きが行われた記録があるか判定 
    30 sfIsPrePage($objSiteSess, true); 
    31  
    32 // アクセスの正当性の判定 
    33 $uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess); 
    34  
    35 $payment_id = $_SESSION["payment_id"]; 
    36  
    37 // 支払いIDが無い場合にはエラー 
    38 if($payment_id == ""){ 
    39     sfDispSiteError(PAGE_ERROR, "", true, "", true); 
    40 } 
    41  
    42 // 決済情報を取得する 
    43 if(sfColumnExists("dtb_payment", "memo01")){ 
    44     $sql = "SELECT module_path, memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 FROM dtb_payment WHERE payment_id = ?"; 
    45     $arrPayment = $objQuery->getall($sql, array($payment_id)); 
    46 } 
    47  
    48 if(count($arrPayment) > 0) { 
    49     $path = $arrPayment[0]['module_path']; 
    50     if(file_exists($path)) { 
    51         require_once($path); 
    52         exit; 
    53     } else { 
    54         sfDispSiteError(FREE_ERROR_MSG, "", true, "モジュールファイルの取得に失敗しました。<br />この手続きは無効となりました。", true); 
    55     } 
    56 } 
    57  
     23// PC版と同じファイルを読み込む 
     24require_once("../../shopping/load_payment_module.php"); 
    5825?> 
Note: See TracChangeset for help on using the changeset viewer.