diff options
Diffstat (limited to 'inc/config.php')
-rw-r--r-- | inc/config.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index 29a22507..84b86998 100644 --- a/inc/config.php +++ b/inc/config.php | |||
@@ -22,4 +22,12 @@ raintpl::$cache_dir = './cache/'; | |||
22 | raintpl::$base_url = get_poche_url(); | 22 | raintpl::$base_url = get_poche_url(); |
23 | raintpl::configure('path_replace', false); | 23 | raintpl::configure('path_replace', false); |
24 | raintpl::configure('debug', false); | 24 | raintpl::configure('debug', false); |
25 | $tpl = new raintpl(); \ No newline at end of file | 25 | $tpl = new raintpl(); |
26 | |||
27 | session_start(); | ||
28 | |||
29 | if (!isset($_SESSION['token_poche'])) { | ||
30 | $token = md5(uniqid(rand(), TRUE)); | ||
31 | $_SESSION['token_poche'] = $token; | ||
32 | $_SESSION['token_time_poche'] = time(); | ||
33 | } \ No newline at end of file | ||