]> git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/poche/global.inc.php
replace flash messages library
[github/wallabag/wallabag.git] / inc / poche / global.inc.php
1 <?php
2 /**
3 * wallabag, self hostable application allowing you to not miss any content anymore
4 *
5 * @category wallabag
6 * @author Nicolas LÅ“uillet <nicolas@loeuillet.org>
7 * @copyright 2013
8 * @license http://opensource.org/licenses/MIT see COPYING file
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 ROOT . '/vendor/autoload.php';
21 require_once INCLUDES . '/poche/Template.class.php';
22 require_once INCLUDES . '/poche/Language.class.php';
23 require_once INCLUDES . '/poche/Routing.class.php';
24 require_once INCLUDES . '/poche/WallabagEBooks.class.php';
25 require_once INCLUDES . '/poche/Poche.class.php';
26
27 require_once INCLUDES . '/poche/Database.class.php';
28 require_once INCLUDES . '/3rdparty/paginator.php';
29 require_once INCLUDES . '/3rdparty/Session.class.php';
30
31 require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedItem.php';
32 require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedWriter.php';
33 require_once INCLUDES . '/3rdparty/FlattrItem.class.php';
34
35 # epub library
36 require_once INCLUDES . '/3rdparty/libraries/PHPePub/Logger.php';
37 require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPub.php';
38 require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPubChapterSplitter.php';
39
40 # mobi library
41 require_once INCLUDES . '/3rdparty/libraries/MOBIClass/MOBI.php';
42
43 # pdf library
44 #require_once INCLUDES . '/3rdparty/libraries/mpdf/mpdf.php';
45 require_once INCLUDES . '/3rdparty/libraries/tcpdf/tcpdf.php';
46
47 # system configuration; database credentials et caetera
48 require_once INCLUDES . '/poche/config.inc.php';
49 require_once INCLUDES . '/poche/config.inc.default.php';
50
51 if (DOWNLOAD_PICTURES) {
52 require_once INCLUDES . '/poche/pochePictures.php';
53 }
54
55 if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) {
56 date_default_timezone_set('UTC');
57 }
58
59 if (defined('ERROR_REPORTING')) {
60 error_reporting(ERROR_REPORTING);
61 }