Changeset 20966


Ignore:
Timestamp:
2011/05/31 21:21:14 (13 years ago)
Author:
Seasoft
Message:

#1294 (ソースを読みやすくする)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/SC_Session.php

    r20926 r20966  
    6666    /* 認証成功の判定 */ 
    6767    function IsSuccess() { 
    68         global $arrPERMISSION; 
    69        if($this->cert == CERT_STRING) { 
    70             $admin_path = preg_replace('/\/+/', '/', $_SERVER['PHP_SELF']); 
    71             $masterData                 = new SC_DB_MasterData_Ex(); 
    72             $this->arrPERMISSION        = $masterData->getMasterData("mtb_permission"); 
    73             if(isset($this->arrPERMISSION[$admin_path])) { 
     68        if ($this->cert == CERT_STRING) { 
     69            $masterData = new SC_DB_MasterData_Ex(); 
     70            $admin_path = preg_replace('/\/+/', '/', $_SERVER['PHP_SELF']); 
     71            $this->arrPERMISSION = $masterData->getMasterData("mtb_permission"); 
     72            if (isset($this->arrPERMISSION[$admin_path])) { 
    7473                // 数値が自分の権限以上のものでないとアクセスできない。 
    75                 if($this->arrPERMISSION[$admin_path] < $this->authority) { 
     74                if ($this->arrPERMISSION[$admin_path] < $this->authority) { 
    7675                    return AUTH_ERROR; 
    7776                } 
Note: See TracChangeset for help on using the changeset viewer.