]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/global.inc.php
@fivefilters via composer
[github/wallabag/wallabag.git] / inc / poche / global.inc.php
index 14e9dd9322ef0a54c5bf5691fa15cee6d25070a3..ff7ebf6476de20cb42a401bf1d5c5166fefe3889 100755 (executable)
@@ -5,7 +5,7 @@
  * @category   wallabag
  * @author     Nicolas LÅ“uillet <nicolas@loeuillet.org>
  * @copyright  2013
- * @license    http://www.wtfpl.net/ see COPYING file
+ * @license    http://opensource.org/licenses/MIT see COPYING file
  */
 
 # the poche system root directory (/inc)
@@ -14,42 +14,30 @@ define('INCLUDES', dirname(__FILE__) . '/..');
 # the poche root directory
 define('ROOT', INCLUDES . '/..');
 
+require_once ROOT . '/vendor/autoload.php';
 require_once INCLUDES . '/poche/Tools.class.php';
 require_once INCLUDES . '/poche/User.class.php';
 require_once INCLUDES . '/poche/Url.class.php';
-require_once INCLUDES . '/3rdparty/class.messages.php';
+require_once INCLUDES . '/poche/Template.class.php';
+require_once INCLUDES . '/poche/Language.class.php';
+require_once INCLUDES . '/poche/Routing.class.php';
+require_once INCLUDES . '/poche/WallabagEBooks.class.php';
 require_once INCLUDES . '/poche/Poche.class.php';
-
 require_once INCLUDES . '/poche/Database.class.php';
-require_once INCLUDES . '/3rdparty/simple_html_dom.php';
-require_once INCLUDES . '/3rdparty/paginator.php';
-require_once INCLUDES . '/3rdparty/Session.class.php';
-
-require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedItem.php';
-require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedWriter.php';
-require_once INCLUDES . '/3rdparty/FlattrItem.class.php';
-
-require_once INCLUDES . '/3rdparty/htmlpurifier/HTMLPurifier.auto.php';
-
-# Composer its autoloader for automatically loading Twig
-if (! file_exists(ROOT . '/vendor/autoload.php')) {
-    Poche::$canRenderTemplates = false;
-} else {
-    require_once ROOT . '/vendor/autoload.php';
-}
+require_once INCLUDES . '/poche/FlattrItem.class.php';
 
 # system configuration; database credentials et caetera
-if (! file_exists(INCLUDES . '/poche/config.inc.php')) {
-    Poche::$configFileAvailable = false;
-} else {
-    require_once INCLUDES . '/poche/config.inc.php';
-    require_once INCLUDES . '/poche/config.inc.default.php';
-}
+require_once INCLUDES . '/poche/config.inc.php';
+require_once INCLUDES . '/poche/config.inc.default.php';
 
-if (Poche::$configFileAvailable && DOWNLOAD_PICTURES) {
+if (DOWNLOAD_PICTURES) {
     require_once  INCLUDES . '/poche/pochePictures.php';
 }
 
 if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) {
     date_default_timezone_set('UTC');
+}
+
+if (defined('ERROR_REPORTING')) {
+    error_reporting(ERROR_REPORTING);
 }
\ No newline at end of file