Ignore:
Timestamp:
2008/07/29 20:55:08 (18 years ago)
Author:
Seasoft
Message:

定数「HTML2DATA_DIR」と「DATA_PATH」が別々に定義されているのを常に「HTML2DATA_DIR」から生成するように変更。ディレクトリ構成の変更に柔軟に対応できることを目論む。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/html/admin/require.php

    r17182 r17477  
    2121 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    2222 */ 
    23 $include_dir = realpath(dirname( __FILE__)); 
    24 require_once($include_dir . "/../define.php"); 
     23 
     24$include_dir = realpath(dirname( __FILE__)) . '/'; 
     25 
     26if (!defined("HTML_PATH")) { 
     27    define("HTML_PATH", realpath($include_dir . '../') . '/'); 
     28} 
     29 
     30require_once(HTML_PATH . "define.php"); 
     31 
     32if (!defined("DATA_PATH")) { 
     33    define("DATA_PATH", HTML_PATH . HTML2DATA_DIR); 
     34} 
     35 
    2536if (!defined("CLASS_PATH")) { 
    2637    /** クラスパス */ 
    27     define("CLASS_PATH", $include_dir . "/.." . HTML2DATA_DIR . "class/"); 
     38    define("CLASS_PATH", DATA_PATH . "class/"); 
    2839} 
    2940 
    3041if (!defined("CLASS_EX_PATH")) { 
    3142    /** クラスパス */ 
    32     define("CLASS_EX_PATH", $include_dir . "/.." . HTML2DATA_DIR . "class_extends/"); 
     43    define("CLASS_EX_PATH", DATA_PATH . "class_extends/"); 
    3344} 
    3445 
    3546if (!defined("CACHE_PATH")) { 
    3647    /** キャッシュ生成ディレクトリ */ 
    37     define("CACHE_PATH", $include_dir . "/.." . HTML2DATA_DIR . "cache/"); 
     48    define("CACHE_PATH", DATA_PATH . "cache/"); 
    3849} 
    3950require_once(CLASS_EX_PATH . "SC_Initial_Ex.php"); 
     
    4253$objInit->init(); 
    4354 
    44 require_once($include_dir . "/.." . HTML2DATA_DIR . "include/module.inc"); 
     55 
     56require_once(DATA_PATH . "include/module.inc"); 
    4557require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php"); 
    4658require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php"); 
     
    6779require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 
    6880 
    69 require_once($include_dir . "/.." . HTML2DATA_DIR . "module/Mail.php"); 
    70 require_once($include_dir . "/.." . HTML2DATA_DIR . "module/Mail/mime.php"); 
     81require_once(DATA_PATH . "module/Mail.php"); 
     82require_once(DATA_PATH . "module/Mail/mime.php"); 
    7183 
    7284// インストールチェック 
     
    7587// セッションハンドラ開始 
    7688$objSession = new SC_Helper_Session_Ex(); 
     89 
    7790// セッション初期化・開始 
    7891require_once CLASS_PATH . 'session/SC_SessionFactory.php'; 
Note: See TracChangeset for help on using the changeset viewer.