Ignore:
Timestamp:
2007/09/05 14:15:21 (17 years ago)
Author:
nanasess
Message:

tab to space

File:
1 edited

Legend:

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

    r15532 r15609  
    66 */ 
    77 
    8 /* 日時表示用クラス */ 
     8/* 日時表示用クラス */ 
    99class SC_Cookie { 
    10      
    11     var $expire; 
    12      
    13     // コンストラクタ 
    14     function SC_Cookie($day = 365) { 
    15         // 有効期限 
    16         $this->expire = time() + ($day * 24 * 3600); 
    17     } 
    18      
    19     // クッキー書き込み 
    20     function setCookie($key, $val) { 
    21         setcookie($key, $val, $this->expire, "/", DOMAIN_NAME); 
    22     } 
    23      
    24     // クッキー取得 
    25     function getCookie($key) { 
    26         return $_COOKIE[$key]; 
    27     } 
     10 
     11    var $expire; 
     12 
     13    // コンストラクタ 
     14    function SC_Cookie($day = 365) { 
     15        // 有効期限 
     16        $this->expire = time() + ($day * 24 * 3600); 
     17    } 
     18 
     19    // クッキー書き込み 
     20    function setCookie($key, $val) { 
     21        setcookie($key, $val, $this->expire, "/", DOMAIN_NAME); 
     22    } 
     23 
     24    // クッキー取得 
     25    function getCookie($key) { 
     26        return $_COOKIE[$key]; 
     27    } 
    2828} 
    2929?> 
Note: See TracChangeset for help on using the changeset viewer.