]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/config.php
Fixed #73 - Can't Poch url with special caracter
[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
69ca1455 11define ('POCHE_VERSION', '0.2.1');
bf18db78 12
d178419c 13if (!is_dir('db/')) {
14 @mkdir('db/',0705);
15}
16
d178419c 17define ('ABS_PATH', 'assets/');
d06f30ef 18define ('CONVERT_LINKS_FOOTNOTES', TRUE);
2987031b 19define ('REVERT_FORCED_PARAGRAPH_ELEMENTS',FALSE);
64458521 20define ('DOWNLOAD_PICTURES', TRUE);
14890de3 21$storage_type = 'sqlite'; # sqlite or file
e46efced 22
e46efced 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';
14890de3 29require_once 'store/store.class.php';
30require_once 'store/sqlite.class.php';
31require_once 'store/file.class.php';
f0070a15 32require_once 'class.messages.php';
8046748b 33
f0070a15 34Session::init();
35
36$store = new $storage_type();
37$msg = new Messages();
8046748b 38
e4d2565e 39# initialisation de RainTPL
8046748b 40raintpl::$tpl_dir = './tpl/';
41raintpl::$cache_dir = './cache/';
42raintpl::$base_url = get_poche_url();
43raintpl::configure('path_replace', false);
44raintpl::configure('debug', false);
f0070a15 45$tpl = new raintpl();
46$tpl->assign('msg', $msg);