Ignore:
Timestamp:
2013/05/02 18:11:36 (13 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Cookie.php

    r22567 r22796  
    2626 * 
    2727 */ 
    28 class SC_Cookie  
    29 { 
     28class SC_Cookie { 
    3029 
    3130    var $expire; 
    3231 
    3332    // コンストラクタ 
    34     function __construct($day = COOKIE_EXPIRE) 
    35     { 
     33    function __construct($day = COOKIE_EXPIRE) { 
    3634        // 有効期限 
    3735        $this->expire = time() + ($day * 24 * 3600); 
     
    3937 
    4038    // クッキー書き込み 
    41     function setCookie($key, $val) 
    42     { 
     39    function setCookie($key, $val) { 
    4340        setcookie($key, $val, $this->expire, ROOT_URLPATH, DOMAIN_NAME); 
    4441    } 
     
    4946     * EC-CUBE をURLパスルート以外にインストールしている場合、上位ディレクトリの値も(劣後ではあるが)取得する点に留意。 
    5047     */ 
    51     function getCookie($key) 
    52     { 
     48    function getCookie($key) { 
    5349        return isset($_COOKIE[$key]) ? $_COOKIE[$key] : null; 
    5450    } 
Note: See TracChangeset for help on using the changeset viewer.