Changeset 21464 for branches/version-2_12-dev/data/require_base.php
- Timestamp:
- 2012/02/09 14:30:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/require_base.php
r21455 r21464 34 34 require_once DATA_REALDIR . 'require_classes.php'; 35 35 36 // インストール中で無い場合、 37 if (!SC_Utils_Ex::sfIsInstallFunction()) { 38 // インストールチェック 39 SC_Utils_Ex::sfInitInstall(); 36 // 定数 SAFE が設定されている場合、DBアクセスを回避する。主に、エラー画面を意図する。 37 if (!defined('SAFE') || !SAFE) { 38 // インストール中で無い場合、 39 if (!SC_Utils_Ex::sfIsInstallFunction()) { 40 // インストールチェック 41 SC_Utils_Ex::sfInitInstall(); 40 42 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(); 44 46 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'; 52 54 53 /*54 * 管理画面の場合は認証行う.55 * 認証処理忘れ防止のため, LC_Page_Admin::init() 等ではなく, ここでチェックする.56 */57 $objSession->adminAuthorization();58 55 /* 56 * 管理画面の場合は認証行う. 57 * 認証処理忘れ防止のため, LC_Page_Admin::init() 等ではなく, ここでチェックする. 58 */ 59 $objSession->adminAuthorization(); 60 } 59 61 } 60 ?>
Note: See TracChangeset
for help on using the changeset viewer.