Index: tmp/version-2_5-test/html/require.php
===================================================================
--- tmp/version-2_5-test/html/require.php	(revision 18562)
+++ tmp/version-2_5-test/html/require.php	(revision 18609)
@@ -22,26 +22,16 @@
  */
 
-$require_php_dir = realpath(dirname( __FILE__));
-require_once($require_php_dir . "/define.php");
-require_once($require_php_dir . HTML2DATA_DIR . "require_base.php");
+// rtrim は PHP バージョン依存対策
+define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/');
 
-// 携帯端末の場合は mobile 以下へリダイレクトする。
-if (SC_MobileUserAgent::isMobile()) {
-    $url = "";
-    if (SC_Utils_Ex::sfIsHTTPS()) {
-        $url = MOBILE_SSL_URL;
-    } else {
-        $url = MOBILE_SITE_URL;
-    }
+require_once HTML_PATH . 'handle_error.php';
+require_once HTML_PATH . 'define.php';
+define('FRONT_FUNCTION_PC_SITE', true);
+require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php';
 
-    if (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) {
-        $path = $matches[1];
-    } else {
-        $path = '';
-    }
+// 携帯端末の場合、モバイルサイトへリダイレクトする
+SC_MobileUserAgent::sfAutoRedirectMobileSite();
 
-    header("Location: ". SC_Utils_Ex::sfRmDupSlash($url . $path));
-    exit;
-}
-
+// 絵文字変換 (除去) フィルターを組み込む。
+ob_start(array('SC_MobileEmoji', 'handler'));
 ?>
