wallabag/inc/poche/config.inc.php

56 lines
2.4 KiB
PHP
Raw Normal View History

2013-08-04 18:58:31 +00:00
<?php
/**
* poche, a read it later open source system
*
* @category poche
2013-09-10 13:43:01 +00:00
* @author Nicolas Lœuillet <support@inthepoche.com>
2013-08-04 18:58:31 +00:00
* @copyright 2013
* @license http://www.wtfpl.net/ see COPYING file
*/
2013-08-16 18:19:31 +00:00
require_once __DIR__ . '/../../inc/poche/define.inc.php';
2013-08-04 18:58:31 +00:00
# /!\ Be careful if you change the lines below /!\
2013-08-16 18:19:31 +00:00
if (!file_exists(__DIR__ . '/../../vendor/autoload.php')) {
2013-08-15 08:54:14 +00:00
die('Twig does not seem installed. Have a look at <a href="http://inthepoche.com/?pages/Documentation">the documentation.</a>');
}
2013-08-16 18:19:31 +00:00
require_once __DIR__ . '/../../inc/poche/User.class.php';
require_once __DIR__ . '/../../inc/poche/Url.class.php';
require_once __DIR__ . '/../../inc/3rdparty/class.messages.php';
require_once __DIR__ . '/../../inc/poche/Poche.class.php';
require_once __DIR__ . '/../../inc/3rdparty/Readability.php';
require_once __DIR__ . '/../../inc/3rdparty/Encoding.php';
require_once __DIR__ . '/../../inc/poche/Database.class.php';
require_once __DIR__ . '/../../vendor/autoload.php';
require_once __DIR__ . '/../../inc/3rdparty/simple_html_dom.php';
require_once __DIR__ . '/../../inc/3rdparty/paginator.php';
require_once __DIR__ . '/../../inc/3rdparty/Session.class.php';
2013-08-04 18:58:31 +00:00
require_once __DIR__ . '/../../inc/3rdparty/simplepie/SimplePieAutoloader.php';
require_once __DIR__ . '/../../inc/3rdparty/simplepie/SimplePie/Core.php';
require_once __DIR__ . '/../../inc/3rdparty/content-extractor/ContentExtractor.php';
require_once __DIR__ . '/../../inc/3rdparty/content-extractor/SiteConfig.php';
require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/HumbleHttpAgent.php';
require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/SimplePie_HumbleHttpAgent.php';
require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/CookieJar.php';
require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedItem.php';
require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedWriter.php';
require_once __DIR__ . '/../../inc/3rdparty/feedwriter/DummySingleItemFeed.php';
2013-08-04 18:58:31 +00:00
if (DOWNLOAD_PICTURES) {
2013-08-16 18:19:31 +00:00
require_once __DIR__ . '/../../inc/poche/pochePictures.php';
2013-08-04 18:58:31 +00:00
}
if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) {
date_default_timezone_set('UTC');
}
2013-08-07 12:24:07 +00:00
$poche = new Poche();
2013-08-05 20:50:00 +00:00
#XSRF protection with token
// if (!empty($_POST)) {
// if (!Session::isToken($_POST['token'])) {
// die(_('Wrong token'));
// }
// unset($_SESSION['tokens']);
// }