Index: branches/version-2_11-dev/html/require.php
===================================================================
--- branches/version-2_11-dev/html/require.php	(revision 21011)
+++ branches/version-2_11-dev/html/require.php	(revision 21258)
@@ -25,11 +25,10 @@
 define('HTML_REALDIR', rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/');
 
-if (ADMIN_FUNCTION !== true) {
+if (!defined('ADMIN_FUNCTION') || ADMIN_FUNCTION !== true) {
     define('FRONT_FUNCTION', true);
 }
 
 require_once HTML_REALDIR . 'define.php';
-
-if (SAFE === true) {
+if (defined('SAFE') && SAFE === true) {
     require_once HTML_REALDIR . HTML2DATA_DIR . 'require_safe.php';
 } else {
