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