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

Revision 16393, 3.0 KB checked in by nanasess, 14 years ago (diff)

SC_Page 削除

  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/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}
14
15if (!defined("CLASS_EX_PATH")) {
16    /** クラスパス */
17    define("CLASS_EX_PATH", $include_dir . HTML2DATA_DIR . "class_extends/");
18}
19
20require_once($include_dir . HTML2DATA_DIR. "conf/conf.php");
21require_once($include_dir . HTML2DATA_DIR . "include/module.inc");
22require_once(CLASS_EX_PATH . "util_extends/GC_Utils_Ex.php");
23require_once(CLASS_EX_PATH . "util_extends/SC_Utils_Ex.php");
24require_once(CLASS_EX_PATH . "db_extends/SC_DB_MasterData_Ex.php");
25require_once(CLASS_EX_PATH . "db_extends/SC_DB_DBFactory_Ex.php");
26require_once(CLASS_PATH . "SC_View.php");
27require_once(CLASS_PATH . "SC_DbConn.php");
28require_once(CLASS_PATH . "SC_Session.php");
29require_once(CLASS_PATH . "SC_Query.php");
30require_once(CLASS_PATH . "SC_SelectSql.php");
31require_once(CLASS_PATH . "SC_CheckError.php");
32require_once(CLASS_PATH . "SC_PageNavi.php");
33require_once(CLASS_PATH . "SC_Date.php");
34require_once(CLASS_PATH . "SC_Image.php");
35require_once(CLASS_PATH . "SC_UploadFile.php");
36require_once(CLASS_PATH . "SC_SiteInfo.php");
37require_once(CLASS_PATH . "SC_SendMail.php");
38require_once(CLASS_PATH . "SC_FormParam.php");
39require_once(CLASS_PATH . "SC_CartSession.php");
40require_once(CLASS_PATH . "SC_SiteSession.php");
41require_once(CLASS_PATH . "SC_CampaignSession.php");
42require_once(CLASS_PATH . "SC_Customer.php");
43require_once(CLASS_PATH . "SC_CustomerList.php");
44require_once(CLASS_PATH . "SC_Cookie.php");
45require_once(CLASS_PATH . "SC_Pdf.php");
46require_once(CLASS_PATH . "SC_MobileUserAgent.php");
47require_once(CLASS_PATH . "SC_MobileEmoji.php");
48require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_PageLayout_Ex.php");
49require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_DB_Ex.php");
50require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php");
51require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mail_Ex.php");
52require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mobile_Ex.php");
53include_once($include_dir . "/require_plugin.php");
54
55// インストールチェック
56SC_Utils_Ex::sfInitInstall();
57
58// 携帯端末の場合は mobile 以下へリダイレクトする。
59if (SC_MobileUserAgent::isMobile()) {
60    if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) {
61        $path = $matches[1];
62    } else {
63        $path = '';
64    }
65
66    $url = "";
67    if (SC_Utils_Ex::sfIsHTTPS()) {
68        $url = SSL_URL;
69    } else {
70        $url = SITE_URL;
71    }
72    header("Location: "
73           .  SC_Utils_Ex::sfRmDupSlash($url . URL_DIR . "mobile/" . $path));
74    exit;
75}
76
77// 絵文字変換 (除去) フィルターを組み込む。
78ob_start(array('SC_MobileEmoji', 'handler'));
79
80// アップデートで取得したPHPを読み出す
81SC_Utils_Ex::sfLoadUpdateModule();
82?>
Note: See TracBrowser for help on using the repository browser.