]>
Commit | Line | Data |
---|---|---|
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.2.1'); | |
12 | ||
13 | if (!is_dir('db/')) { | |
14 | @mkdir('db/',0705); | |
15 | } | |
16 | ||
17 | define ('ABS_PATH', 'assets/'); | |
18 | define ('CONVERT_LINKS_FOOTNOTES', TRUE); | |
19 | define ('DOWNLOAD_PICTURES', TRUE); | |
20 | $storage_type = 'sqlite'; # sqlite or file | |
21 | ||
22 | include 'functions.php'; | |
23 | require_once 'Readability.php'; | |
24 | require_once 'Encoding.php'; | |
25 | require_once 'rain.tpl.class.php'; | |
26 | require_once 'MyTool.class.php'; | |
27 | require_once 'Session.class.php'; | |
28 | require_once 'store/store.class.php'; | |
29 | require_once 'store/sqlite.class.php'; | |
30 | require_once 'store/file.class.php'; | |
31 | require_once 'class.messages.php'; | |
32 | ||
33 | Session::init(); | |
34 | ||
35 | $store = new $storage_type(); | |
36 | $msg = new Messages(); | |
37 | ||
38 | # initialisation de RainTPL | |
39 | raintpl::$tpl_dir = './tpl/'; | |
40 | raintpl::$cache_dir = './cache/'; | |
41 | raintpl::$base_url = get_poche_url(); | |
42 | raintpl::configure('path_replace', false); | |
43 | raintpl::configure('debug', false); | |
44 | $tpl = new raintpl(); | |
45 | $tpl->assign('msg', $msg); |