source: branches/feature-module-update/html/require.php @ 15243

Revision 15243, 3.1 KB checked in by nanasess, 15 years ago (diff)

CLASS_PATH 設定追加.
共通関数のクラス化対応

  • Property svn:keywords set to Id
  • Property svn:mime-type set to application/x-httpd-php; charset=UTF-8
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7
8$include_dir = realpath(dirname( __FILE__));
9require_once($include_dir . "/define.php");
10if (!defined("CLASS_PATH")) {
11    /** クラスパス */
12    define("CLASS_PATH", $include_dir . HTML2DATA_DIR . "class/");
13}
14require_once($include_dir . HTML2DATA_DIR. "conf/conf.php");
15require_once($include_dir . HTML2DATA_DIR . "include/module.inc");
16require_once($include_dir . HTML2DATA_DIR . "class/util_extends/GC_Utils_Ex.php");
17require_once($include_dir . HTML2DATA_DIR . "class/util_extends/SC_Utils_Ex.php");
18require_once($include_dir . HTML2DATA_DIR . "class/db_extends/SC_DB_MasterData_Ex.php");
19require_once($include_dir . HTML2DATA_DIR . "class/db_extends/SC_DB_DBFactory_Ex.php");
20//require_once($include_dir . HTML2DATA_DIR . "lib/glib.php");
21//require_once($include_dir . HTML2DATA_DIR . "lib/slib.php");
22require_once($include_dir . HTML2DATA_DIR . "class/SC_View.php");
23require_once($include_dir . HTML2DATA_DIR . "class/SC_DbConn.php");
24require_once($include_dir . HTML2DATA_DIR . "class/SC_Session.php");
25require_once($include_dir . HTML2DATA_DIR . "class/SC_Query.php");
26require_once($include_dir . HTML2DATA_DIR . "class/SC_SelectSql.php");
27require_once($include_dir . HTML2DATA_DIR . "class/SC_CheckError.php");
28require_once($include_dir . HTML2DATA_DIR . "class/SC_PageNavi.php");
29require_once($include_dir . HTML2DATA_DIR . "class/SC_Date.php");
30require_once($include_dir . HTML2DATA_DIR . "class/SC_Image.php");
31require_once($include_dir . HTML2DATA_DIR . "class/SC_UploadFile.php");
32require_once($include_dir . HTML2DATA_DIR . "class/SC_SiteInfo.php");
33require_once($include_dir . HTML2DATA_DIR . "class/GC_SendMail.php");
34require_once($include_dir . HTML2DATA_DIR . "class/SC_FormParam.php");
35require_once($include_dir . HTML2DATA_DIR . "class/SC_CartSession.php");
36require_once($include_dir . HTML2DATA_DIR . "class/SC_SiteSession.php");
37require_once($include_dir . HTML2DATA_DIR . "class/SC_CampaignSession.php");
38require_once($include_dir . HTML2DATA_DIR . "class/SC_Customer.php");
39require_once($include_dir . HTML2DATA_DIR . "class/SC_Cookie.php");
40require_once($include_dir . HTML2DATA_DIR . "class/SC_Page.php");
41require_once($include_dir . HTML2DATA_DIR . "class/SC_Pdf.php");
42require_once($include_dir . HTML2DATA_DIR . "class/GC_MobileUserAgent.php");
43require_once($include_dir . HTML2DATA_DIR . "class/GC_MobileEmoji.php");
44require_once($include_dir . HTML2DATA_DIR . "class/helper_extends/SC_Helper_PageLayout_Ex.php");
45require_once(CLASS_PATH . "helper_extends/SC_Helper_DB_Ex.php");
46//require_once($include_dir . HTML2DATA_DIR . "include/page_layout.inc");
47
48// アップデートで取得したPHPを読み出す
49SC_Utils::sfLoadUpdateModule();
50
51// 携帯端末の場合は mobile 以下へリダイレクトする。
52if (GC_MobileUserAgent::isMobile()) {
53    if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) {
54        $path = $matches[1];
55    } else {
56        $path = '';
57    }
58    header("Location: " . URL_DIR . "mobile/$path");
59    exit;
60}
61
62// 絵文字変換 (除去) フィルターを組み込む。
63ob_start(array('GC_MobileEmoji', 'handler'));
64?>
Note: See TracBrowser for help on using the repository browser.