Make WCF partially accessible again
authorMatthias Schmidt <gravatronics@live.com>
Thu, 24 Dec 2015 12:16:00 +0000 (13:16 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 24 Dec 2015 12:16:00 +0000 (13:16 +0100)
wcfsetup/install/files/global.php
wcfsetup/install/files/index.php [new file with mode: 0644]
wcfsetup/install/files/lib/data/box/Box.class.php

index ce47830e8f912b1a269cd1edb9c8c6611d25278d..2d509c45e5c05233e1eaa5e2632c9101dc8d4c8b 100644 (file)
@@ -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 (file)
index 0000000..2c40781
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+/**
+ * @author     Matthias Schmidt
+ * @copyright  2001-2015 WoltLab GmbH
+ * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package    com.woltlab.wcf
+ * @category   Community Framework
+ */
+require_once('./global.php');
+\wcf\system\request\RequestHandler::getInstance()->handle('wcf');
index d2edd8011acdb1c87dce33ab8168393541492e87..e61422c729eb59d14c9f5e36f1c21d34aaaae43c 100644 (file)
@@ -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 {