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