]>
Commit | Line | Data |
---|---|---|
e46efced | 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 | */ | |
1c182b6c | 10 | |
d178419c | 11 | if (!is_dir('db/')) { |
12 | @mkdir('db/',0705); | |
13 | } | |
14 | ||
e46efced | 15 | define ('DB_PATH', 'sqlite:./db/poche.sqlite'); |
d178419c | 16 | define ('ABS_PATH', 'assets/'); |
d06f30ef | 17 | define ('CONVERT_LINKS_FOOTNOTES', TRUE); |
64458521 | 18 | define ('DOWNLOAD_PICTURES', TRUE); |
e46efced | 19 | |
20 | include 'db.php'; | |
21 | include 'functions.php'; | |
22 | require_once 'Readability.php'; | |
23 | require_once 'Encoding.php'; | |
8046748b | 24 | require_once 'rain.tpl.class.php'; |
e4d2565e | 25 | require_once 'MyTool.class.php'; |
26 | require_once 'Session.class.php'; | |
8046748b | 27 | |
28 | $db = new db(DB_PATH); | |
29 | ||
e4d2565e | 30 | # initialisation de RainTPL |
8046748b | 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); | |
a1953dff | 36 | $tpl = new raintpl(); |