source: branches/feature-module-movilink/html/require.php @ 16528

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