wallabag/inc/poche/config.inc.php

44 lines
1.6 KiB
PHP
Raw Normal View History

2013-08-04 20:58:31 +02:00
<?php
/**
* poche, a read it later open source system
*
* @category poche
* @author Nicolas Lœuillet <nicolas@loeuillet.org>
* @copyright 2013
* @license http://www.wtfpl.net/ see COPYING file
*/
2013-08-16 20:19:31 +02:00
require_once __DIR__ . '/../../inc/poche/define.inc.php';
2013-08-04 20:58:31 +02:00
# /!\ Be careful if you change the lines below /!\
2013-08-16 20:19:31 +02:00
if (!file_exists(__DIR__ . '/../../vendor/autoload.php')) {
2013-08-15 10:54:14 +02:00
die('Twig does not seem installed. Have a look at <a href="http://inthepoche.com/?pages/Documentation">the documentation.</a>');
}
2013-08-16 20:19:31 +02:00
// if (file_exists(__DIR__ . '/../../inc/poche/myconfig.inc.php')) {
// require_once __DIR__ . '/../../inc/poche/myconfig.inc.php';
// }
2013-08-16 20:19:31 +02: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 20:58:31 +02:00
if (DOWNLOAD_PICTURES) {
2013-08-16 20:19:31 +02:00
require_once __DIR__ . '/../../inc/poche/pochePictures.php';
2013-08-04 20:58:31 +02:00
}
2013-08-07 14:24:07 +02:00
$poche = new Poche();
2013-08-05 22:50:00 +02:00
#XSRF protection with token
// if (!empty($_POST)) {
// if (!Session::isToken($_POST['token'])) {
// die(_('Wrong token'));
// }
// unset($_SESSION['tokens']);
// }