]>
Commit | Line | Data |
---|---|---|
eb1af592 NL |
1 | <?php |
2 | /** | |
3 | * poche, a read it later open source system | |
4 | * | |
5 | * @category poche | |
6 | * @author Nicolas Lœuillet <nicolas@loeuillet.org> | |
7 | * @copyright 2013 | |
8 | * @license http://www.wtfpl.net/ see COPYING file | |
9 | */ | |
10 | ||
bb5a7d9e | 11 | require_once __DIR__ . '/../../inc/poche/define.inc.php'; |
eb1af592 NL |
12 | |
13 | # /!\ Be careful if you change the lines below /!\ | |
bb5a7d9e | 14 | if (!file_exists(__DIR__ . '/../../vendor/autoload.php')) { |
4a291288 NL |
15 | die('Twig does not seem installed. Have a look at <a href="http://inthepoche.com/?pages/Documentation">the documentation.</a>'); |
16 | } | |
bb5a7d9e | 17 | |
746f93c2 NL |
18 | // if (file_exists(__DIR__ . '/../../inc/poche/myconfig.inc.php')) { |
19 | // require_once __DIR__ . '/../../inc/poche/myconfig.inc.php'; | |
20 | // } | |
bb5a7d9e NL |
21 | require_once __DIR__ . '/../../inc/poche/User.class.php'; |
22 | require_once __DIR__ . '/../../inc/poche/Url.class.php'; | |
23 | require_once __DIR__ . '/../../inc/3rdparty/class.messages.php'; | |
24 | require_once __DIR__ . '/../../inc/poche/Poche.class.php'; | |
25 | require_once __DIR__ . '/../../inc/3rdparty/Readability.php'; | |
26 | require_once __DIR__ . '/../../inc/3rdparty/Encoding.php'; | |
27 | require_once __DIR__ . '/../../inc/poche/Database.class.php'; | |
28 | require_once __DIR__ . '/../../vendor/autoload.php'; | |
29 | require_once __DIR__ . '/../../inc/3rdparty/simple_html_dom.php'; | |
30 | require_once __DIR__ . '/../../inc/3rdparty/paginator.php'; | |
31 | require_once __DIR__ . '/../../inc/3rdparty/Session.class.php'; | |
eb1af592 | 32 | |
ec397236 NL |
33 | require_once __DIR__ . '/../../inc/3rdparty/simplepie/SimplePieAutoloader.php'; |
34 | require_once __DIR__ . '/../../inc/3rdparty/simplepie/SimplePie/Core.php'; | |
35 | require_once __DIR__ . '/../../inc/3rdparty/content-extractor/ContentExtractor.php'; | |
36 | require_once __DIR__ . '/../../inc/3rdparty/content-extractor/SiteConfig.php'; | |
37 | require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/HumbleHttpAgent.php'; | |
38 | require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/SimplePie_HumbleHttpAgent.php'; | |
39 | require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/CookieJar.php'; | |
40 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedItem.php'; | |
41 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedWriter.php'; | |
42 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/DummySingleItemFeed.php'; | |
43 | ||
eb1af592 | 44 | if (DOWNLOAD_PICTURES) { |
bb5a7d9e | 45 | require_once __DIR__ . '/../../inc/poche/pochePictures.php'; |
eb1af592 NL |
46 | } |
47 | ||
ec397236 NL |
48 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { |
49 | date_default_timezone_set('UTC'); | |
50 | } | |
51 | ||
bc1ee852 | 52 | $poche = new Poche(); |
6fb3a2a1 NL |
53 | #XSRF protection with token |
54 | // if (!empty($_POST)) { | |
55 | // if (!Session::isToken($_POST['token'])) { | |
56 | // die(_('Wrong token')); | |
57 | // } | |
58 | // unset($_SESSION['tokens']); | |
59 | // } |