Ignore:
Timestamp:
2007/07/27 19:59:11 (17 years ago)
Author:
nanasess
Message:

ページトランザクション対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/LC_Page.php

    r15117 r15141  
    3636    var $tpl_page_category; 
    3737 
    38     /** 
    39      * 安全に POST するための URL 
    40      */ 
    41     var $postURL; 
    42  
    43     /** 
    44      * このページで使用する遷移先 
    45      */ 
    46     var $transitions; 
     38    /** トランザクションID */ 
     39    var $transactionid; 
    4740 
    4841    // }}} 
     
    5447     * @return void 
    5548     */ 
    56     function init() { 
    57         $this->postURL = $_SERVER['PHP_SELF']; 
    58     } 
     49    function init() {} 
    5950 
    6051    /** 
     
    8071     */ 
    8172    function checkPreviousURI() { 
     73        // TODO 必要性検討 
    8274    } 
    8375 
     
    9789                          . "|" . preg_quote(SSL_URL, '/') . ")/", $url)) { 
    9890 
    99             // TODO パラメータが存在する場合の対応 
    100             header("Location: " . $url . "?" . TRANSACTION_ID_NAME . "=" . $this->getToken()); 
     91            $suffix = "?"; 
     92            if (!empty($_SERVER['QUERY_STRING'])) { 
     93                $suffix = "&"; 
     94            } 
     95            header("Location: " . $url . $suffix . TRANSACTION_ID_NAME . "=" . $this->getToken()); 
    10196        } 
    10297        return false; 
     
    185180    function getLocation($path, $param = array(), $useSSL = false, $documentRoot = "") { 
    186181 
     182        // TODO $_SERVER['DOCUMENT_ROOT'] をインストーラでチェックする. 
    187183        if (empty($documentRoot)) { 
    188184            $documentRoot = $_SERVER['DOCUMENT_ROOT']; 
     185 
     186            if (empty($documentRoot)) { 
     187                die("[BUG] can't get DOCUMENT_ROOT"); 
     188            } 
    189189        } 
    190190        // DocumentRoot を削除した文字列を取得. 
Note: See TracChangeset for help on using the changeset viewer.