2013-09-20 08:21:39 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2014-01-28 09:36:04 +00:00
|
|
|
* wallabag, self hostable application allowing you to not miss any content anymore
|
2013-09-20 08:21:39 +00:00
|
|
|
*
|
2014-01-28 09:36:04 +00:00
|
|
|
* @category wallabag
|
|
|
|
* @author Nicolas Lœuillet <nicolas@loeuillet.org>
|
2013-09-20 08:21:39 +00:00
|
|
|
* @copyright 2013
|
2014-07-11 14:03:59 +00:00
|
|
|
* @license http://opensource.org/licenses/MIT see COPYING file
|
2013-09-20 08:21:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
# the poche system root directory (/inc)
|
|
|
|
define('INCLUDES', dirname(__FILE__) . '/..');
|
|
|
|
|
|
|
|
# the poche root directory
|
|
|
|
define('ROOT', INCLUDES . '/..');
|
|
|
|
|
|
|
|
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';
|
2014-07-11 14:03:59 +00:00
|
|
|
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';
|
2014-07-24 13:53:23 +00:00
|
|
|
require_once INCLUDES . '/poche/WallabagEBooks.class.php';
|
2013-09-20 08:21:39 +00:00
|
|
|
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';
|
|
|
|
|
2013-12-06 08:45:27 +00:00
|
|
|
require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedItem.php';
|
|
|
|
require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedWriter.php';
|
2013-09-20 08:21:39 +00:00
|
|
|
require_once INCLUDES . '/3rdparty/FlattrItem.class.php';
|
|
|
|
|
2014-02-21 14:44:13 +00:00
|
|
|
require_once INCLUDES . '/3rdparty/htmlpurifier/HTMLPurifier.auto.php';
|
|
|
|
|
2014-04-24 01:04:02 +00:00
|
|
|
# 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';
|
|
|
|
|
2014-07-24 13:49:36 +00:00
|
|
|
# mobi library
|
2014-07-24 19:56:04 +00:00
|
|
|
require_once INCLUDES . '/3rdparty/libraries/MOBIClass/MOBI.php';
|
2014-07-24 13:49:36 +00:00
|
|
|
|
|
|
|
# pdf library
|
|
|
|
require_once INCLUDES . '/3rdparty/libraries/mpdf/mpdf.php';
|
|
|
|
|
2014-03-22 10:09:18 +00:00
|
|
|
# system configuration; database credentials et caetera
|
2014-07-11 14:03:59 +00:00
|
|
|
require_once INCLUDES . '/poche/config.inc.php';
|
|
|
|
require_once INCLUDES . '/poche/config.inc.default.php';
|
2013-09-20 08:21:39 +00:00
|
|
|
|
2014-07-11 14:03:59 +00:00
|
|
|
if (DOWNLOAD_PICTURES) {
|
2013-09-20 08:21:39 +00:00
|
|
|
require_once INCLUDES . '/poche/pochePictures.php';
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) {
|
|
|
|
date_default_timezone_set('UTC');
|
2014-07-11 15:06:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (defined('ERROR_REPORTING')) {
|
|
|
|
error_reporting(ERROR_REPORTING);
|
|
|
|
}
|