Index: branches/version-2_11-dev/html/require.php
===================================================================
--- branches/version-2_11-dev/html/require.php	(revision 20764)
+++ branches/version-2_11-dev/html/require.php	(revision 21011)
@@ -23,21 +23,25 @@
 
 // rtrim は PHP バージョン依存対策
-define("HTML_REALDIR", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/');
+define('HTML_REALDIR', rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/');
+
+if (ADMIN_FUNCTION !== true) {
+    define('FRONT_FUNCTION', true);
+}
 
 require_once HTML_REALDIR . 'define.php';
-require_once HTML_REALDIR . 'handle_error.php';
-require_once HTML_REALDIR . HTML2DATA_DIR . 'require_base.php';
 
-if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE){
-    define('MOBILE_SITE', true);
+if (SAFE === true) {
+    require_once HTML_REALDIR . HTML2DATA_DIR . 'require_safe.php';
+} else {
+    require_once HTML_REALDIR . 'handle_error.php';
+    require_once HTML_REALDIR . HTML2DATA_DIR . 'require_base.php';
+}
+
+if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) {
     $objMobile = new SC_Helper_Mobile_Ex();
     $objMobile->sfMobileInit();
     ob_start();
-
 } else {
-    define('FRONT_FUNCTION_PC_SITE', true);
-
     // 絵文字変換 (除去) フィルターを組み込む。
     ob_start(array('SC_MobileEmoji', 'handler'));
 }
-?>
