Changeset 18293 for branches/comu-ver2/html
- Timestamp:
- 2009/09/17 19:45:44 (17 years ago)
- Location:
- branches/comu-ver2/html
- Files:
-
- 4 edited
-
admin/require.php (modified) (1 diff)
-
install/index.php (modified) (1 diff)
-
mobile/require.php (modified) (2 diffs)
-
require.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/html/admin/require.php
r18234 r18293 26 26 27 27 require_once HTML_PATH . 'define.php'; 28 define('ADMIN_FUNCTION', true); 28 29 require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 29 30 ?> -
branches/comu-ver2/html/install/index.php
r18235 r18293 21 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 22 */ 23 require_once("../require.php"); 23 // ▼require.php 相当 24 // rtrim は PHP バージョン依存対策 25 define('HTML_PATH', rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'); 26 27 require_once HTML_PATH . 'define.php'; 28 define('INSTALL_FUNCTION', true); 29 require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 30 // ▲require.php 相当 31 24 32 $INSTALL_DIR = realpath(dirname( __FILE__)); 25 33 require_once(DATA_PATH . "module/Request.php"); -
branches/comu-ver2/html/mobile/require.php
r18234 r18293 1 1 <?php 2 /** 3 * 2 /* 4 3 * This file is part of EC-CUBE 5 4 * … … 26 25 define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'); 27 26 28 require_once (HTML_PATH . "define.php");27 require_once HTML_PATH . 'define.php'; 29 28 define('MOBILE_SITE', true); 30 require_once (HTML_PATH . HTML2DATA_DIR . "require_base.php");29 require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 31 30 32 31 // モバイルサイトを利用しない設定の場合、落とす。 -
branches/comu-ver2/html/require.php
r18234 r18293 25 25 define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 26 26 27 require_once(HTML_PATH . "define.php"); 28 require_once(HTML_PATH . HTML2DATA_DIR . "require_base.php"); 27 require_once HTML_PATH . 'define.php'; 28 define('FRONT_FUNCTION_PC_SITE', true); 29 require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 29 30 30 // 携帯端末の場合は mobile 以下へリダイレクトする。 31 if (SC_MobileUserAgent::isMobile()) { 32 $url = ""; 33 if (SC_Utils_Ex::sfIsHTTPS()) { 34 $url = MOBILE_SSL_URL; 35 } else { 36 $url = MOBILE_SITE_URL; 37 } 38 39 if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) { 40 $path = $matches[1]; 41 } else { 42 $path = ''; 43 } 44 45 header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path)); 46 exit; 47 } 31 // 携帯端末の場合、モバイルサイトへリダイレクトする 32 SC_MobileUserAgent::sfAutoRedirectMobileSite(); 48 33 49 34 ?>
Note: See TracChangeset
for help on using the changeset viewer.
