source: branches/comu-ver2/html/mobile/require.php @ 17558

Revision 17558, 3.8 KB checked in by Seasoft, 16 years ago (diff)

モバイルサイトを使わない場合、パラメータ設定によりサイトマップに出力されないように設定可能に。本来はモバイルサイトの出力も抑制したかったが、一旦断念した(コメントに記載)。

  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
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
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
37if (!defined("CLASS_PATH")) {
38    /** クラスパス */
39    define("CLASS_PATH", DATA_PATH . "class/");
40}
41
42if (!defined("CLASS_EX_PATH")) {
43    /** クラスパス */
44    define("CLASS_EX_PATH", DATA_PATH . "class_extends/");
45}
46
47if (!defined("CACHE_PATH")) {
48    /** キャッシュ生成ディレクトリ */
49    define("CACHE_PATH", DATA_PATH . "cache/");
50}
51require_once(CLASS_EX_PATH . "SC_Initial_Mobile_Ex.php");
52// アプリケーション初期化処理
53$objInit = new SC_Initial_Mobile_Ex();
54$objInit->init();
55
56
57require_once(DATA_PATH . "include/module.inc");
58require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php");
59require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php");
60require_once(CLASS_EX_PATH . "db_extends/SC_DB_MasterData_Ex.php");
61require_once(CLASS_EX_PATH . "db_extends/SC_DB_DBFactory_Ex.php");
62require_once(CLASS_PATH . "SC_View.php");
63require_once(CLASS_PATH . "SC_DbConn.php");
64require_once(CLASS_PATH . "SC_Session.php");
65require_once(CLASS_PATH . "SC_Query.php");
66require_once(CLASS_PATH . "SC_SelectSql.php");
67require_once(CLASS_PATH . "SC_CheckError.php");
68require_once(CLASS_PATH . "SC_PageNavi.php");
69require_once(CLASS_PATH . "SC_Date.php");
70require_once(CLASS_PATH . "SC_Image.php");
71require_once(CLASS_PATH . "SC_UploadFile.php");
72require_once(CLASS_PATH . "SC_SiteInfo.php");
73require_once(CLASS_EX_PATH . "SC_SendMail_Ex.php");
74require_once(CLASS_PATH . "SC_FormParam.php");
75require_once(CLASS_PATH . "SC_CartSession.php");
76require_once(CLASS_PATH . "SC_SiteSession.php");
77require_once(CLASS_PATH . "SC_Customer.php");
78require_once(CLASS_PATH . "SC_Cookie.php");
79require_once(CLASS_PATH . "SC_Pdf.php");
80require_once(CLASS_PATH . "SC_MobileUserAgent.php");
81require_once(CLASS_PATH . "SC_MobileEmoji.php");
82require_once(CLASS_PATH . "SC_MobileImage.php");
83require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_PageLayout_Ex.php");
84require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_DB_Ex.php");
85require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mobile_Ex.php");
86require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php");
87require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mail_Ex.php");
88include_once($include_dir . "require_plugin.php");
89
90// セッションハンドラ開始
91$objSession = new SC_Helper_Session_Ex();
92
93// セッション初期化・開始
94require_once CLASS_PATH . 'session/SC_SessionFactory.php';
95$sessionFactory = SC_SessionFactory::getInstance();
96$sessionFactory->initSession();
97
98// モバイルサイト用の初期処理を実行する。
99if (!defined('SKIP_MOBILE_INIT')) {
100    $objMobile = new SC_Helper_Mobile_Ex();
101    $objMobile->sfMobileInit();
102}
103
104// Moba8対応(Moba8パラメータ引き継ぎ)
105if (function_exists("sfGetMoba8Param") == TRUE) {
106    sfGetMoba8Param($_GET['a8']);
107}
108
109?>
Note: See TracBrowser for help on using the repository browser.