Ignore:
Timestamp:
2012/02/09 14:30:16 (12 years ago)
Author:
Seasoft
Message:

#1634 (require_base.php と require_safe.php を1本化する)

File:
1 edited

Legend:

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

    r21455 r21464  
    3434require_once DATA_REALDIR . 'require_classes.php'; 
    3535 
    36 // インストール中で無い場合、 
    37 if (!SC_Utils_Ex::sfIsInstallFunction()) { 
    38     // インストールチェック 
    39     SC_Utils_Ex::sfInitInstall(); 
     36// 定数 SAFE が設定されている場合、DBアクセスを回避する。主に、エラー画面を意図する。 
     37if (!defined('SAFE') || !SAFE) { 
     38    // インストール中で無い場合、 
     39    if (!SC_Utils_Ex::sfIsInstallFunction()) { 
     40        // インストールチェック 
     41        SC_Utils_Ex::sfInitInstall(); 
    4042 
    41     // セッションハンドラ開始 
    42     require_once CLASS_EX_REALDIR . 'helper_extends/SC_Helper_Session_Ex.php'; 
    43     $objSession = new SC_Helper_Session_Ex(); 
     43        // セッションハンドラ開始 
     44        require_once CLASS_EX_REALDIR . 'helper_extends/SC_Helper_Session_Ex.php'; 
     45        $objSession = new SC_Helper_Session_Ex(); 
    4446 
    45     // セッション初期化・開始 
    46     require_once CLASS_REALDIR . 'session/SC_SessionFactory.php'; 
    47     $sessionFactory = SC_SessionFactory::getInstance(); 
    48     $sessionFactory->initSession(); 
    49      
    50     // プラグインを読み込む 
    51     require_once DATA_REALDIR . 'require_plugin.php'; 
     47        // セッション初期化・開始 
     48        require_once CLASS_REALDIR . 'session/SC_SessionFactory.php'; 
     49        $sessionFactory = SC_SessionFactory::getInstance(); 
     50        $sessionFactory->initSession(); 
     51         
     52        // プラグインを読み込む 
     53        require_once DATA_REALDIR . 'require_plugin.php'; 
    5254 
    53     /* 
    54      * 管理画面の場合は認証行う. 
    55      * 認証処理忘れ防止のため, LC_Page_Admin::init() 等ではなく, ここでチェックする. 
    56      */ 
    57     $objSession->adminAuthorization(); 
    58  
     55        /* 
     56         * 管理画面の場合は認証行う. 
     57         * 認証処理忘れ防止のため, LC_Page_Admin::init() 等ではなく, ここでチェックする. 
     58         */ 
     59        $objSession->adminAuthorization(); 
     60    } 
    5961} 
    60 ?> 
Note: See TracChangeset for help on using the changeset viewer.