diff options
Diffstat (limited to 'inc/poche/global.inc.php')
-rwxr-xr-x | inc/poche/global.inc.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/inc/poche/global.inc.php b/inc/poche/global.inc.php index 2c22c014..9d710b6c 100755 --- a/inc/poche/global.inc.php +++ b/inc/poche/global.inc.php | |||
@@ -40,6 +40,12 @@ require_once INCLUDES . '/3rdparty/libraries/PHPePub/Logger.php'; | |||
40 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPub.php'; | 40 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPub.php'; |
41 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPubChapterSplitter.php'; | 41 | require_once INCLUDES . '/3rdparty/libraries/PHPePub/EPubChapterSplitter.php'; |
42 | 42 | ||
43 | require_once INCLUDES . '/3rdparty/PicoFarad/Request.php'; | ||
44 | require_once INCLUDES . '/3rdparty/PicoFarad/Response.php'; | ||
45 | require_once INCLUDES . '/3rdparty/PicoFarad/Router.php'; | ||
46 | require_once INCLUDES . '/3rdparty/PicoFarad/Session.php'; | ||
47 | require_once INCLUDES . '/3rdparty/PicoFarad/Template.php'; | ||
48 | |||
43 | # system configuration; database credentials et caetera | 49 | # system configuration; database credentials et caetera |
44 | require_once INCLUDES . '/poche/config.inc.php'; | 50 | require_once INCLUDES . '/poche/config.inc.php'; |
45 | require_once INCLUDES . '/poche/config.inc.default.php'; | 51 | require_once INCLUDES . '/poche/config.inc.default.php'; |
@@ -50,4 +56,15 @@ if (DOWNLOAD_PICTURES) { | |||
50 | 56 | ||
51 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { | 57 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { |
52 | date_default_timezone_set('UTC'); | 58 | date_default_timezone_set('UTC'); |
53 | } \ No newline at end of file | 59 | } |
60 | |||
61 | if (defined('ERROR_REPORTING')) { | ||
62 | error_reporting(ERROR_REPORTING); | ||
63 | } | ||
64 | |||
65 | // Start session | ||
66 | Session::$sessionName = 'wallabag'; | ||
67 | Session::init(); | ||
68 | |||
69 | // Let's rock ! | ||
70 | $wallabag = new Poche(); | ||