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

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

File:
1 edited

Legend:

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

    r17137 r17477  
    2121 * along with this program; if not, write to the Free Software 
    2222 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
     23 */ 
    2324 
    24  */ 
    25 $include_dir = realpath(dirname( __FILE__)); 
    26 require_once($include_dir . "/../define.php"); 
     25$include_dir = realpath(dirname( __FILE__)) . '/'; 
     26 
     27if (!defined("HTML_PATH")) { 
     28    define("HTML_PATH", realpath($include_dir . '../') . '/'); 
     29} 
     30 
     31require_once(HTML_PATH . "define.php"); 
     32 
     33if (!defined("DATA_PATH")) { 
     34    define("DATA_PATH", HTML_PATH . HTML2DATA_DIR); 
     35} 
     36 
    2737if (!defined("CLASS_PATH")) { 
    2838    /** クラスパス */ 
    29     define("CLASS_PATH", $include_dir . "/.." . HTML2DATA_DIR . "class/"); 
     39    define("CLASS_PATH", DATA_PATH . "class/"); 
    3040} 
    3141 
    3242if (!defined("CLASS_EX_PATH")) { 
    3343    /** クラスパス */ 
    34     define("CLASS_EX_PATH", $include_dir . "/.." . HTML2DATA_DIR . "class_extends/"); 
     44    define("CLASS_EX_PATH", DATA_PATH . "class_extends/"); 
    3545} 
    3646 
    3747if (!defined("CACHE_PATH")) { 
    3848    /** キャッシュ生成ディレクトリ */ 
    39     define("CACHE_PATH", $include_dir . "/.." . HTML2DATA_DIR . "cache/"); 
     49    define("CACHE_PATH", DATA_PATH . "cache/"); 
    4050} 
    4151require_once(CLASS_EX_PATH . "SC_Initial_Mobile_Ex.php"); 
     
    4454$objInit->init(); 
    4555 
    46 require_once($include_dir . "/.." . HTML2DATA_DIR . "include/module.inc"); 
     56 
     57require_once(DATA_PATH . "include/module.inc"); 
    4758require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php"); 
    4859require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php"); 
     
    7586require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 
    7687require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mail_Ex.php"); 
    77 include_once($include_dir . "/require_plugin.php"); 
     88include_once($include_dir . "require_plugin.php"); 
    7889 
    7990// セッションハンドラ開始 
Note: See TracChangeset for help on using the changeset viewer.