]> git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/config.php
tout est recentré sur index.php
[github/wallabag/wallabag.git] / inc / config.php
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
11 if (!is_dir('db/')) {
12 @mkdir('db/',0705);
13 }
14
15 define ('DB_PATH', 'sqlite:./db/poche.sqlite');
16 define ('ABS_PATH', 'assets/');
17 define ('CONVERT_LINKS_FOOTNOTES', TRUE);
18 define ('DOWNLOAD_PICTURES', TRUE);
19
20 include 'db.php';
21 include 'functions.php';
22 require_once 'Readability.php';
23 require_once 'Encoding.php';
24 require_once 'rain.tpl.class.php';
25 require_once 'MyTool.class.php';
26 require_once 'Session.class.php';
27
28 $db = new db(DB_PATH);
29
30 # initialisation de RainTPL
31 raintpl::$tpl_dir = './tpl/';
32 raintpl::$cache_dir = './cache/';
33 raintpl::$base_url = get_poche_url();
34 raintpl::configure('path_replace', false);
35 raintpl::configure('debug', false);
36 $tpl = new raintpl();