Changeset 17439


Ignore:
Timestamp:
2008/07/18 17:05:13 (13 years ago)
Author:
naka
Message:

require.phpを統合

Location:
branches/version-2
Files:
1 added
1 deleted
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/SC_DbConn.php

    r17345 r17439  
    2424$current_dir = realpath(dirname(__FILE__)); 
    2525require_once($current_dir . "/../module/DB.php"); 
    26  
     26require_once($current_dir . "/util/SC_Utils.php"); 
     27require_once($current_dir . "/util/GC_Utils.php"); 
    2728$objDbConn = ""; 
    2829 
  • branches/version-2/data/class/util/GC_Utils.php

    r17371 r17439  
    201201                    for($i = $count; 1 <= $i; $i--) { 
    202202                        $move_number = $i + 1; 
    203                         if(file_exists("$path.$move_number")) unlink("$path.$move_number"); 
     203                        if(file_exists("$path.$move_number")) { 
     204                            unlink("$path.$move_number"); 
     205                        } 
    204206                        copy("$dirname/" . $arrLog[$i - 1], "$path.$move_number"); 
    205207                    } 
  • branches/version-2/html/admin/require.php

    r17438 r17439  
    2121 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    2222 */ 
    23 require_once(realpath(dirname( __FILE__)) . "/../require.php"); 
     23$admin_require_php_dir = realpath(dirname( __FILE__)); 
     24require_once($admin_require_php_dir . "/../define.php"); 
     25require_once($admin_require_php_dir . "/../" . HTML2DATA_DIR . "require_base.php"); 
    2426?> 
  • branches/version-2/html/mobile/require.php

    r17118 r17439  
    2323 
    2424 */ 
    25 $include_dir = realpath(dirname( __FILE__)); 
    26 require_once($include_dir . "/../define.php"); 
    27 if (!defined("CLASS_PATH")) { 
    28     /** クラスパス */ 
    29     define("CLASS_PATH", $include_dir . "/.." . HTML2DATA_DIR . "class/"); 
    30 } 
     25$mobile_require_php_dir = realpath(dirname( __FILE__)); 
     26require_once($mobile_require_php_dir . "/../define.php"); 
    3127 
    32 if (!defined("CLASS_EX_PATH")) { 
    33     /** クラスパス */ 
    34     define("CLASS_EX_PATH", $include_dir . "/.." . HTML2DATA_DIR . "class_extends/"); 
    35 } 
     28define('MOBILE_SITE', true); 
    3629 
    37 if (!defined("CACHE_PATH")) { 
    38     /** キャッシュ生成ディレクトリ */ 
    39     define("CACHE_PATH", $include_dir . "/.." . HTML2DATA_DIR . "cache/"); 
    40 } 
    41 require_once(CLASS_EX_PATH . "SC_Initial_Mobile_Ex.php"); 
    42 // アプリケーション初期化処理 
    43 $objInit = new SC_Initial_Mobile_Ex(); 
    44 $objInit->init(); 
    45  
    46 require_once($include_dir . "/.." . HTML2DATA_DIR . "include/module.inc"); 
    47 require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php"); 
    48 require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php"); 
    49 require_once(CLASS_EX_PATH . "db_extends/SC_DB_MasterData_Ex.php"); 
    50 require_once(CLASS_EX_PATH . "db_extends/SC_DB_DBFactory_Ex.php"); 
    51 require_once(CLASS_PATH . "SC_View.php"); 
    52 require_once(CLASS_PATH . "SC_DbConn.php"); 
    53 require_once(CLASS_PATH . "SC_Session.php"); 
    54 require_once(CLASS_PATH . "SC_Query.php"); 
    55 require_once(CLASS_PATH . "SC_SelectSql.php"); 
    56 require_once(CLASS_PATH . "SC_CheckError.php"); 
    57 require_once(CLASS_PATH . "SC_PageNavi.php"); 
    58 require_once(CLASS_PATH . "SC_Date.php"); 
    59 require_once(CLASS_PATH . "SC_Image.php"); 
    60 require_once(CLASS_PATH . "SC_UploadFile.php"); 
    61 require_once(CLASS_PATH . "SC_SiteInfo.php"); 
    62 require_once(CLASS_EX_PATH . "SC_SendMail_Ex.php"); 
    63 require_once(CLASS_PATH . "SC_FormParam.php"); 
    64 require_once(CLASS_PATH . "SC_CartSession.php"); 
    65 require_once(CLASS_PATH . "SC_SiteSession.php"); 
    66 require_once(CLASS_PATH . "SC_Customer.php"); 
    67 require_once(CLASS_PATH . "SC_Cookie.php"); 
    68 require_once(CLASS_PATH . "SC_Pdf.php"); 
    69 require_once(CLASS_PATH . "SC_MobileUserAgent.php"); 
    70 require_once(CLASS_PATH . "SC_MobileEmoji.php"); 
    71 require_once(CLASS_PATH . "SC_MobileImage.php"); 
    72 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_PageLayout_Ex.php"); 
    73 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_DB_Ex.php"); 
    74 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mobile_Ex.php"); 
    75 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 
    76 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mail_Ex.php"); 
    77 include_once($include_dir . "/require_plugin.php"); 
    78  
    79 // セッションハンドラ開始 
    80 $objSession = new SC_Helper_Session_Ex(); 
    81  
    82 // セッション初期化・開始 
    83 require_once CLASS_PATH . 'session/SC_SessionFactory.php'; 
    84 $sessionFactory = SC_SessionFactory::getInstance(); 
    85 $sessionFactory->initSession(); 
     30require_once($mobile_require_php_dir . "/../" . HTML2DATA_DIR . "require_base.php"); 
    8631 
    8732// モバイルサイト用の初期処理を実行する。 
     
    9540    sfGetMoba8Param($_GET['a8']); 
    9641} 
    97  
    9842?> 
  • branches/version-2/html/require.php

    r17438 r17439  
    2424$require_php_dir = realpath(dirname( __FILE__)); 
    2525require_once($require_php_dir . "/define.php"); 
    26  
    27 if (!defined("CLASS_PATH")) { 
    28     /** クラスパス */ 
    29     define("CLASS_PATH", $require_php_dir . HTML2DATA_DIR . "class/"); 
    30 } 
    31  
    32 if (!defined("CLASS_EX_PATH")) { 
    33     /** クラスパス */ 
    34     define("CLASS_EX_PATH", $require_php_dir . HTML2DATA_DIR . "class_extends/"); 
    35 } 
    36  
    37 if (!defined("CACHE_PATH")) { 
    38     /** キャッシュ生成ディレクトリ */ 
    39     define("CACHE_PATH", $require_php_dir . HTML2DATA_DIR . "cache/"); 
    40 } 
    41 require_once(CLASS_EX_PATH . "SC_Initial_Ex.php"); 
    42 // アプリケーション初期化処理 
    43 $objInit = new SC_Initial_Ex(); 
    44 $objInit->init(); 
    45  
    46  
    47 require_once($require_php_dir . HTML2DATA_DIR . "include/module.inc"); 
    48 require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php"); 
    49 require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php"); 
    50 require_once(CLASS_EX_PATH . "db_extends/SC_DB_MasterData_Ex.php"); 
    51 require_once(CLASS_EX_PATH . "db_extends/SC_DB_DBFactory_Ex.php"); 
    52 require_once(CLASS_PATH . "SC_View.php"); 
    53 require_once(CLASS_PATH . "SC_DbConn.php"); 
    54 require_once(CLASS_PATH . "SC_Session.php"); 
    55 require_once(CLASS_PATH . "SC_Query.php"); 
    56 require_once(CLASS_PATH . "SC_SelectSql.php"); 
    57 require_once(CLASS_PATH . "SC_CheckError.php"); 
    58 require_once(CLASS_PATH . "SC_PageNavi.php"); 
    59 require_once(CLASS_PATH . "SC_Date.php"); 
    60 require_once(CLASS_PATH . "SC_Image.php"); 
    61 require_once(CLASS_PATH . "SC_UploadFile.php"); 
    62 require_once(CLASS_PATH . "SC_SiteInfo.php"); 
    63 require_once(CLASS_EX_PATH . "SC_SendMail_Ex.php"); 
    64 require_once(CLASS_PATH . "SC_FormParam.php"); 
    65 require_once(CLASS_PATH . "SC_CartSession.php"); 
    66 require_once(CLASS_PATH . "SC_SiteSession.php"); 
    67 require_once(CLASS_PATH . "SC_CampaignSession.php"); 
    68 require_once(CLASS_PATH . "SC_Customer.php"); 
    69 require_once(CLASS_PATH . "SC_CustomerList.php"); 
    70 require_once(CLASS_PATH . "SC_Cookie.php"); 
    71 require_once(CLASS_PATH . "SC_Pdf.php"); 
    72 require_once(CLASS_PATH . "SC_MobileUserAgent.php"); 
    73 require_once(CLASS_PATH . "SC_MobileEmoji.php"); 
    74 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_PageLayout_Ex.php"); 
    75 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_DB_Ex.php"); 
    76 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 
    77 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mail_Ex.php"); 
    78 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mobile_Ex.php"); 
    79 include_once($require_php_dir . "/require_plugin.php"); 
    80  
    81 // セッションハンドラ開始 
    82 $objSession = new SC_Helper_Session_Ex(); 
    83  
    84 // インストールチェック 
    85 SC_Utils_Ex::sfInitInstall(); 
     26require_once($require_php_dir . HTML2DATA_DIR . "require_base.php"); 
    8627 
    8728// 携帯端末の場合は mobile 以下へリダイレクトする。 
     
    10445} 
    10546 
    106 // セッション初期化・開始 
    107 require_once CLASS_PATH . 'session/SC_SessionFactory.php'; 
    108 $sessionFactory = SC_SessionFactory::getInstance(); 
    109 $sessionFactory->initSession(); 
    110  
    111 // 絵文字変換 (除去) フィルターを組み込む。 
    112 ob_start(array('SC_MobileEmoji', 'handler')); 
    11347?> 
Note: See TracChangeset for help on using the changeset viewer.