source: branches/dev/html/require.php @ 13311

Revision 13311, 2.5 KB checked in by naka, 15 years ago (diff)
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7
8print($_SERVER["SERVER_ADDR"]);
9 
10$include_dir = realpath(dirname( __FILE__));
11require_once($include_dir . "/define.php");
12require_once($include_dir . HTML2DATA_DIR. "conf/conf.php");
13require_once($include_dir . HTML2DATA_DIR . "include/module.inc");
14require_once($include_dir . HTML2DATA_DIR . "lib/glib.php");
15require_once($include_dir . HTML2DATA_DIR . "lib/slib.php");
16require_once($include_dir . HTML2DATA_DIR . "class/SC_View.php");
17require_once($include_dir . HTML2DATA_DIR . "class/SC_DbConn.php");
18require_once($include_dir . HTML2DATA_DIR . "class/SC_Session.php");
19require_once($include_dir . HTML2DATA_DIR . "class/SC_Query.php");
20require_once($include_dir . HTML2DATA_DIR . "class/SC_SelectSql.php");
21require_once($include_dir . HTML2DATA_DIR . "class/SC_CheckError.php");
22require_once($include_dir . HTML2DATA_DIR . "class/SC_PageNavi.php");
23require_once($include_dir . HTML2DATA_DIR . "class/SC_Date.php");
24require_once($include_dir . HTML2DATA_DIR . "class/SC_Image.php");
25require_once($include_dir . HTML2DATA_DIR . "class/SC_UploadFile.php");
26require_once($include_dir . HTML2DATA_DIR . "class/SC_SiteInfo.php");
27require_once($include_dir . HTML2DATA_DIR . "class/GC_SendMail.php");
28require_once($include_dir . HTML2DATA_DIR . "class/SC_FormParam.php");
29require_once($include_dir . HTML2DATA_DIR . "class/SC_CartSession.php");
30require_once($include_dir . HTML2DATA_DIR . "class/SC_SiteSession.php");
31require_once($include_dir . HTML2DATA_DIR . "class/SC_CampaignSession.php");
32require_once($include_dir . HTML2DATA_DIR . "class/SC_Customer.php");
33require_once($include_dir . HTML2DATA_DIR . "class/SC_Cookie.php");
34require_once($include_dir . HTML2DATA_DIR . "class/SC_Page.php");
35require_once($include_dir . HTML2DATA_DIR . "class/SC_Pdf.php");
36require_once($include_dir . HTML2DATA_DIR . "class/GC_MobileUserAgent.php");
37require_once($include_dir . HTML2DATA_DIR . "class/GC_MobileEmoji.php");
38require_once($include_dir . HTML2DATA_DIR . "include/page_layout.inc");
39
40// ¥¢¥Ã¥×¥Ç¡¼¥È¤Ç¼èÆÀ¤·¤¿PHP¤òÆɤ߽Ф¹
41sfLoadUpdateModule();
42
43// ·ÈÂÓüËö¤Î¾ì¹ç¤Ï mobile °Ê²¼¤Ø¥ê¥À¥¤¥ì¥¯¥È¤¹¤ë¡£
44if (GC_MobileUserAgent::isMobile()) {
45    if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) {
46        $path = $matches[1];
47    } else {
48        $path = '';
49    }
50    header("Location: " . URL_DIR . "mobile/$path");
51    exit;
52}
53
54// ³¨Ê¸»úÊÑ´¹ (½üµî) ¥Õ¥£¥ë¥¿¡¼¤òÁȤ߹þ¤à¡£
55ob_start(array('GC_MobileEmoji', 'handler'));
56?>
Note: See TracBrowser for help on using the repository browser.