From: Matthias Schmidt Date: Thu, 24 Dec 2015 12:16:00 +0000 (+0100) Subject: Make WCF partially accessible again X-Git-Tag: 3.0.0_Beta_1~2030^2~204 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf0c49848035267a74d8d6da86ada66bc9aaddd3;p=GitHub%2FWoltLab%2FWCF.git Make WCF partially accessible again --- diff --git a/wcfsetup/install/files/global.php b/wcfsetup/install/files/global.php index ce47830e8f..2d509c45e5 100644 --- a/wcfsetup/install/files/global.php +++ b/wcfsetup/install/files/global.php @@ -8,8 +8,11 @@ */ // ignore direct access if (!defined('PACKAGE_ID')) { + define('PACKAGE_ID', 1); + /* TODO: @header("HTTP/1.0 404 Not Found"); exit; + */ } // define the wcf-root-dir diff --git a/wcfsetup/install/files/index.php b/wcfsetup/install/files/index.php new file mode 100644 index 0000000000..2c40781074 --- /dev/null +++ b/wcfsetup/install/files/index.php @@ -0,0 +1,10 @@ + + * @package com.woltlab.wcf + * @category Community Framework + */ +require_once('./global.php'); +\wcf\system\request\RequestHandler::getInstance()->handle('wcf'); diff --git a/wcfsetup/install/files/lib/data/box/Box.class.php b/wcfsetup/install/files/lib/data/box/Box.class.php index d2edd8011a..e61422c729 100644 --- a/wcfsetup/install/files/lib/data/box/Box.class.php +++ b/wcfsetup/install/files/lib/data/box/Box.class.php @@ -177,6 +177,8 @@ class Box extends DatabaseObject { return $this->getController()->hasContent(); } else if ($this->boxType == 'menu') { + // TODO: + return false; return $this->getMenu()->hasContent(); } else {