source: temp/trunk/html/shopping/load_payment_module.php @ 7677

Revision 7677, 1.2 KB checked in by kakinaka, 20 years ago (diff)

blank

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2/*
3 * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7require_once("../require.php");
8
9$objSiteSess = new SC_SiteSession();
10$objCartSess = new SC_CartSession();
11$objQuery = new SC_Query();
12
13// Á°¤Î¥Ú¡¼¥¸¤ÇÀµ¤·¤¯ÅÐÏ¿¼ê³¤­¤¬¹Ô¤ï¤ì¤¿µ­Ï¿¤¬¤¢¤ë¤«È½Äê
14sfIsPrePage($objSiteSess);
15
16// ¥¢¥¯¥»¥¹¤ÎÀµÅöÀ­¤ÎȽÄê
17$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
18
19$payment_id = $_SESSION["payment_id"];
20
21sfprintr($_SESSION);
22
23// »Ùʧ¤¤ID¤¬Ìµ¤¤¾ì¹ç¤Ë¤Ï¥¨¥é¡¼
24if($payment_id == ""){
25    $_SESSION['site']['now_page'] ="";
26    sfDispSiteError(PAGE_ERROR, "", true);
27}
28
29// ·èºÑ¾ðÊó¤ò¼èÆÀ¤¹¤ë
30if(sfColumnExists("dtb_payment", "memo01")){
31    $sql = "SELECT module_path, memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 FROM dtb_payment WHERE payment_id = ?";
32    $arrPayment = $objQuery->getall($sql, array($payment_id));
33}
34
35if(count($arrPayment) > 0) {
36    $path = $arrPayment[0]['module_path'];
37    if(file_exists($path)) {
38        require_once($path);
39        exit;
40    } else {
41        $_SESSION['site']['now_page'] ="";
42        sfDispSiteError(FREE_ERROR_MSG, "", true, "¥â¥¸¥å¡¼¥ë¥Õ¥¡¥¤¥ë¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br />¤³¤Î¼ê³¤­¤Ï̵¸ú¤È¤Ê¤ê¤Þ¤·¤¿¡£");
43    }
44}
45
46?>
Note: See TracBrowser for help on using the repository browser.