]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/config.php
gestion de la fin de session #41
[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 */
10define ('DB_PATH', 'sqlite:./db/poche.sqlite');
11
12include 'db.php';
13include 'functions.php';
14require_once 'Readability.php';
15require_once 'Encoding.php';
8046748b 16require_once 'rain.tpl.class.php';
17
18$db = new db(DB_PATH);
19
20raintpl::$tpl_dir = './tpl/';
21raintpl::$cache_dir = './cache/';
22raintpl::$base_url = get_poche_url();
23raintpl::configure('path_replace', false);
24raintpl::configure('debug', false);
cf3180f6 25$tpl = new raintpl();
26
27session_start();
28
29if (!isset($_SESSION['token_poche'])) {
30 $token = md5(uniqid(rand(), TRUE));
31 $_SESSION['token_poche'] = $token;
32 $_SESSION['token_time_poche'] = time();
33}