Changeset 18609 for tmp/version-2_5-test/html/mobile/require.php
- Timestamp:
- 2010/03/11 10:35:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tmp/version-2_5-test/html/mobile/require.php
r18562 r18609 1 1 <?php 2 /** 3 * 2 /* 4 3 * This file is part of EC-CUBE 5 4 * … … 21 20 * along with this program; if not, write to the Free Software 22 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 */ 23 23 24 */ 25 $mobile_require_php_dir = realpath(dirname( __FILE__)); 26 require_once($mobile_require_php_dir . "/../define.php"); 24 // rtrim は PHP バージョン依存対策 25 define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/../'), '/\\') . '/'); 27 26 27 require_once HTML_PATH . 'handle_error.php'; 28 require_once HTML_PATH . 'define.php'; 28 29 define('MOBILE_SITE', true); 30 require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 29 31 30 require_once($mobile_require_php_dir . "/../" . HTML2DATA_DIR . "require_base.php"); 32 // モバイルサイトを利用しない設定の場合、落とす。 33 if (USE_MOBILE === false) { 34 // XXX PCサイトにリダイレクトする方がスマートか? 若しくはHTTPエラーとすべきか? 35 exit; 36 } 31 37 32 38 // モバイルサイト用の初期処理を実行する。 … … 38 44 // Moba8対応(Moba8パラメータ引き継ぎ) 39 45 if (function_exists("sfGetMoba8Param") == TRUE) { 40 46 sfGetMoba8Param($_GET['a8']); 41 47 } 48 49 ob_start(); 42 50 ?>
Note: See TracChangeset
for help on using the changeset viewer.