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