]>
Commit | Line | Data |
---|---|---|
00dbaf90 NL |
1 | <?php |
2 | /** | |
c95b78a8 | 3 | * wallabag, self hostable application allowing you to not miss any content anymore |
00dbaf90 | 4 | * |
c95b78a8 NL |
5 | * @category wallabag |
6 | * @author Nicolas Lœuillet <nicolas@loeuillet.org> | |
00dbaf90 | 7 | * @copyright 2013 |
3602405e | 8 | * @license http://opensource.org/licenses/MIT see COPYING file |
00dbaf90 NL |
9 | */ |
10 | ||
11 | # the poche system root directory (/inc) | |
12 | define('INCLUDES', dirname(__FILE__) . '/..'); | |
13 | ||
14 | # the poche root directory | |
15 | define('ROOT', INCLUDES . '/..'); | |
16 | ||
17 | require_once INCLUDES . '/poche/Tools.class.php'; | |
18 | require_once INCLUDES . '/poche/User.class.php'; | |
19 | require_once INCLUDES . '/poche/Url.class.php'; | |
20 | require_once INCLUDES . '/3rdparty/class.messages.php'; | |
3602405e NL |
21 | require_once ROOT . '/vendor/autoload.php'; |
22 | require_once INCLUDES . '/poche/Template.class.php'; | |
23 | require_once INCLUDES . '/poche/Language.class.php'; | |
24 | require_once INCLUDES . '/poche/Routing.class.php'; | |
15317991 | 25 | require_once INCLUDES . '/poche/WallabagEBooks.class.php'; |
00dbaf90 NL |
26 | require_once INCLUDES . '/poche/Poche.class.php'; |
27 | ||
00dbaf90 NL |
28 | require_once INCLUDES . '/poche/Database.class.php'; |
29 | require_once INCLUDES . '/3rdparty/simple_html_dom.php'; | |
30 | require_once INCLUDES . '/3rdparty/paginator.php'; | |
31 | require_once INCLUDES . '/3rdparty/Session.class.php'; | |
32 | ||
42c80841 NL |
33 | require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedItem.php'; |
34 | require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedWriter.php'; | |
00dbaf90 NL |
35 | require_once INCLUDES . '/3rdparty/FlattrItem.class.php'; |
36 | ||
1570a653 NL |
37 | require_once INCLUDES . '/3rdparty/htmlpurifier/HTMLPurifier.auto.php'; |
38 | ||
87090d8a | 39 | # epub library |
40 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/Logger.php'; | |
41 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPub.php'; | |
42 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPubChapterSplitter.php'; | |
43 | ||
4188f38a | 44 | # mobi library |
fb9df0c2 | 45 | require_once INCLUDES . '/3rdparty/libraries/MOBIClass/MOBI.php'; |
4188f38a | 46 | |
47 | # pdf library | |
824f8c45 | 48 | #require_once INCLUDES . '/3rdparty/libraries/mpdf/mpdf.php'; |
49 | require_once INCLUDES . '/3rdparty/libraries/tcpdf/tcpdf.php'; | |
4188f38a | 50 | |
a33a3d2a | 51 | # system configuration; database credentials et caetera |
3602405e NL |
52 | require_once INCLUDES . '/poche/config.inc.php'; |
53 | require_once INCLUDES . '/poche/config.inc.default.php'; | |
00dbaf90 | 54 | |
3602405e | 55 | if (DOWNLOAD_PICTURES) { |
00dbaf90 NL |
56 | require_once INCLUDES . '/poche/pochePictures.php'; |
57 | } | |
58 | ||
59 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { | |
60 | date_default_timezone_set('UTC'); | |
b3cda72e NL |
61 | } |
62 | ||
63 | if (defined('ERROR_REPORTING')) { | |
64 | error_reporting(ERROR_REPORTING); | |
65 | } |