]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/config.php
création d'une classe store() pour gérer tout type de stockage : sqlite, file, mysql...
[github/wallabag/wallabag.git] / inc / config.php
CommitLineData
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
14890de3 11define ('POCHE_VERSION', '0.2');
bf18db78 12
d178419c 13if (!is_dir('db/')) {
14 @mkdir('db/',0705);
15}
16
d178419c 17define ('ABS_PATH', 'assets/');
d06f30ef 18define ('CONVERT_LINKS_FOOTNOTES', TRUE);
64458521 19define ('DOWNLOAD_PICTURES', TRUE);
14890de3 20$storage_type = 'sqlite'; # sqlite or file
e46efced 21
e46efced 22include 'functions.php';
23require_once 'Readability.php';
24require_once 'Encoding.php';
8046748b 25require_once 'rain.tpl.class.php';
e4d2565e 26require_once 'MyTool.class.php';
27require_once 'Session.class.php';
14890de3 28require_once 'store/store.class.php';
29require_once 'store/sqlite.class.php';
30require_once 'store/file.class.php';
8046748b 31
14890de3 32$store = new $storage_type();
8046748b 33
e4d2565e 34# initialisation de RainTPL
8046748b 35raintpl::$tpl_dir = './tpl/';
36raintpl::$cache_dir = './cache/';
37raintpl::$base_url = get_poche_url();
38raintpl::configure('path_replace', false);
39raintpl::configure('debug', false);
a1953dff 40$tpl = new raintpl();