]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/config.php
3 * poche, a read it later open source system
6 * @author Nicolas LÅ“uillet <nicolas@loeuillet.org>
8 * @license http://www.wtfpl.net/ see COPYING file
11 define ('POCHE_VERSION', '0.2.1');
17 define ('ABS_PATH', 'assets/');
18 define ('CONVERT_LINKS_FOOTNOTES', TRUE);
19 define ('REVERT_FORCED_PARAGRAPH_ELEMENTS',FALSE);
20 define ('DOWNLOAD_PICTURES', TRUE);
21 define ('SALT', '464v54gLLw928uz4zUBqkRJeiPY68zCX');
22 $storage_type = 'sqlite'; # sqlite or file
24 include 'functions.php';
25 require_once 'Readability.php';
26 require_once 'Encoding.php';
27 require_once 'rain.tpl.class.php';
28 require_once 'MyTool.class.php';
29 require_once 'Session.class.php';
30 require_once 'store/store.class.php';
31 require_once 'store/sqlite.class.php';
32 require_once 'store/file.class.php';
33 require_once 'class.messages.php';
37 $store = new $storage_type();
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);
46 if(!$store->isInstalled())
48 logm('poche still not installed');
49 $tpl->draw('install');
50 if (isset($_GET['install'])) {
51 if (($_POST['password'] == $_POST['password_repeat'])
52 && $_POST['password'] != "" && $_POST['login'] != "") {
53 $store->install($_POST['login'], encode_string($_POST['password'] . $_POST['login']));
61 $_SESSION['login'] = (isset ($_SESSION['login'])) ? $_SESSION['login'] : $store->getLogin();
62 $_SESSION['pass'] = (isset ($_SESSION['pass'])) ? $_SESSION['pass'] : $store->getPassword();
64 $msg = new Messages();
65 $tpl->assign('msg', $msg);