Changeset 19667


Ignore:
Timestamp:
2010/11/11 12:44:34 (11 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20101110111556-45m1fnz2see8k20q
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/helper/SC_Helper_Session.php 15277@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fhelper%2FSC_Helper_Session.php
data/class/pages/LC_Page.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2FLC_Page.php
bzr:mapping-version:
v4
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20101111034431-giq5tlaw0el79973
bzr:revno:
2397
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:timestamp:
2010-11-11 12:44:31.529000044 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2010-11-11T03:44:31.529000Z
Message:

スマートフォン対応(#787)

  • LC_Page::createToken() を SC_Helper_Session に移動
Location:
branches/version-2_5-dev/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_Session.php

    r19662 r19667  
    153153    function getToken() { 
    154154        if (empty($_SESSION[TRANSACTION_ID_NAME])) { 
    155             // FIXME 
    156             //$_SESSION[TRANSACTION_ID_NAME] = $this->createToken(); 
     155            $_SESSION[TRANSACTION_ID_NAME] = $this->createToken(); 
    157156        } 
    158157        return $_SESSION[TRANSACTION_ID_NAME]; 
     158    } 
     159 
     160    /** 
     161     * トランザクショントークン用の予測困難な文字列を生成して返す. 
     162     * 
     163     * @access private 
     164     * @return string トランザクショントークン用の文字列 
     165     */ 
     166    function createToken() { 
     167        return sha1(uniqid(rand(), true)); 
    159168    } 
    160169 
     
    192201        return $ret; 
    193202    } 
    194  
    195203} 
    196204?> 
  • branches/version-2_5-dev/data/class/pages/LC_Page.php

    r19662 r19667  
    465465     */ 
    466466    function createToken() { 
     467echo "SC_Helper_Session::createToken()に移行してね。"; 
     468exit; 
    467469        return sha1(uniqid(rand(), true)); 
    468470    } 
Note: See TracChangeset for help on using the changeset viewer.