| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * |
|---|
| 4 | * This file is part of EC-CUBE |
|---|
| 5 | * |
|---|
| 6 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. |
|---|
| 7 | * |
|---|
| 8 | * http://www.lockon.co.jp/ |
|---|
| 9 | * |
|---|
| 10 | * This program is free software; you can redistribute it and/or |
|---|
| 11 | * modify it under the terms of the GNU General Public License |
|---|
| 12 | * as published by the Free Software Foundation; either version 2 |
|---|
| 13 | * of the License, or (at your option) any later version. |
|---|
| 14 | * |
|---|
| 15 | * This program is distributed in the hope that it will be useful, |
|---|
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | * GNU General Public License for more details. |
|---|
| 19 | * |
|---|
| 20 | * You should have received a copy of the GNU General Public License |
|---|
| 21 | * along with this program; if not, write to the Free Software |
|---|
| 22 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 23 | |
|---|
| 24 | */ |
|---|
| 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 | } |
|---|
| 31 | |
|---|
| 32 | if (!defined("CLASS_EX_PATH")) { |
|---|
| 33 | /** クラスパス */ |
|---|
| 34 | define("CLASS_EX_PATH", $include_dir . "/.." . HTML2DATA_DIR . "class_extends/"); |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 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 . "conf/conf.php"); |
|---|
| 47 | //require_once($include_dir . "/.." . HTML2DATA_DIR . "conf/mobile_conf.php"); |
|---|
| 48 | require_once($include_dir . "/.." . HTML2DATA_DIR . "include/module.inc"); |
|---|
| 49 | require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php"); |
|---|
| 50 | require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php"); |
|---|
| 51 | require_once(CLASS_EX_PATH . "db_extends/SC_DB_MasterData_Ex.php"); |
|---|
| 52 | require_once(CLASS_EX_PATH . "db_extends/SC_DB_DBFactory_Ex.php"); |
|---|
| 53 | require_once(CLASS_PATH . "SC_View.php"); |
|---|
| 54 | require_once(CLASS_PATH . "SC_DbConn.php"); |
|---|
| 55 | require_once(CLASS_PATH . "SC_Session.php"); |
|---|
| 56 | require_once(CLASS_PATH . "SC_Query.php"); |
|---|
| 57 | require_once(CLASS_PATH . "SC_SelectSql.php"); |
|---|
| 58 | require_once(CLASS_PATH . "SC_CheckError.php"); |
|---|
| 59 | require_once(CLASS_PATH . "SC_PageNavi.php"); |
|---|
| 60 | require_once(CLASS_PATH . "SC_Date.php"); |
|---|
| 61 | require_once(CLASS_PATH . "SC_Image.php"); |
|---|
| 62 | require_once(CLASS_PATH . "SC_UploadFile.php"); |
|---|
| 63 | require_once(CLASS_PATH . "SC_SiteInfo.php"); |
|---|
| 64 | require_once(CLASS_EX_PATH . "SC_SendMail_Ex.php"); |
|---|
| 65 | require_once(CLASS_PATH . "SC_FormParam.php"); |
|---|
| 66 | require_once(CLASS_PATH . "SC_CartSession.php"); |
|---|
| 67 | require_once(CLASS_PATH . "SC_SiteSession.php"); |
|---|
| 68 | require_once(CLASS_PATH . "SC_Customer.php"); |
|---|
| 69 | require_once(CLASS_PATH . "SC_Cookie.php"); |
|---|
| 70 | require_once(CLASS_PATH . "SC_Pdf.php"); |
|---|
| 71 | require_once(CLASS_PATH . "SC_MobileUserAgent.php"); |
|---|
| 72 | require_once(CLASS_PATH . "SC_MobileEmoji.php"); |
|---|
| 73 | require_once(CLASS_PATH . "SC_MobileImage.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_Mobile_Ex.php"); |
|---|
| 77 | require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php"); |
|---|
| 78 | require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mail_Ex.php"); |
|---|
| 79 | include_once($include_dir . "/require_plugin.php"); |
|---|
| 80 | |
|---|
| 81 | // セッションハンドラ開始 |
|---|
| 82 | $objSession = new SC_Helper_Session_Ex(); |
|---|
| 83 | |
|---|
| 84 | // アップデートで取得したPHPを読み出す |
|---|
| 85 | SC_Utils_Ex::sfLoadUpdateModule(); |
|---|
| 86 | |
|---|
| 87 | // モバイルサイト用の初期処理を実行する。 |
|---|
| 88 | if (!defined('SKIP_MOBILE_INIT')) { |
|---|
| 89 | $objMobile = new SC_Helper_Mobile_Ex(); |
|---|
| 90 | $objMobile->sfMobileInit(); |
|---|
| 91 | } |
|---|
| 92 | ?> |
|---|