X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=inc%2Fpoche%2Fglobal.inc.php;h=728528f81237d2fbe8bf643afeb6f5815d779075;hb=824f8c45edb20e27221e92805b0090f1768a2756;hp=2437d0652034024cf02d45b41b67a75892988ad2;hpb=00dbaf90bc44ef3ed0abaebb15307756e054a027;p=github%2Fwallabag%2Fwallabag.git diff --git a/inc/poche/global.inc.php b/inc/poche/global.inc.php old mode 100644 new mode 100755 index 2437d065..728528f8 --- a/inc/poche/global.inc.php +++ b/inc/poche/global.inc.php @@ -1,11 +1,11 @@ * @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) @@ -18,44 +18,41 @@ 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 ROOT . '/vendor/autoload.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 . '/3rdparty/Readability.php'; -require_once INCLUDES . '/poche/PocheReadability.php'; - -require_once INCLUDES . '/3rdparty/Encoding.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/simplepie/SimplePieAutoloader.php'; -require_once INCLUDES . '/3rdparty/simplepie/SimplePie/Core.php'; -require_once INCLUDES . '/3rdparty/content-extractor/ContentExtractor.php'; -require_once INCLUDES . '/3rdparty/content-extractor/SiteConfig.php'; -require_once INCLUDES . '/3rdparty/humble-http-agent/HumbleHttpAgent.php'; -require_once INCLUDES . '/3rdparty/humble-http-agent/SimplePie_HumbleHttpAgent.php'; -require_once INCLUDES . '/3rdparty/humble-http-agent/CookieJar.php'; -require_once INCLUDES . '/3rdparty/feedwriter/FeedItem.php'; -require_once INCLUDES . '/3rdparty/feedwriter/FeedWriter.php'; -require_once INCLUDES . '/3rdparty/feedwriter/DummySingleItemFeed.php'; +require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedItem.php'; +require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedWriter.php'; require_once INCLUDES . '/3rdparty/FlattrItem.class.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 . '/3rdparty/htmlpurifier/HTMLPurifier.auto.php'; -# system configuration; database credentials et cetera -if (! file_exists(INCLUDES . '/poche/config.inc.php')) { - Poche::$configFileAvailable = false; -} else { - require_once INCLUDES . '/poche/config.inc.php'; -} +# epub library +require_once INCLUDES . '/3rdparty/libraries/PHPePub/Logger.php'; +require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPub.php'; +require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPubChapterSplitter.php'; + +# mobi library +require_once INCLUDES . '/3rdparty/libraries/MOBIClass/MOBI.php'; -if (Poche::$configFileAvailable && DOWNLOAD_PICTURES) { +# pdf library +#require_once INCLUDES . '/3rdparty/libraries/mpdf/mpdf.php'; +require_once INCLUDES . '/3rdparty/libraries/tcpdf/tcpdf.php'; + +# system configuration; database credentials et caetera +require_once INCLUDES . '/poche/config.inc.php'; +require_once INCLUDES . '/poche/config.inc.default.php'; + +if (DOWNLOAD_PICTURES) { require_once INCLUDES . '/poche/pochePictures.php'; } @@ -63,10 +60,6 @@ if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timez date_default_timezone_set('UTC'); } -#XSRF protection with token -if (!empty($_POST)) { - if (!Session::isToken($_POST['token'])) { - die(_('Wrong token')); - } - unset($_SESSION['token']); -} \ No newline at end of file +if (defined('ERROR_REPORTING')) { + error_reporting(ERROR_REPORTING); +}