source: branches/feature-module-update/html/mobile/shopping/load_payment_module.php @ 15080

Revision 15080, 1.2 KB checked in by nanasess, 17 years ago (diff)

svn properties 設定

  • svn:mime-type - application/x-httpd-php; charset=UTF-8
  • svn:keywords - Id
  • Property svn:keywords set to Id
  • Property svn:mime-type set to application/x-httpd-php; charset=UTF-8
Line 
1<?php
2/**
3 *
4 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
5 *
6 * http://www.lockon.co.jp/
7 *
8 */
9require_once("../require.php");
10
11$objSiteSess = new SC_SiteSession();
12$objCartSess = new SC_CartSession();
13$objQuery = new SC_Query();
14
15// 前のページで正しく登録手続きが行われた記録があるか判定
16sfIsPrePage($objSiteSess, true);
17
18// アクセスの正当性の判定
19$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
20
21$payment_id = $_SESSION["payment_id"];
22
23// 支払いIDが無い場合にはエラー
24if($payment_id == ""){
25    sfDispSiteError(PAGE_ERROR, "", true, "", true);
26}
27
28// 決済情報を取得する
29if(sfColumnExists("dtb_payment", "memo01")){
30    $sql = "SELECT module_path, memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 FROM dtb_payment WHERE payment_id = ?";
31    $arrPayment = $objQuery->getall($sql, array($payment_id));
32}
33
34if(count($arrPayment) > 0) {
35    $path = $arrPayment[0]['module_path'];
36    if(file_exists($path)) {
37        require_once($path);
38        exit;
39    } else {
40        sfDispSiteError(FREE_ERROR_MSG, "", true, "モジュールファイルの取得に失敗しました。<br />この手続きは無効となりました。", true);
41    }
42}
43
44?>
Note: See TracBrowser for help on using the repository browser.