diff options
Diffstat (limited to 'web/include/thebrain.php')
-rw-r--r-- | web/include/thebrain.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/web/include/thebrain.php b/web/include/thebrain.php index d89027d..609c63f 100644 --- a/web/include/thebrain.php +++ b/web/include/thebrain.php @@ -7,15 +7,7 @@ $navlist = array( function include_safe($file) { if (file_exists("include/$file")) { - if (strpos(realpath("include/$file"), realpath($_SERVER['DOCUMENT_ROOT'])) !== 0) { - echo $_SERVER['DOCUMENT_ROOT']; - echo realpath("include/$file"); - $code = 403; - require("errors.php"); - } - else { - include($file); - } + include($file); } else { $code = 404; |